Creates an instance of Icon.
const icon = new Icon('Sample Icon', 'This is a sample icon.', 1, 101, 'imageDataString', new Float32Array([0, 0, 0]), 100, 100, () => console.log('Icon selected'));
The name of the icon.
A brief description of the icon.
The model ID associated with the icon.
The product ID associated with the icon.
Base64 encoded image data for the icon.
Optional
location: Float32Array = nullThe XYZ coordinates for the icon location. If not provided, the centroid of the product bounding box is used.
Optional
width: number = nullThe width of the icon. If null, default width is used.
Optional
height: number = nullThe height of the icon. If null, default height is used.
Optional
onIconSelected: (() => void) = nullCallback function to be executed when the icon is selected.
Gets the description of the icon.
The description of the icon.
Sets the description of the icon.
The new description of the icon.
Gets the height of the icon.
The height of the icon.
Sets the height of the icon.
The new height of the icon.
Gets the Base64 encoded image data of the icon.
The Base64 encoded image data.
Sets the Base64 encoded image data of the icon.
The new Base64 encoded image data.
Gets a boolean value indicating if this icon is enabled
a value indicates if this icon is enabled.
Sets if this icon is enabled or not
a value indicates if this icon is enabled.
Gets the location of the icon.
The XYZ coordinates of the icon.
Sets the location of the icon.
The new XYZ coordinates for the icon.
Gets the model ID associated with the icon.
The model ID.
Gets the name of the icon.
The name of the icon.
Sets the name of the icon.
The new name of the icon.
Gets the callback function to be executed when the icon is selected.
The callback function.
Gets the callback function to be executed when the icon is selected.
The callback function.
Gets the product ID associated with the icon.
The product ID.
Gets the width of the icon.
The width of the icon.
Sets the width of the icon.
The new width of the icon.
Generated using TypeDoc
Represents an icon that can be rendered using the Icons plugin
See
Icons