@idetik/core 0.41.0 → 0.43.0

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
@@ -659,6 +659,7 @@ type GeometryAttribute = {
659
659
  offset: number;
660
660
  };
661
661
  declare class Geometry extends Node {
662
+ instanceCount: number | null;
662
663
  private boundingBox_;
663
664
  protected primitive_: Primitive;
664
665
  protected attributes_: GeometryAttribute[];
@@ -1302,6 +1303,14 @@ interface CameraControls {
1302
1303
  */
1303
1304
  onEvent(event: EventContext): void;
1304
1305
  }
1306
+ type ScrollZoomMode = "always" | "modifier" | "never";
1307
+ /**
1308
+ * Initialization properties for constructing pan and zoom controls.
1309
+ */
1310
+ type PanZoomControlsProps = {
1311
+ /** When the scroll wheel zooms. Defaults to `"always"`. */
1312
+ scrollZoom?: ScrollZoomMode;
1313
+ };
1305
1314
  /**
1306
1315
  * Camera controls for 2D pan and zoom with an orthographic camera.
1307
1316
  *
@@ -1331,14 +1340,16 @@ interface CameraControls {
1331
1340
  */
1332
1341
  declare class PanZoomControls implements CameraControls {
1333
1342
  private readonly camera_;
1343
+ private readonly scrollZoom_;
1334
1344
  private dragActive_;
1335
1345
  private dragStart_;
1336
1346
  /**
1337
1347
  * Creates pan and zoom controls for the given camera.
1338
1348
  *
1339
1349
  * @param camera - The orthographic camera to control.
1350
+ * @param params - Initialization properties.
1340
1351
  */
1341
- constructor(camera: OrthographicCamera);
1352
+ constructor(camera: OrthographicCamera, params?: PanZoomControlsProps);
1342
1353
  /** Whether a pan drag is in progress. */
1343
1354
  get isMoving(): boolean;
1344
1355
  /**
@@ -3368,6 +3379,8 @@ type OrbitControlsProps = {
3368
3379
  target?: vec3;
3369
3380
  /** Velocity decay rate between `0` and `1`. Defaults to `0.5`. */
3370
3381
  dampingFactor?: number;
3382
+ /** When the scroll wheel zooms. Defaults to `"always"`. */
3383
+ scrollZoom?: ScrollZoomMode;
3371
3384
  };
3372
3385
  /**
3373
3386
  * Camera controls for orbiting a perspective camera around a target.
@@ -3401,6 +3414,7 @@ declare class OrbitControls implements CameraControls {
3401
3414
  private readonly currPos_;
3402
3415
  private readonly currCenter_;
3403
3416
  private readonly dampingFactor_;
3417
+ private readonly scrollZoom_;
3404
3418
  private currMouseButton_;
3405
3419
  /**
3406
3420
  * Creates orbit controls and moves the camera to the initial pose.
@@ -3445,4 +3459,4 @@ declare class OrbitControls implements CameraControls {
3445
3459
  }
3446
3460
 
3447
3461
  export { AxesLayer, Box2, Box3, Camera, Color, Frustum, Idetik, ImageLayer, ImageRenderable, LabelImageRenderable, LabelLayer, Layer, OmeZarrImageSource, OrbitControls, OrthographicCamera, PanZoomControls, PerspectiveCamera, PointsRenderable, ProjectedLineRenderable, RenderableObject, TrsTransform, Viewport, VolumeLayer, VolumeRenderable, createExplorationPolicy, createImageSourcePolicy, createNoPrefetchPolicy, createPlaybackPolicy, loadOmeZarrPlate, loadOmeZarrWell, loadOmeroChannels, loadOmeroDefaults };
3448
- export type { AxesLayerProps, BlendMode, CameraControls, CameraType, ChannelProps, ColorLike, FileSystemOmeZarrImageSourceProps, HttpOmeZarrImageSourceProps, IdetikProps, ImageLayerProps, ImageRenderableProps, ImageSourcePolicy, ImageSourcePolicyProps, LabelColorMap, LabelColorMapProps, LabelImageRenderableProps, LabelLayerProps, LayerProps, LayerState, MemoryStats, OrbitControlsProps, OrthographicCameraFrame, OrthographicCameraProps, Overlay, PerspectiveCameraProps, PointPickingResult, PointProps, PriorityCategory, ProjectedLineRenderableProps, QueueStats, SliceCoordinates, SliceOrientation, SourceDimension, SourceDimensionLod, SourceDimensionMap, StateChangeCallback, ViewportProps, VolumeLayerProps, VolumeRenderableProps };
3462
+ export type { AxesLayerProps, BlendMode, CameraControls, CameraType, ChannelProps, ColorLike, FileSystemOmeZarrImageSourceProps, HttpOmeZarrImageSourceProps, IdetikProps, ImageLayerProps, ImageRenderableProps, ImageSourcePolicy, ImageSourcePolicyProps, LabelColorMap, LabelColorMapProps, LabelImageRenderableProps, LabelLayerProps, LayerProps, LayerState, MemoryStats, OrbitControlsProps, OrthographicCameraFrame, OrthographicCameraProps, Overlay, PanZoomControlsProps, PerspectiveCameraProps, PointPickingResult, PointProps, PriorityCategory, ProjectedLineRenderableProps, QueueStats, SliceCoordinates, SliceOrientation, SourceDimension, SourceDimensionLod, SourceDimensionMap, StateChangeCallback, ViewportProps, VolumeLayerProps, VolumeRenderableProps };