@idetik/core 0.34.0 → 0.35.1
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 +30 -6
- package/dist/index.js +663 -614
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +24 -24
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/layers/image_layer.d.ts +10 -2
- package/dist/types/src/layers/image_layer.d.ts.map +1 -1
- package/dist/types/src/layers/label_layer.d.ts +10 -2
- package/dist/types/src/layers/label_layer.d.ts.map +1 -1
- package/dist/types/src/objects/cameras/orthographic_camera.d.ts +10 -2
- package/dist/types/src/objects/cameras/orthographic_camera.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -522,8 +522,9 @@ declare class OrthographicCamera extends Camera {
|
|
|
522
522
|
private height_;
|
|
523
523
|
private viewportAspectRatio_;
|
|
524
524
|
private viewportSize_;
|
|
525
|
-
private
|
|
526
|
-
private
|
|
525
|
+
private axes_;
|
|
526
|
+
private rotation_;
|
|
527
|
+
private orientation_;
|
|
527
528
|
/**
|
|
528
529
|
* Creates an orthographic camera framing the given world-space rectangle.
|
|
529
530
|
*
|
|
@@ -539,6 +540,13 @@ declare class OrthographicCamera extends Camera {
|
|
|
539
540
|
setAspectRatio(aspectRatio: number): void;
|
|
540
541
|
setFrame(left: number, right: number, bottom: number, top: number): void;
|
|
541
542
|
get type(): CameraType;
|
|
543
|
+
get orientation(): SliceOrientation;
|
|
544
|
+
/**
|
|
545
|
+
* Changes the slice orientation the camera faces. The current frame and
|
|
546
|
+
* zoom carry over numerically to the new plane axes. Call {@link setFrame}
|
|
547
|
+
* to reframe the view for the new plane.
|
|
548
|
+
*/
|
|
549
|
+
setOrientation(orientation: SliceOrientation): void;
|
|
542
550
|
zoom(factor: number): void;
|
|
543
551
|
getWorldViewRect(): Box2;
|
|
544
552
|
protected updateProjectionMatrix(): void;
|
|
@@ -1520,8 +1528,9 @@ declare class ImageLayer extends Layer implements ChannelsEnabled {
|
|
|
1520
1528
|
readonly type = "ImageLayer";
|
|
1521
1529
|
private readonly source_;
|
|
1522
1530
|
private readonly sliceCoords_;
|
|
1523
|
-
private
|
|
1524
|
-
private
|
|
1531
|
+
private axes_;
|
|
1532
|
+
private planeRotation_;
|
|
1533
|
+
private orientation_;
|
|
1525
1534
|
private readonly onPickValue_?;
|
|
1526
1535
|
private readonly visibleChunks_;
|
|
1527
1536
|
private readonly pool_;
|
|
@@ -1530,6 +1539,7 @@ declare class ImageLayer extends Layer implements ChannelsEnabled {
|
|
|
1530
1539
|
private policy_;
|
|
1531
1540
|
private channelProps_?;
|
|
1532
1541
|
private chunkStoreView_?;
|
|
1542
|
+
private context_?;
|
|
1533
1543
|
private pointerDownPos_;
|
|
1534
1544
|
private debugMode_;
|
|
1535
1545
|
private static readonly STALE_PRESENTATION_MS_;
|
|
@@ -1540,6 +1550,12 @@ declare class ImageLayer extends Layer implements ChannelsEnabled {
|
|
|
1540
1550
|
protected attach(context: IdetikContext): void;
|
|
1541
1551
|
protected detach(_context: IdetikContext): void;
|
|
1542
1552
|
update(viewport?: Viewport): void;
|
|
1553
|
+
get orientation(): SliceOrientation;
|
|
1554
|
+
/**
|
|
1555
|
+
* Changes the slice orientation at runtime. Visible renderables are rebuilt
|
|
1556
|
+
* for the new plane, chunks already resident in the shared cache are reused.
|
|
1557
|
+
*/
|
|
1558
|
+
setOrientation(orientation: SliceOrientation): void;
|
|
1543
1559
|
private updateChunks;
|
|
1544
1560
|
hasMultipleLODs(): boolean;
|
|
1545
1561
|
get lastPresentationTimeCoord(): number | undefined;
|
|
@@ -1639,8 +1655,9 @@ declare class LabelLayer extends Layer {
|
|
|
1639
1655
|
readonly type = "LabelLayer";
|
|
1640
1656
|
private readonly source_;
|
|
1641
1657
|
private readonly sliceCoords_;
|
|
1642
|
-
private
|
|
1643
|
-
private
|
|
1658
|
+
private axes_;
|
|
1659
|
+
private planeRotation_;
|
|
1660
|
+
private orientation_;
|
|
1644
1661
|
private readonly onPickValue_?;
|
|
1645
1662
|
private readonly outlineSelected_;
|
|
1646
1663
|
private readonly visibleChunks_;
|
|
@@ -1649,6 +1666,7 @@ declare class LabelLayer extends Layer {
|
|
|
1649
1666
|
private selectedValue_;
|
|
1650
1667
|
private policy_;
|
|
1651
1668
|
private chunkStoreView_?;
|
|
1669
|
+
private context_?;
|
|
1652
1670
|
private pointerDownPos_;
|
|
1653
1671
|
private static readonly STALE_PRESENTATION_MS_;
|
|
1654
1672
|
private lastPresentationTimeStamp_?;
|
|
@@ -1657,6 +1675,12 @@ declare class LabelLayer extends Layer {
|
|
|
1657
1675
|
protected attach(context: IdetikContext): void;
|
|
1658
1676
|
protected detach(_context: IdetikContext): void;
|
|
1659
1677
|
update(viewport?: Viewport): void;
|
|
1678
|
+
get orientation(): SliceOrientation;
|
|
1679
|
+
/**
|
|
1680
|
+
* Changes the slice orientation at runtime. Visible renderables are rebuilt
|
|
1681
|
+
* for the new plane, chunks already resident in the shared cache are reused.
|
|
1682
|
+
*/
|
|
1683
|
+
setOrientation(orientation: SliceOrientation): void;
|
|
1660
1684
|
private updateChunks;
|
|
1661
1685
|
hasMultipleLODs(): boolean;
|
|
1662
1686
|
private isPresentationStale;
|