editor › Globals › HintRotationProvider
Class: HintRotationProvider
Base class for hint rotation providers, defining basic interface to provide an angle of something.
Hierarchy
↳ HintRotationProvider
Index
Methods
Methods
Abstract calculate
▸ calculate(): void
Inherited from HintDataProvider.calculate
Defined in src/renderContext/hints/HintDataProvider.ts:15
Trigger recalculation of internally stored values
Returns: void
destroy
▸ destroy(): void
Inherited from HintDataProvider.destroy
Defined in src/renderContext/hints/HintDataProvider.ts:20
Called when the hint that uses this provider is destroyed. You want to do cleanup here.
Returns: void
Abstract getAngle
▸ getAngle(): number
Defined in src/renderContext/hints/HintRotationProvider/HintRotationProvider.ts:11
Returns: number
the angle, in radians, of the referenced object.
Abstract isValid
▸ isValid(): boolean
Inherited from HintDataProvider.isValid
Defined in src/renderContext/hints/HintDataProvider.ts:10
Checks whether this hint is still valid (e.g. edge it annotates still exists)
Returns: boolean