@xtctwins/tctwins-core 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tctwins-core.es.js +37 -9
- package/dist/tctwins-core.min.es.js +2 -2
- package/package.json +1 -1
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +2 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +2 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +2 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +2 -0
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
|
|
|
41
41
|
*
|
|
42
42
|
* @param {AngleMeasurementsPlugin} angleMeasurementsPlugin The AngleMeasurementsPlugin to control.
|
|
43
43
|
* @param {Object} [cfg] Configuration options.
|
|
44
|
+
* @param {container} [cfg.container] container that hold markers labels
|
|
44
45
|
* @param {PointerLens} [cfg.pointerLens] A PointerLens to use for providing a magnified view of the cursor when snapping is enabled.
|
|
45
46
|
* @param {boolean} [cfg.snapping=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
|
|
46
47
|
* @param {offsetX} [cfg.offsetX] offsetX of the mouse
|
|
@@ -53,6 +54,7 @@ export class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
|
|
|
53
54
|
snapping?: boolean;
|
|
54
55
|
offsetX?: number;
|
|
55
56
|
offsetY?: number;
|
|
57
|
+
container?: HTMLDivElement;
|
|
56
58
|
}
|
|
57
59
|
);
|
|
58
60
|
|
|
@@ -38,6 +38,7 @@ export class AngleMeasurementsTouchControl extends AngleMeasurementsControl {
|
|
|
38
38
|
/**
|
|
39
39
|
* Creates a AngleMeasurementsTouchControl bound to the given AngleMeasurementsPlugin.
|
|
40
40
|
* @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
|
|
41
|
+
* @param {container} [cfg.container] container that hold markers labels
|
|
41
42
|
* @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
|
|
42
43
|
* @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
|
|
43
44
|
* @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
|
|
@@ -51,6 +52,7 @@ export class AngleMeasurementsTouchControl extends AngleMeasurementsControl {
|
|
|
51
52
|
snapToVertex?: boolean;
|
|
52
53
|
offsetX?: number;
|
|
53
54
|
offsetY?: number;
|
|
55
|
+
container?: HTMLDivElement;
|
|
54
56
|
}
|
|
55
57
|
);
|
|
56
58
|
|
|
@@ -18,6 +18,7 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
|
|
|
18
18
|
*
|
|
19
19
|
* @param {DistanceMeasurementsPlugin} distanceMeasurementsPlugin The DistanceMeasurementsPlugin to control.
|
|
20
20
|
* @param {Object} cfg Configuration options.
|
|
21
|
+
* @param {container} [cfg.container] container that hold markers labels
|
|
21
22
|
* @param {PointerLens} [cfg.pointerLens] A PointerLens to provide a magnified view of the cursor when snapping is enabled.
|
|
22
23
|
* @param {boolean} [cfg.snapping=true] Whether to enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsMouseControl.
|
|
23
24
|
* @param {offsetX} [cfg.offsetX] offsetX of the mouse
|
|
@@ -30,6 +31,7 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
|
|
|
30
31
|
snapping?: boolean;
|
|
31
32
|
offsetX?: number;
|
|
32
33
|
offsetY?: number;
|
|
34
|
+
container?: HTMLDivElement;
|
|
33
35
|
}
|
|
34
36
|
);
|
|
35
37
|
|
|
@@ -17,6 +17,7 @@ export class DistanceMeasurementsTouchControl extends DistanceMeasurementsContro
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates a DistanceMeasurementsTouchControl bound to the given DistanceMeasurementsPlugin.
|
|
19
19
|
* @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
|
|
20
|
+
* @param {container} [cfg.container] container that hold markers labels
|
|
20
21
|
* @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
|
|
21
22
|
* @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
|
|
22
23
|
* @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
|
|
@@ -30,6 +31,7 @@ export class DistanceMeasurementsTouchControl extends DistanceMeasurementsContro
|
|
|
30
31
|
snapToVertex?: boolean;
|
|
31
32
|
offsetX?: number;
|
|
32
33
|
offsetY?: number;
|
|
34
|
+
container?: HTMLDivElement;
|
|
33
35
|
}
|
|
34
36
|
);
|
|
35
37
|
|