@idetik/core 0.32.6 → 0.32.7

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/index.d.ts CHANGED
@@ -448,6 +448,23 @@ declare abstract class Camera extends RenderableObject {
448
448
  clipToWorld(position: vec3): vec3;
449
449
  }
450
450
 
451
+ declare class Plane {
452
+ normal: vec3;
453
+ signedDistance: number;
454
+ constructor(normal?: vec3, distance?: number);
455
+ static fromPointAndNormal(point: vec3, normal: vec3): Plane;
456
+ set(normal: vec3, distance: number): void;
457
+ signedDistanceToPoint(point: vec3): number;
458
+ normalize(): void;
459
+ }
460
+
461
+ declare class Ray {
462
+ readonly origin: vec3;
463
+ readonly direction: vec3;
464
+ constructor(origin: vec3, direction: vec3);
465
+ intersectWithPlane(plane: Plane): vec3 | null;
466
+ }
467
+
451
468
  declare const eventTypes: readonly ["pointerdown", "pointermove", "pointerup", "pointercancel", "wheel"];
452
469
  type EventType = (typeof eventTypes)[number];
453
470
  declare class EventContext {
@@ -455,6 +472,7 @@ declare class EventContext {
455
472
  readonly type: EventType;
456
473
  readonly event?: Event;
457
474
  worldPos?: vec3;
475
+ worldRay?: Ray;
458
476
  clipPos?: vec3;
459
477
  constructor(type: EventType, event?: Event);
460
478
  get propagationStopped(): boolean;
@@ -1508,6 +1526,7 @@ declare class ImageLayer extends Layer implements ChannelsEnabled {
1508
1526
  get lastPresentationTimeCoord(): number | undefined;
1509
1527
  private isPresentationStale;
1510
1528
  onEvent(event: EventContext): void;
1529
+ private pickAtRay;
1511
1530
  get chunkStoreView(): ChunkStoreView | undefined;
1512
1531
  get sliceCoords(): SliceCoordinates;
1513
1532
  get source(): ChunkSource;
@@ -1621,6 +1640,7 @@ declare class LabelLayer extends Layer {
1621
1640
  hasMultipleLODs(): boolean;
1622
1641
  private isPresentationStale;
1623
1642
  onEvent(event: EventContext): void;
1643
+ private pickAtRay;
1624
1644
  get colorMap(): LabelColorMap;
1625
1645
  setColorMap(colorMap: LabelColorMapProps): void;
1626
1646
  setSelectedValue(value: number | null): void;