API / geotoolkit / controls / tools / CrossHair / CrossHair
Type Aliases
Ƭ EventMap: EventMap & { onPointerDown: CrossHairEventArgs ; onPointerUp: CrossHairEventArgs ; onPositionChanged: CrossHairEventArgs }
Ƭ LabelSettings: Object
JSON to configure label
| Name | Type | Description |
|---|---|---|
alignment? | AnchorType | alignment of the text |
cssclass? | string | The css class name of this node |
displaymode? | LabelDisplayMode | Label display mode, default is LabelDisplayMode.Shape |
fillstyle? | Type | fill style of the text |
linestyle? | Type | line style of the text border |
offset? | Type | label offset between the text and cross-hair cursor, use padding in case of undefined |
padding? | number | Deprecated since 4.0 use padding style instead padding between the text and the border |
paddingstyle? | Type | padding style between the text and the border |
radius? | number | radius of the text shape border |
textconverter? | TextConverter | strategy to convert x,y to text |
textstyle? | Type | text style of the text |
tooltip? | Properties | Tooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement |
visible? | boolean | visibility of the text |
z-index? | number | Define node z-index |
Ƭ LabelSettingsOut: Object
JSON to configure label
| Name | Type | Description |
|---|---|---|
alignment | AnchorType | alignment of the text |
cssclass | string | The css class name of this node |
displaymode | LabelDisplayMode | Label display mode, default is LabelDisplayMode.Shape |
fillstyle | FillStyle | null | fill style of the text |
linestyle | LineStyle | null | line style of the text border |
offset | SpaceStyle | null | label offset between the text and cross-hair cursor, use padding in case of undefined |
padding? | number | Deprecated since 4.0 use paddingstyle instead padding between the text and the border |
paddingstyle | SpaceStyle | null | padding style between the text and the border |
radius | number | radius of the cross-hair center target |
textconverter? | TextConverter | strategy to convert x,y to text |
textstyle | TextStyle | null | text style of the text |
tooltip | Properties | Tooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement |
visible | boolean | visibility of the text |
z-index | number | null | Define node z-index |
Ƭ Options: Options & { center?: LabelSettings & { labelsoffset?: { x?: number ; y?: number } ; lockx?: boolean ; locky?: boolean ; xposition?: number ; yposition?: number } ; east?: LabelSettings ; fillstyle?: Type ; horizontal?: Type ; keeporientation?: boolean ; labels?: "none" | boolean ; linestyle?: Type ; north?: LabelSettings ; outlinestyle?: Type ; radius?: number ; south?: LabelSettings ; symbol?: SymbolShape ; textstyle?: Type ; vertical?: Type ; west?: LabelSettings }
object containing crosshair option OR manipulator layer
Ƭ OptionsOut: OptionsOut & { center?: LabelSettingsOut & { labelsoffset?: { x?: number ; y?: number } ; lockx?: boolean ; locky?: boolean ; xposition?: number ; yposition?: number } ; east?: LabelSettingsOut ; fillstyle: FillStyle | null ; horizontal: LineStyle | null ; keeporientation?: boolean ; linestyle: LineStyle | null ; north?: LabelSettingsOut ; outlinestyle: LineStyle | null ; radius: number ; south?: LabelSettingsOut ; symbol: SymbolShape | null ; textstyle: TextStyle | null ; vertical: LineStyle | null ; west?: LabelSettingsOut }
properties object
Ƭ SelectTargetCallback: (point: Point) => Node | null
▸ (point): Node | null
Select target from scene.
| Name | Type |
|---|---|
point | Point |
Node | null
Ƭ TextConverter: (x: number, y: number) => string
▸ (x, y): string
| Name | Type |
|---|---|
x | number |
y | number |
string