triiiceratops 0.4.0 → 0.6.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.
@@ -1,30 +0,0 @@
1
- var n = Object.defineProperty;
2
- var s = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var i = (t, e, r) => s(t, typeof e != "symbol" ? e + "" : e, r);
4
- class c {
5
- constructor() {
6
- i(this, "context", null);
7
- }
8
- onRegister(e) {
9
- this.context = e;
10
- }
11
- onDestroy() {
12
- this.context = null;
13
- }
14
- /** Convenience getter for ViewerState */
15
- get viewerState() {
16
- if (!this.context)
17
- throw new Error(
18
- `Plugin ${this.id} accessed viewerState before registration`
19
- );
20
- return this.context.viewerState;
21
- }
22
- /** Convenience getter for OSD viewer */
23
- get osdViewer() {
24
- var e;
25
- return ((e = this.context) == null ? void 0 : e.getOSDViewer()) ?? null;
26
- }
27
- }
28
- export {
29
- c as B
30
- };