This version of the ShapeDiver viewer is no longer supported.

Please refer to the version 3 documentation here. See also the migration guide from version 2 to version 3 here.

Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IEventData

Index

Properties

Optional anchorId

anchorId: string

ID of the anchor.

Optional distance

distance: number

Distance between actual position and anchor (after rotation).

dragEvent

dragEvent: any

The event data of the drag event.

Optional nonRotatedPosition

nonRotatedPosition: THREE.Vector3

Position if no rotation is applied.

Optional position

position: THREE.Vector3

Current position of the anchor (after rotation).

Optional rotationMatrix

rotationMatrix: THREE.Matrix4

The currently applied rotation matrix.

Optional rotationMatrixRelative

rotationMatrixRelative: THREE.Matrix4

The currently rotation matrix relative to the previous one.

snap

snap: boolean

If the object was snapped to a snap element.

Optional snapElement

snapElement: ISnapElement

If the object was snapped, the snap element.

Optional snapInfo

snapInfo: ISnapInfo

If the object was snapped, the snap info.

snappedBefore

snappedBefore: boolean

If the object was snapped before snap element.

Optional transformPoint

transformPoint: (p: THREE.Vector3) => THREE.Vector3

Transform a point according to the current object transformation

Type declaration

    • (p: THREE.Vector3): THREE.Vector3
    • Parameters

      • p: THREE.Vector3

      Returns THREE.Vector3