Global

Members

(constant) bboxLayer

Source:

(constant) buildMateMap

Builds a map that indexes potential connection mates per connector type
Source:

(constant) checkPropTypes

Source:

(constant) copyProps

Source:

(constant) omit

Source:

(constant) pause

Source:

(constant) pick

Source:

(constant) sum

Source:

Methods

analyse(scene)

Analyses a scene and returns the placement of its objects in the camera's view
Parameters:
Name Type Description
scene THREE.Scene
Source:

calculatePlacement(configuration) → {Object}

Calculate the position of the blockInstances and their connectors
Parameters:
Name Type Description
configuration Configuration
Source:
Returns:
Type
Object

createDefaultEnvironment(reporter) → {Environment}

Parameters:
Name Type Description
reporter Reporter
Source:
Returns:
Type
Environment

decodeDracoFile()

Deprecated:
  • Kept for backward-compatibility with previous DRACOLoader versions.
Source:

drawDimensionsLine(configuration, points, offset, side)

Parameters:
Name Type Description
configuration Group
points Array - array with vectors
offset Number
side String
Source:

findConnection(blockInstanceSetA, blockInstanceSetB, connections) → {Object|null}

Find a connection between block instance sets
Parameters:
Name Type Description
blockInstanceSetA Array.<BlockInstance>
blockInstanceSetB Array.<BlockInstance>
connections Array.<Connection>
Source:
Returns:
connectionData
Type
Object | null

findExtendOptions(configuration) → {Array.<ExtendOption>}

Parameters:
Name Type Description
configuration Configuration
Source:
Returns:
Type
Array.<ExtendOption>

findInsertOptions(configuration) → {Array.<InsertOption>}

Find insert options for a configuration (every connection offers a potential insert opportunity)
Parameters:
Name Type Description
configuration Configuration
Source:
Returns:
Type
Array.<InsertOption>

getDimensions(configuration)

Parameters:
Name Type Description
configuration Configuration source object
Source:

isConstructor(obj)

Parameters:
Name Type Description
obj Object
Source:

KeyboardShortcuts(scene, camera, renderer)

Parameters:
Name Type Description
scene Scene
camera PerspectiveCamera - array with vectors
renderer WebGLRenderer
Source:

report(log)

Report a message
Parameters:
Name Type Description
log LogObject
Source:

setDrawMode()

Deprecated:
  • Yes
Source:

setSkipDequantization()

Deprecated:
  • Yes
Source:

setVerbosity()

Deprecated:
  • Yes
Source:

Type Definitions

ArrayParseType

Type:
  • 'integral' | 'alternatives'
Source:

BaseLoadTracker

Type:
  • Object
Properties:
Name Type Description
base LoadingBase
loads Object.<UUID, Promise.<null>> When the promise resolves it returns a call to this._loadNext()
maxConcurrentLoads number
Source:

BlockInstanceString

A stringified simple object representing a configuration body
Type:
  • string
Source:

BlockSetOption

Type:
  • Object
Properties:
Name Type Description
blockSet 'all' | string name of the block set
Source:

BodyString

A stringified simple object representing a configuration body
Type:
  • string
Source:

BuildRequest

Type:
  • Object
Properties:
Name Type Description
component BuildableComponent
part ComponentPart
quality LoadingQuality
Source:

CommonInformationSourceData

Type:
  • Object
Properties:
Name Type Attributes Description
data.id UUID <optional>
data.name string <optional>
data.url URL <optional>
Source:

ComponentClass

Type:
Source:

ComponentContent

Type:
  • Object
Properties:
Name Type Description
UI QualityContent
main QualityContent
specs QualityContent
Source:

ComponentOrComponentArray

Type:
Source:

ComponentPart

Type:
  • 'main' | 'UI' | 'specs'
Source:

ComponentPartQualityStatus

Type:
  • 'not-loaded' | 'partially-loaded' | 'loading' | 'ready' | 'error'
Source:

ComponentPartStatus

Type:
  • Object
Properties:
Name Type Description
high ComponentPartQualityStatus
medium ComponentPartQualityStatus
low ComponentPartQualityStatus
Source:

ComponentStatus

Type:
  • Object
Properties:
Name Type Description
UI ComponentPartStatus
main ComponentPartStatus
specs ComponentPartStatus
Source:

ConfigString

Type:
  • string
Source:

ConfigurationOptions

Type:
  • Object
Properties:
Name Type Description
blockInsert Boolean
blockExtend Boolean
blockReplace Boolean
Source:

ConfigurationSummary

A summarized version of a configuration that can be used by external apps (i.e. a parent window hosting a configurator in an iFrame adding a configured product to a shopping cart).
Type:
  • Object
