ShapeDiver 3D Viewer Application, copyright (c) 2018 ShapeDiver GmbH
ApiSceneInterfaceV2.1.js
Content
- Abstract definition of the ShapeDiver 3D Viewer Scene API V2.1
Type Definitions
-
LiveTransformation
-
Properties:
Name Type Argument Default Description typeLiveTransformationType the type of the transformation
durationNumber the duration of the transformation (when a delay is given, the delay + the duration are combined for the overall duration)
delayNumber <optional>
0 the milliseconds after which the transformation will start
repeatNumber <optional>
0 the number of times the live transformation should be repeated after the initial run
yoyoBoolean <optional>
false if a repeat value is defined, the yoyo value defines if the alternating transformation should be performed in inverse order
parentScenePathType <optional>
the scene path to the parent of this object, the transformation that is applied on the parent is also applied to this object
easingString | function <optional>
'Linear.None' In case a string S is provided, the corresponding easing function TWEEN.Easing[S] will be used if it exists. The easing function may also be passed directly, e.g. one of the many provided by Tween, see also TweenExplained, or a manually defined one.
pivotPoint3d <optional>
a pivot as a 3D position that can be used for rotations and scaling
rotationAxisPoint3d <optional>
the rotation axis (necessary for LIVETRANSFORMATIONTYPE rotation)
rotationDegreeNumber <optional>
the degree of rotation (necessary for LIVETRANSFORMATIONTYPE rotation)
scalingVectorPoint3d <optional>
the scaling vector (necessary for LIVETRANSFORMATIONTYPE scaling)
translationVectorPoint3d <optional>
the translation vector (necessary for LIVETRANSFORMATIONTYPE translation)
-
LiveTransformationObject
-
Properties:
Name Type Argument Default Description scenePathsArray.<ScenePathType> an array of scene paths to which to apply the transformations
transformationsArray.<LiveTransformation> the individual transformations that are applied in the order provided
resetBoolean <optional>
true determines if all objects with the provided paths should be reset to their previous position at the end of the transformations
-
LiveTransformationResponse
-
Properties:
Name Type Description responsesArray.<LiveTransformationSingleResponse> an array of LiveTransformationSingleResponse for the inidividual live transformations
stopfunction a functions that stops all live transformations that were created with the original call
promisePromise a promise that resolves when all the live transformations have finished
-
LiveTransformationSingleResponse
-
Properties:
Name Type Description stopfunction a functions that stops the live transformation
promisePromise a promise that resolves when the live transformation has finished