Class: DialGauge
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:42
A DialGauge
Extends
Constructors
Constructor
new DialGauge(
props):DialGauge
Defined in: sdk/components/FSComponent.ts:73
Creates an instance of a DisplayComponent.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | DialGaugeProps | The propertis of the component. |
Returns
DialGauge
Inherited from
AbstractEngineGauge.constructor
Properties
context?
optionalcontext: [] =undefined
Defined in: sdk/components/FSComponent.ts:64
The context on this component, if any.
Inherited from
contextType?
readonlyoptionalcontextType: readonly [] =undefined
Defined in: sdk/components/FSComponent.ts:67
The type of context for this component, if any.
Inherited from
AbstractEngineGauge.contextType
DISPLAY_VALUE_FORMATTER()
protectedreadonlyDISPLAY_VALUE_FORMATTER: (number) =>string
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/AbstractEngineIndicator.tsx:14
Parameters
| Parameter | Type |
|---|---|
number | number |
Returns
string
Inherited from
AbstractEngineGauge.DISPLAY_VALUE_FORMATTER
grayMask
protectedreadonlygrayMask:NodeReference<HTMLDivElement>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:45
isAmber
protectedreadonlyisAmber:MappedSubject<[boolean,boolean],boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:49
isAmberHighActive
protectedisAmberHighActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:48
isAmberLowActive
protectedisAmberLowActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:47
isPointerVisible
protectedreadonlyisPointerVisible:MappedSubscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:55
isRed
protectedreadonlyisRed:MappedSubject<[boolean,boolean],boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:53
isRedHighActive
protectedisRedHighActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:52
isRedLowActive
protectedisRedLowActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:51
pointer
protectedreadonlypointer:Subscribable<null|number>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/AbstractEngineGauge.tsx:58
Inherited from
pointerTransform
protectedreadonlypointerTransform:Subject<string>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:56
pointerTransformBuilder
protectedreadonlypointerTransformBuilder:CssRotate3dTransform
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:57
props
props:
DialGaugeProps&ComponentProps
Defined in: sdk/components/FSComponent.ts:61
The properties of the component.
Inherited from
valueDisp
protectedreadonlyvalueDisp:MappedSubscribable<string>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/AbstractEngineIndicator.tsx:16
Inherited from
Methods
destroy()
destroy():
void
Defined in: sdk/components/FSComponent.ts:98
Destroys this component.
Returns
void
Inherited from
getContext()
protectedgetContext(context):never
Defined in: sdk/components/FSComponent.ts:106
Gets a context data subscription from the context collection.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | never | The context to get the subscription for. |
Returns
never
The requested context.
Throws
An error if no data for the specified context type could be found.
Inherited from
AbstractEngineGauge.getContext
onAfterRender()
onAfterRender(
node):void
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:168
A callback that is called after the component is rendered.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | VNode | The component's VNode. |
Returns
void
Overrides
AbstractEngineGauge.onAfterRender
onBeforeRender()
onBeforeRender():
void
Defined in: sdk/components/FSComponent.ts:80
A callback that is called before the component is rendered.
Returns
void
Inherited from
AbstractEngineGauge.onBeforeRender
onValueChanged()
protectedonValueChanged(val):void
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:106
Sub handler for props.value.
Parameters
| Parameter | Type |
|---|---|
val | null | number |
Returns
void
Overrides
AbstractEngineGauge.onValueChanged
render()
render():
VNode
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:185
Renders the component.
Returns
A JSX element to be rendered.
Overrides
renderMarks()
protectedrenderMarks():VNode[]
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:70
Renders the static markings
Returns
VNode[]
SVG lines.
Overrides
AbstractEngineGauge.renderMarks
updateMask()
updateMask(
angle):void
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:118
Updates the current Gauge mask.
Parameters
| Parameter | Type | Description |
|---|---|---|
angle | number | The new mask angle. |
Returns
void