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
isAmber
protectedreadonlyisAmber:MappedSubject<[boolean,boolean],boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:47
isAmberHighActive
protectedisAmberHighActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:46
isAmberLowActive
protectedisAmberLowActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:45
isPointerVisible
protectedreadonlyisPointerVisible:MappedSubscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:53
isRed
protectedreadonlyisRed:MappedSubject<[boolean,boolean],boolean>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:51
isRedHighActive
protectedisRedHighActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:50
isRedLowActive
protectedisRedLowActive:Subscribable<boolean> |Subscribable<false> |Subscribable<true>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:49
pointer
protectedreadonlypointer:Subscribable<number|null>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/AbstractEngineGauge.tsx:58
Inherited from
pointerTransform
protectedreadonlypointerTransform:CssTransformSubject<CssRotate3dTransform>
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:54
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:172
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 | number | null |
Returns
void
Overrides
AbstractEngineGauge.onValueChanged
render()
render():
VNode
Defined in: workingtitle-instruments-epic2/shared/Components/Eis/DialGauge.tsx:189
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:120
Updates the current Gauge mask.
Parameters
| Parameter | Type | Description |
|---|---|---|
angle | number | The new mask angle. |
Returns
void