Warning

Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only. These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use. Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability. Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing. The software is provided as is with no guarantees or support.

AddNodeOptions

Type Alias AddNodeOptions

AddNodeOptions: {
    autoExpand?: boolean;
    cacheStrategy?: CacheStrategy;
    dataURI?: string;
    initialProperties?: InitialNodeProperties;
    label?: string;
    mimeType?: string;
    parentId?: number;
}

Options for adding a new node to the scene.

Type declaration

  • OptionalautoExpand?: boolean

    The autoExpand flag can be used to automatically expand the added node to allow direct interaction with the underlying data.

  • OptionalcacheStrategy?: CacheStrategy

    Specifies the strategy which is used when a data cache is requested from the instant3Dhub.

    CacheStrategy.REUSE
    
  • OptionaldataURI?: string

    Specifies the URI to the data resource.

    undefined
    
  • OptionalinitialProperties?: InitialNodeProperties

    Specifies initial properties of the added node. These become the default values for this node, i.e. InstanceGraphAPI.resetProperty and InstanceGraphAPI.resetProperties will reset to these values.

    undefined
    
  • Optionallabel?: string

    Specifies a custom label for the added node.

    undefined
    
  • OptionalmimeType?: string

    Specifies the mime type of the data resource.

    Per default the mime type is automatically detected and an override is only necessary in special cases. Valid mime types can be retrieved from the HubAPI.requestSupportedContentTypes method.

    undefined
    
  • OptionalparentId?: number

    Specifies the parent node ID of the added node.

    0