API / geotoolkit / axis / TickGenerator / TickGenerator
axis.TickGenerator.TickGenerator
Type Aliases
Ƭ AnchorStyleHandler: (grade: string, transformation: Transformation) => AnchorType
▸ (grade, transformation): AnchorType
Callback for TickGenerator to get label anchor type
| Name | Type |
|---|---|
grade | string |
transformation | Transformation |
Ƭ EventMap: EventMap & { Invalidate: void }
Ƭ Grades: typeof GRADES[number]
Ƭ LabelFormatHandler: (tickGenerator: TickGenerator, parent: IModel, orientation: Orientation, tickInfo: TickInfo, tickIndex: number, value: number) => string
▸ (tickGenerator, parent, orientation, tickInfo, tickIndex, value): string
Callback for TickGenerator to build a label for a given model value
| Name | Type |
|---|---|
tickGenerator | TickGenerator |
parent | IModel |
orientation | Orientation |
tickInfo | TickInfo |
tickIndex | number |
value | number |
string
Ƭ Options: Partial<Record<Grades, TickOptions>> & { formatlabelhandler?: LabelFormatHandler ; labelanchortypes?: Record<string, AnchorType | AnchorStyleHandler> ; labelangles?: Record<string, number> ; labelstyles?: TextStyle | Record<string, Type> ; tag?: any ; ticksizes?: Record<string, number> ; tickstyles?: LineStyle | Record<string, Type> ; transformer?: ValueTransformer | (modelValue: number) => number | null ; visiblelabels?: Record<string, boolean> ; visibleticks?: Record<string, boolean> }
An object containing the properties to set
Ƭ OptionsOut: Record<Grades, TickOptions> & { formatlabelhandler: LabelFormatHandler ; labelanchortypes: Record<string, AnchorType | AnchorStyleHandler> ; labelangles: Record<string, number> ; labelstyles: Record<string, TextStyle> ; tag: any ; ticksizes: Record<string, number> ; tickstyles: Record<string, LineStyle | Options> ; transformer: ValueTransformer | (modelValue: number) => number | null ; visiblelabels: Record<string, boolean> ; visibleticks: Record<string, boolean> }
properties
Ƭ TickOptions: Object
An object containing the properties to set
| Name | Type | Description |
|---|---|---|
adjustlabelanchor? | boolean | adjust position of the label anchor |
labelanchor? | AnchorType | AnchorStyleHandler | optional label anchor |
labelangle? | number | angle label rotation angle, in radians |
labelstyle? | Type | object containing the properties to set TextStyle of label. See TextStyle.setProperties for details |
labelvisible? | boolean | label visibility |
ticksize? | number | tick size |
tickstyle? | LineStyle | Options | object containing the properties to set LineStyle of tick. See LineStyle.setProperties for details |
tickvisible? | boolean | tick visibility |