Whether the weights are applied in the DT's plane local space (U/V/N axes) or directly to world-space delta XYZ components. Default is "world".
The callbacks of the drawing tool.
Here you can define the callbacks that are used when interacting with the drawing tool.
The callback that is called when the drawing tool is cancelled.
The callback that is called when the drawing tool is updated.
The points data of the drawing tool.
Properties for the grid restriction
The data of the points. The points are defined as an array of arrays, where each array contains the x, y and z coordinates of the point.
The activation key of the restriction. If the key is not provided, no key is assigned. If the key is provided, the restriction is only active when the key is pressed.
Whether to create visual helper objects (grid, axis, etc.) for restrictions. (default: true)
Whether the visualization of the restriction is shown or not (if there is one).
If the restriction should be enabled by default.
If the enabling or disabling of the restriction is allowed to the end user. If it is not editable, the default value for enabling or disabling the restriction is used.
Priority of the restriction. The higher the priority, the sooner the restriction is applied. If the priority is the same, the result that is closer to the original point is chosen.
Create a new instance of DrawingTools.
Multiple instances can be active simultaneously. Each returned instance is independent and must be closed individually when no longer needed.
The viewport to which the DrawingTools should be attached.
An object containing custom default textures. The keys should correspond to the texture names used in the properties, and the values should be either a Promise that resolves to an IMapData or an IMapData object.
The DrawingTools instance.
Per-axis propagation weight from one point to another in local space. When a point is dragged, its delta is multiplied component-wise by these weights before being added to the target point's position.