Last updated

API / geotoolkit / controls / tools / CrossHair / CrossHair

Namespace: CrossHair

tools.CrossHair.CrossHair

Table of contents

Type Aliases

Contents

Type Aliases

EventMap

Ƭ EventMap: EventMap & { onPointerDown: CrossHairEventArgs ; onPointerUp: CrossHairEventArgs ; onPositionChanged: CrossHairEventArgs }


LabelSettings

Ƭ LabelSettings: Object

JSON to configure label

Type declaration

NameTypeDescription
alignment?AnchorTypealignment of the text
cssclass?stringThe css class name of this node
displaymode?LabelDisplayModeLabel display mode, default is LabelDisplayMode.Shape
fillstyle?Typefill style of the text
linestyle?Typeline style of the text border
offset?Typelabel offset between the text and cross-hair cursor, use padding in case of undefined
padding?numberDeprecated since 4.0 use padding style instead padding between the text and the border
paddingstyle?Typepadding style between the text and the border
radius?numberradius of the text shape border
textconverter?TextConverterstrategy to convert x,y to text
textstyle?Typetext style of the text
tooltip?PropertiesTooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement
visible?booleanvisibility of the text
z-index?numberDefine node z-index

LabelSettingsOut

Ƭ LabelSettingsOut: Object

JSON to configure label

Type declaration

NameTypeDescription
alignmentAnchorTypealignment of the text
cssclassstringThe css class name of this node
displaymodeLabelDisplayModeLabel display mode, default is LabelDisplayMode.Shape
fillstyleFillStyle | nullfill style of the text
linestyleLineStyle | nullline style of the text border
offsetSpaceStyle | nulllabel offset between the text and cross-hair cursor, use padding in case of undefined
padding?numberDeprecated since 4.0 use paddingstyle instead padding between the text and the border
paddingstyleSpaceStyle | nullpadding style between the text and the border
radiusnumberradius of the cross-hair center target
textconverter?TextConverterstrategy to convert x,y to text
textstyleTextStyle | nulltext style of the text
tooltipPropertiesTooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement
visiblebooleanvisibility of the text
z-indexnumber | nullDefine node z-index

Options

Ƭ 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: 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

Ƭ SelectTargetCallback: (point: Point) => Node | null

Type declaration

▸ (point): Node | null

Select target from scene.

Parameters
Name Type
pointPoint
Returns

Node | null


TextConverter

Ƭ TextConverter: (x: number, y: number) => string

Type declaration

▸ (x, y): string

Parameters
Name Type
xnumber
ynumber
Returns

string