Properties:
Name Type Description
products Array.<Object> configuration id, price
Source:

ConfiguratorState

Type:
  • Object
Properties:
Name Type Attributes Description
configuration Configuration
position Vector3
quaternion Quaternion
description string <optional>
Source:

ConnectInstruction

Type:
  • Object
Properties:
Name Type Description
from Object
Properties
Name Type Description
connectable Connectable | string
connector Connector
to Object
Properties
Name Type Description
connectable Connectable | string
connector Connector
Source:

ConnectionRole

Type:
  • 'parent' | 'child' | 'none'
Source:

ConnectionString

A stringified simple object representing a configuration connection
Type:
  • string
Source:

ConnectorInstanceString

A stringified simple object representing a configuration connector instance
Type:
  • string
Source:

ConnectorSummary

Type:
  • Object
Properties:
Name Type Attributes Description
connector Connector
block Block
blockInstance BlockInstance
connected boolean
connection Connection <optional>
role ConnectionRole <optional>
allowedMateTypes Array.<ConnectorType>
allowedMates Array.<Connector>
Source:

ConnectorTypeMates

Type:
  • Object
Properties:
Name Type Description
connectionTypes Array.<ConnectionType> ConnectionTypes in which this connector type is a mate
mateConnectorTypes Array.<ConnectorType> ConnectorTypes that can mate with this connector type
mateConnectors Array.<Connector> Connectors that can mate with this connector type
Source:

CutOption

Type:
  • Object
Properties:
Name Type Attributes Description
blockInstance BlockInstance
oldConnections Array.<Connection>
newConnection Connection <optional>
placement Placement
Source:

CutResult

Type:
  • Object
Properties:
Name Type Description
main ConfiguratorState current configuration wo the cut part
cut ConfiguratorState new configuration with the cut block instance
Source:

DependencyList

Type:
Source:

ExportLevel

Type:
  • 'root' | 'inline'
Source:

ExtendOption

Type:
  • Object
Properties:
Name Type Attributes Description
block Block
connection ConnectInstruction <optional>
placement Placement
Source:

GenericUpdateResult

Type:
  • Object
Properties:
Name Type Description
configuration Configuration the current configuration
position Vector3 current body position
quaternion Quaternion current body quaternion
placement module:configurator/configuration~Placement
Source:

InsertOption

Type:
  • Object
Properties:
Name Type Description
block Block
newConnection1 ConnectInstruction
newConnection2 ConnectInstruction
oldConnection Connection
placement Placement
Source:

Instruction

Type:
  • Object
Properties:
Name Type Attributes Description
remove Object <optional>
Properties
Name Type Attributes Description
blockInstance BlockInstance <optional>
blockInstanceChildren Array.<BlockInstance> <optional>
materialAssignments Array.<MaterialAssignment> <optional>
connections Array.<Connection> <optional>
cut Object <optional>
remove.blockInstances Array.<BlockInstance> <optional>
remove.materialAssignments Array.<MaterialAssignment> <optional>
remove.connections Array.<Connection> <optional>
add Object <optional>
Properties
Name Type Attributes Description
block Block <optional>
materialAssignments Array.<Object> <optional>
configurations Array.<Object> <optional>
splitChainConfigurations Array.<Object> <optional>
connections Array.<Array.<Connector>> <optional>
Array of arrays with two connectors that should be connected
Source:

LibraryNavigationItem

Type:
  • Object
Properties:
Name Type Description
label string
show 'presets' | BlockSetOption | MaterialSetOption
Source:

LoadingQuality

Type:
  • 'medium'
Source:

LogObject

Type:
  • Object
Properties:
Name Type Attributes Default Description
msg string
level SyslogLevel <optional>
debug
time number <optional>
source Object <optional>
Properties
Name Type Attributes Description
id UUID <optional>
name string <optional>
type string <optional>
Source:

LogObjectString

Stringified LogObject
Type:
  • string
Source:

MaterialSetOption

Type:
  • Object
Properties:
Name Type Description
materialSet 'all' | string name of the material set
Source:

MaterialType

Type:
  • 'LineBasicMaterial' | 'LineDashedMaterial' | 'MeshBasicMaterial' | 'MeshDepthMaterial' | 'MeshDistanceMaterial' | 'MeshLambertMaterial' | 'MeshMatcapMaterial' | 'MeshNormalMaterial' | 'MeshPhongMaterial' | 'MeshPhysicalMaterial' | 'MeshStandardMaterial' | 'MeshToonMaterial' | 'PointsMaterial' | 'RawShaderMaterial' | 'ShaderMaterial' | 'ShadowMaterial' | 'SpriteMaterial'
Source:
Type:
  • Object
Properties:
Name Type Description
library Array.<LibraryNavigationItem>
Source:

