Picto
Extends
CustomObject
class Picto extends CustomObject
Static
create
static create(json = null): Picto
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: Picto
getName
static getName(): string
Returns:
Type: string
Constructor
constructor
constructor(json = null): Picto
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
file
Type | Default | Description |
---|---|---|
Reference<File> | new Reference('File', null) |
height
Type | Default | Description |
---|---|---|
number | null | null |
original_md5
Type | Default | Description |
---|---|---|
string | null | null |
width
Type | Default | Description |
---|---|---|
number | null | null |
Overwritten Properties
type
Type | Default | Description |
---|---|---|
enum(CUSTOM_OBJECT_TYPES) | CUSTOM_OBJECT_TYPES.PICTO |
Read-Only
Inherited Properties
autoscale
Type | Default | Description |
---|---|---|
boolean | false |
id
Type | Default | Description |
---|---|---|
null | int | symbol | null | The entity identifier |
metadata
Type | Default | Description |
---|---|---|
Map | new Map() |
offset
Type | Default | Description |
---|---|---|
Vector | new Vector() |
orientation_mode
Type | Default | Description |
---|---|---|
enum(CUSTOM_OBJECT_ORIENTATION_MODES) | CUSTOM_OBJECT_ORIENTATION_MODES.BILLBOARD |
permanent_display
Type | Default | Description |
---|---|---|
boolean | true |
place
Type | Default | Description |
---|---|---|
Reference<Place> | new Reference('Place', null) |
poi
Type | Default | Description |
---|---|---|
Reference<Poi> | new Reference('Poi', null) |
priority
Type | Default | Description |
---|---|---|
int | 0 |
rotation
Type | Default | Description |
---|---|---|
number | 0 |
site
Type | Default | Description |
---|---|---|
Reference<Site> | new Reference('Site', null) |
Methods
toJSON
toJSON(): object
Returns:
Type: object (see properties bellow)
Name | Type | Description |
---|---|---|
autoscale | boolean | |
id | int | symbol | null | |
metadata | object | |
offset | {x: number, y: number, z: number} | See Vector |
orientation_mode | string | See CUSTOM_OBJECT_ORIENTATION_MODES |
permanent_display | boolean | |
place | int | symbol | null | |
poi | int | symbol | null | |
priority | int | |
rotation | number | |
site | int | symbol | null | |
type | string | null | |
file | int | symbol | null | See alignment property |
height | number | null | |
original_md5 | string | null | |
width | number | null |
fromJSON
fromJSON(json: object): Picto
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | object | Yes | - | |
json.autoscale | boolean | No | false | |
json.id | int | symbol | null | No | null | |
json.metadata | object | No | {} | |
json.offset | {x: number, y: number, z: number} | No | {x: 0, y: 0, z: 0} | See Vector |
json.orientation_mode | string | No | 'BILLBOARD' | See CUSTOM_OBJECT_ORIENTATION_MODES |
json.permanent_display | boolean | No | true | |
json.place | int | symbol | null | No | null | |
json.poi | int | symbol | null | No | null | |
json.priority | int | No | 0 | |
json.rotation | number | No | 0 | |
json.site | int | symbol | null | No | null | |
json.type | string | null | No | 'picto' | |
json.file | int | symbol | null | No | 'center' | See alignment property |
json.height | number | null | No | null | |
json.original_md5 | string | null | No | 'Arial' | |
json.width | number | null | No | '#000000' |
Returns:
Returns this
clone
clone(): Picto
Returns:
A new deep copy
Type: Picto