JSHTMLObject

API for managing the registration of ghost JSHTML objects.

Create a API with Module.createHTMLObject.

let trace = Module.createHTMLObject("ID");

Properties

Name
Type
Description

verticalAlign

string

Sets the vertical alignment of the JSHTMLObject (left, center, right).

horizontalAlign

string

Sets the horizontal alignment of the JSHTMLObject (top, middle, bottom).

position

Set object location coordinates (longitude, latitude, altitude).

Function

createbyJson(option) -> object

Creates an HTML Element object.

Name
Type
Description

option

Initialization option property information.

  • Return

    • .result: API success status (1: Success, 0: Failure)

    • .name: Operation API name

    • .return: API return information (object: Normal return value, string: Failure error code)

  • Sample

refresh()

Refreshes the visibility of the object.

Applies visibility changes immediately based on modified object options.

Type Definitions

JSHTMLObject.CreateOptions

Options for creating HTML objects.

Name
Type
Attributes
Default
Description

position

object location coordinates (longitude, latitude, altitude).

container

string

Name of the container to hold the web element.

canvas

web element

Canvas element for setting screen size.

element

web element

Web element to visualize.

verticalAlign

string

optional

top

Visualization option (vertical alignment).

horizontalAlign

string

optional

left

Visualization option (horizontal alignment).

moveChange

function

optional

Callback function at the moment of visibility change.

Last updated