NotificationHandler(notification)

Parameters:
Name Type Description
notification YoctopusNotification
Source:

PackageLicense

Type:
  • 'GPL'
Source:

PackageMetadata

Type:
  • Object
Properties:
Name Type Attributes Description
id UUID
name string
description string <optional>
author string
license PackageLicense
generator string
repository string
Source:

ParsedBlockInstanceString

A simple object representing a configuration body
Type:
  • object
Properties:
Name Type Description
uuid UUID
templateBlock UUID
position Array.<number>
rotation Array.<number> LETS TURN THIS INTO QUATERNIONS
Source:

ParsedBodyString

A simple object representing a configuration body
Type:
  • object
Properties:
Name Type Description
blockInstances Array.<ParsedBlockInstanceString>
connections Array.<ParsedConnectionString>
Source:

ParsedConfigString

Type:
  • object
Properties:
Name Type Description
bodies Array.<ParsedBodyString>
materials object
Source:

ParsedConnectionString

A simple object representing a configuration connection
Type:
  • object
Properties:
Name Type Description
UUID UUID
from ParsedConnectorInstanceString
to ParsedConnectorInstanceString
Source:

ParsedConnectorInstanceString

A simple object representing a configuration connector instance
Type:
  • object
Properties:
Name Type Description
UUID UUID
connector UUID
blockInstance UUID
Source:

ParseInstruction

Type:
  • Object
Properties:
Name Type Attributes Description
autoLinkDependencies Boolean <optional>
parse Object.<string, ArrayParseType> <optional>
Specification of whether setting arrays should be parsed as lists or alternative options. Default is list.
Source:

Placement

Type:
  • Object
Properties:
Name Type Description
position Vector3
quaternion Quaternion
Source:

ProductSummary

A summarized version of a configured product with relevant manufacturer ids, selected fabrics
Type:
  • Object
Properties:
Name Type Description
configuration_id UUID
products Object
Source:

QualityContent

Type:
  • Object
Properties:
Name Type Description
high Object | null
medium Object | null
low Object | null
Source:

QualitySource

Type:
  • Object
Properties:
Name Type Description
sizeBytes number
path string path to file in the package
Source:

QualitySourceMap

Type:
  • Object
Properties:
Name Type Attributes Description
high QualitySource <optional>
medium QualitySource
low QualitySource <optional>
Source:

ReportInstruction

Type:
  • Object
Properties:
Name Type Description
sendTo function | 'console' | URL
fromLevel SyslogLevel
Source:

Semver

Type:
  • String
Source:

SourceFile

Type:
  • Object
Properties:
Name Type Description
inPackageURL string
fileSize number
Source:

SplitOption

Type:
  • Object
Properties:
Name Type Description
blockInstance BlockInstance
oldConnections Array.<Connection>
siblingChains Array.<Connectable>
placement Placement
Source:

SplitResult

Type:
  • Object
Properties:
Name Type Description
cut ConfiguratorState new configurator with the cut block instance
split Array.<ConfiguratorState> new configurator for each of the split sibling chains
Source:

state

Type:
  • string
Source:

StatesAndTransitions

Type:
Source:

SubAssignable

Type:
  • Object
Properties:
Name Type Attributes Description
positionedMesh PositionedMesh <optional>
positionedMeshGroup PositionedMeshGroup <optional>
materialVariantGroups Array.<MaterialSet> <optional>
assigningComponent BuildableComponent <optional>
Source:

SyslogLevel

Linux syslog level 0 - 7
Type:
  • 'emergency' | 'critical' | 'alert' | 'error' | 'warning' | 'notice' | 'info' | 'debug'
Source:

SyslogLevelNum

Linux syslog level 0 - 7
Type:
  • 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
Source:

UUID

Universally unique identifier. 128 bit number of the form "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx", where x is one of [0-9, a-f] and M is one of [1-5] and N is [8, 9, a, or b]
Type:
  • string
Source:

ViewPoint

Type:
  • Object
Properties:
Name Type Description
x 'left' | 'center' | 'right'
y 'lower' | 'middle' | 'upper'
z 'front' | 'center' | 'back'
Source:

ViewType

Type:
  • 'dimensions' | '3D'
Source:

YoctopusNotification

Type:
  • Object
Properties:
Name Type Attributes Description
meta object
Properties
Name Type Description
id UUID
type string
method string
data object <optional>
Source:

YoctopusRequest

Type:
  • Object
Properties:
Name Type Attributes Description
method string
endpoint string
id UUID <optional>
data object <optional>
Source:

YoctopusResponse

Type:
  • Object
Properties:
Name Type Attributes Description
meta object
Properties
Name Type Description
id UUID
method string
endpoint string
data object <optional>
Source: