JSHTMLObject
API for managing the registration of ghost JSHTML objects.
Create a API with Module.createHTMLObject.
let trace = Module.createHTMLObject("ID");Properties
verticalAlign
string
Sets the vertical alignment of the JSHTMLObject (left, center, right).
horizontalAlign
string
Sets the horizontal alignment of the JSHTMLObject (top, middle, bottom).
Function
createbyJson(option) -> object
Creates an HTML Element object.
- 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 - Refer to function createDivObject 
 
let element = document.createElement("div");
let parameter = {
    position: new Module.JSVector3D(129.13782351349964, 35.17887462859219, 400.0),
    container: "divcontainer",
    canvas: Module.canvas,
    element: element,
};
let object = Module.createHTMLObject("div_object");
object.createbyJson(parameter);refresh()
Refreshes the visibility of the object.
Applies visibility changes immediately based on modified object options.
// Omission of object creation and connection process.
object.refresh();Type Definitions
JSHTMLObject.CreateOptions
Options for creating HTML objects.
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
