InitialNodeProperties

Interface InitialNodeProperties

Defines initial properties of a new node. These become the default values for the new node, i.e. InstanceGraphAPI.resetProperty and InstanceGraphAPI.resetProperties will reset to these values.

interface InitialNodeProperties {
    appearanceURI?: string;
    attachmentId?: number;
    auxEnabled?: boolean;
    comparisonGroup?: ComparisonGroup;
    customProperties?: { [customPropertyName: string]: Serializable };
    enabled?: boolean;
    ghosted?: boolean;
    localTransform?: [
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
    ];
    outlined?: boolean;
    pickable?: boolean;
    real?: boolean;
    realOccluder?: boolean;
    renderMode?: RenderMode;
}

Properties

appearanceURI?: string

Specifies the initial appearance URI of the added node.

null
attachmentId?: number

Specifies the initial attachment ID of the added node.

undefined
auxEnabled?: boolean

Specifies the initial aux enabled state of the added node.

false
comparisonGroup?: ComparisonGroup

Specifies the initial comparison of the added node.

ComparisonGroup.NONE
customProperties?: { [customPropertyName: string]: Serializable }

Specifies the initial custom property states of the added node.

undefined
enabled?: boolean

Specifies the initial enabled state of the added node.

false
ghosted?: boolean

Specifies the initial ghosted state of the added node.

false
localTransform?: [
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
]

Specifies the initial local transform of the added node.

[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
outlined?: boolean

Specifies the initial outlined state of the added node.

false
pickable?: boolean

Specifies the initial pickable state of the added node.

true
real?: boolean

Specifies the initial real state of the added node.

false
realOccluder?: boolean

Specifies the initial real occluder state of the added node.

false
renderMode?: RenderMode

Specifies the initial render mode of the added node.

RenderMode.UNSET

Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: