@selvajs/visualization 1.6.0-beta.10 → 1.6.0-beta.11
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/render.cjs +409 -128
- package/dist/render.cjs.map +1 -1
- package/dist/render.d.cts +9 -6
- package/dist/render.d.ts +9 -6
- package/dist/render.js +409 -128
- package/dist/render.js.map +1 -1
- package/package.json +3 -2
package/dist/render.d.cts
CHANGED
|
@@ -376,12 +376,13 @@ interface LabelLayer {
|
|
|
376
376
|
dispose(): void;
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
*
|
|
380
|
-
* the
|
|
379
|
+
* Point-to-point distance measurement. Click a start point; a rubber band and live readout follow
|
|
380
|
+
* the cursor until the second click commits it. Committed measurements stay until Escape (which
|
|
381
|
+
* first drops an unfinished start point) or until the tool is disabled.
|
|
381
382
|
*
|
|
382
|
-
* Picking snaps to the nearest vertex
|
|
383
|
-
*
|
|
384
|
-
*
|
|
383
|
+
* Picking snaps to the nearest vertex of the struck triangle, segment or point within
|
|
384
|
+
* {@link MeasureOptions.snapPixels}; the hover marker turns solid when it has snapped. Meshes are
|
|
385
|
+
* picked through a BVH (`scene-pick.ts`), so hovering stays cheap on large models.
|
|
385
386
|
*
|
|
386
387
|
* Dormant until {@link MeasureTool.setEnabled}(true). While enabled it intercepts clicks (caller
|
|
387
388
|
* forwards them and swallows the event when {@link MeasureTool.handleClick} returns true) so
|
|
@@ -392,8 +393,10 @@ interface MeasureTool {
|
|
|
392
393
|
isEnabled(): boolean;
|
|
393
394
|
/** Returns true if the tool consumed the click (caller should not also select). */
|
|
394
395
|
handleClick(event: MouseEvent): boolean;
|
|
395
|
-
/** Preview the next snap point
|
|
396
|
+
/** Preview the next snap point and the rubber band. No-op when disabled; never consumes the event. */
|
|
396
397
|
handleMove(event: MouseEvent): void;
|
|
398
|
+
/** Drops the unfinished start point, or every measurement when there is none. Bound to Escape. */
|
|
399
|
+
cancel(): void;
|
|
397
400
|
clear(): void;
|
|
398
401
|
dispose(): void;
|
|
399
402
|
}
|
package/dist/render.d.ts
CHANGED
|
@@ -376,12 +376,13 @@ interface LabelLayer {
|
|
|
376
376
|
dispose(): void;
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
*
|
|
380
|
-
* the
|
|
379
|
+
* Point-to-point distance measurement. Click a start point; a rubber band and live readout follow
|
|
380
|
+
* the cursor until the second click commits it. Committed measurements stay until Escape (which
|
|
381
|
+
* first drops an unfinished start point) or until the tool is disabled.
|
|
381
382
|
*
|
|
382
|
-
* Picking snaps to the nearest vertex
|
|
383
|
-
*
|
|
384
|
-
*
|
|
383
|
+
* Picking snaps to the nearest vertex of the struck triangle, segment or point within
|
|
384
|
+
* {@link MeasureOptions.snapPixels}; the hover marker turns solid when it has snapped. Meshes are
|
|
385
|
+
* picked through a BVH (`scene-pick.ts`), so hovering stays cheap on large models.
|
|
385
386
|
*
|
|
386
387
|
* Dormant until {@link MeasureTool.setEnabled}(true). While enabled it intercepts clicks (caller
|
|
387
388
|
* forwards them and swallows the event when {@link MeasureTool.handleClick} returns true) so
|
|
@@ -392,8 +393,10 @@ interface MeasureTool {
|
|
|
392
393
|
isEnabled(): boolean;
|
|
393
394
|
/** Returns true if the tool consumed the click (caller should not also select). */
|
|
394
395
|
handleClick(event: MouseEvent): boolean;
|
|
395
|
-
/** Preview the next snap point
|
|
396
|
+
/** Preview the next snap point and the rubber band. No-op when disabled; never consumes the event. */
|
|
396
397
|
handleMove(event: MouseEvent): void;
|
|
398
|
+
/** Drops the unfinished start point, or every measurement when there is none. Bound to Escape. */
|
|
399
|
+
cancel(): void;
|
|
397
400
|
clear(): void;
|
|
398
401
|
dispose(): void;
|
|
399
402
|
}
|