API / geotoolkit / dom
Enumerations
Functions
▸ createCanvasElement(width?, height?, inDevicePixel?): HTMLCanvasElement
create a canvas element, supports for HTMLCanvasElement and node-canvas.
| Name | Type | Description |
|---|---|---|
Optional width | number | the canvas width in pixels |
Optional height | number | the canvas height in pixels |
Optional inDevicePixel | boolean | if set to true width and height will be converted to canvas pixels. |
HTMLCanvasElement
will return an HTMLCanvasElement inside a browser or a Canvas instance inside a nodeJS environment.
▸ createElement(tag, className?): HTMLCanvasElement
| Name | Type |
|---|---|
tag | "canvas" |
Optional className | string |
HTMLCanvasElement
▸ createElement(tag, className?): HTMLDivElement
| Name | Type |
|---|---|
tag | "div" |
Optional className | string |
HTMLDivElement
▸ createElement(tag, className?): HTMLTextAreaElement
| Name | Type |
|---|---|
tag | "textarea" |
Optional className | string |
HTMLTextAreaElement
▸ createElement(tag, className?): HTMLStyleElement
| Name | Type |
|---|---|
tag | "style" |
Optional className | string |
HTMLStyleElement
▸ createElement(tag, className?): HTMLAnchorElement
| Name | Type |
|---|---|
tag | "a" |
Optional className | string |
HTMLAnchorElement
▸ createElement(tag, className?): HTMLElement
| Name | Type |
|---|---|
tag | string |
Optional className | string |
HTMLElement
▸ getAbsolutePosition(element, parentElement?): Object
return position relative to the parent
| Name | Type | Description |
|---|---|---|
element | HTMLElement | HTML element |
Optional parentElement | HTMLElement | the parent HTML element |
Object
| Name | Type |
|---|---|
x | number |
y | number |