@idetik/core 0.32.7 → 0.33.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
@@ -37,6 +37,8 @@ declare abstract class Texture extends Node {
37
37
  get type(): string;
38
38
  }
39
39
 
40
+ type SliceOrientation = "XY" | "XZ" | "YZ";
41
+
40
42
  declare const chunkDataTypes: readonly [Int8ArrayConstructor, Int16ArrayConstructor, Int32ArrayConstructor, Uint8ArrayConstructor, Uint16ArrayConstructor, Uint32ArrayConstructor, Float32ArrayConstructor];
41
43
  type ChunkDataConstructor = (typeof chunkDataTypes)[number];
42
44
  type ChunkData = InstanceType<ChunkDataConstructor>;
@@ -490,6 +492,11 @@ declare class EventDispatcher {
490
492
  private readonly handleEvent;
491
493
  }
492
494
 
495
+ type OrthographicCameraOptions = {
496
+ near?: number;
497
+ far?: number;
498
+ orientation?: SliceOrientation;
499
+ };
493
500
  /**
494
501
  * A camera using an orthographic (parallel) projection.
495
502
  *
@@ -508,6 +515,8 @@ declare class OrthographicCamera extends Camera {
508
515
  private height_;
509
516
  private viewportAspectRatio_;
510
517
  private viewportSize_;
518
+ private readonly axes_;
519
+ private readonly rotation_;
511
520
  /**
512
521
  * Creates an orthographic camera framing the given world-space rectangle.
513
522
  *
@@ -515,10 +524,10 @@ declare class OrthographicCamera extends Camera {
515
524
  * @param right - Right edge of the view frame, in world units.
516
525
  * @param top - Top edge of the view frame, in world units.
517
526
  * @param bottom - Bottom edge of the view frame, in world units.
518
- * @param near - Near clipping plane distance. Defaults to `-1e6`.
519
- * @param far - Far clipping plane distance. Defaults to `1e6`.
527
+ * @param options - Near/far clipping plane distances (default `-1e6` and
528
+ * `1e6`) and the slice orientation the camera faces (default `"XY"`).
520
529
  */
521
- constructor(left: number, right: number, top: number, bottom: number, near?: number, far?: number);
530
+ constructor(left: number, right: number, top: number, bottom: number, options?: OrthographicCameraOptions);
522
531
  get viewportSize(): [number, number];
523
532
  setAspectRatio(aspectRatio: number): void;
524
533
  setFrame(left: number, right: number, bottom: number, top: number): void;