aptechka 0.4.12 → 0.4.13
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/lib/{Damped-Ceg1a3X8.js → Damped-BZujMwuv.js} +11 -10
- package/lib/Damped-DK3CSBXb.cjs +1 -0
- package/lib/{Derived-B-g8dYgh.cjs → Derived-BZtlW0bB.cjs} +1 -1
- package/lib/{Derived-kPJs5JC5.js → Derived-DH-ouLBq.js} +1 -1
- package/lib/DragControls-CV1YozSr.cjs +1 -0
- package/lib/{DragControls-BbznoEAb.js → DragControls-Ch_JO2ML.js} +5 -4
- package/lib/SourceManager-Bl_uduSS.cjs +1 -0
- package/lib/{SourceManager-4OHacQoQ.js → SourceManager-D_8MZ3bR.js} +21 -20
- package/lib/Store-BQGNOHlY.cjs +1 -0
- package/lib/{Store-BQXXikps.js → Store-Cd-E5W1z.js} +8 -7
- package/lib/{Viewport-wlgZaIn7.js → Viewport-Bx-VImCe.js} +6 -5
- package/lib/Viewport-_WllZTJ0.cjs +1 -0
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -5
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +16 -15
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +4 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +4 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-C8aQQ4hd.cjs} +1 -1
- package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-KMRQhSa-.js} +1 -1
- package/lib/createTheme-BSreUYge.cjs +1 -0
- package/lib/createTheme-u3NsrEV6.js +16 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +4 -3
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.js +3 -2
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +7 -6
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +23 -22
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +23 -22
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +8 -7
- package/lib/{index-BUOBDenR.js → index-Fasue6kv.js} +20 -19
- package/lib/index-nxoux28n.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +3 -2
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +11 -10
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +3 -2
- package/lib/libs/path-data-polyfill.d.ts +1 -0
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +16 -15
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +6 -5
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +4 -3
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +21 -20
- package/lib/path-data-polyfill-CXsOR7Oc.cjs +3 -0
- package/lib/path-data-polyfill-DgeDWYeI.js +454 -0
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +14 -13
- package/lib/resized/index.cjs +1 -1
- package/lib/resized/index.js +8 -7
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +8 -7
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/slicer/index.cjs +2 -2
- package/lib/slicer/index.js +4 -3
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +13 -12
- package/lib/{tags-CMPg9ETZ.js → tags-BoPv9fDr.js} +234 -233
- package/lib/tags-CueX-JLX.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +7 -6
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +3 -2
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +6 -5
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +164 -127
- package/lib/utils/svg.d.ts +15 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +6 -5
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +7 -6
- package/package.json +1 -1
- package/lib/Damped-BdnkNOcb.cjs +0 -1
- package/lib/DragControls-CdRWoO3y.cjs +0 -1
- package/lib/SourceManager-Bc68GDrb.cjs +0 -1
- package/lib/Store-C-1ruEIm.cjs +0 -1
- package/lib/Viewport-DAjFJF5V.cjs +0 -1
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/index-Bv5vIuF-.cjs +0 -9
- package/lib/tags-Djb6mb1o.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./string-DhgS_iFl.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");function l(r,a){const t=(a==null?void 0:a.prefix)||"",c={style:{}};for(const e in r)c[e]={var:`var(--${t}${u.camelToKebab(e)})`,value:r[e]},c.style[`--${t}${u.camelToKebab(e)}`]=r[e];return c}exports.createTheme=l;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as f } from "./string-f0Dnk0L1.js";
|
|
2
|
+
import "./path-data-polyfill-DgeDWYeI.js";
|
|
3
|
+
function s(r, a) {
|
|
4
|
+
const t = (a == null ? void 0 : a.prefix) || "", c = {
|
|
5
|
+
style: {}
|
|
6
|
+
};
|
|
7
|
+
for (const e in r)
|
|
8
|
+
c[e] = {
|
|
9
|
+
var: `var(--${t}${f(e)})`,
|
|
10
|
+
value: r[e]
|
|
11
|
+
}, c.style[`--${t}${f(e)}`] = r[e];
|
|
12
|
+
return c;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as c
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var i=(s,r,e)=>(S(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},o=(s,r,e,u)=>(S(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../css-value-parser/index.cjs"),w=require("../order/index.cjs"),R=require("../Store-
|
|
1
|
+
"use strict";var S=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var i=(s,r,e)=>(S(s,r,"read from private field"),e?e.call(s):r.get(s)),n=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},o=(s,r,e,u)=>(S(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../css-value-parser/index.cjs"),w=require("../order/index.cjs"),R=require("../Store-BQGNOHlY.cjs"),y=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const a=require("../window-resizer/index.cjs");var c,b,t,h;class g extends R.Store{constructor(e,u,l,d){super(l,d);n(this,c,void 0);n(this,b,void 0);n(this,t,void 0);n(this,h,()=>{this.check()});o(this,c,y.getElement(e)),o(this,b,u),o(this,t,l.toString())}observe(){this.subscribers.size||a.windowResizer.subscribe(i(this,h),w.RESIZE_ORDER.CSS_VARIABLE)}unobserve(){this.subscribers.size||a.windowResizer.unsubscribe(i(this,h))}subscribe(e){return this.observe(),super.subscribe(e)}unsubscribe(e){super.unsubscribe(e),this.unobserve()}check(){const e=getComputedStyle(i(this,c)).getPropertyValue(i(this,b));if(i(this,t)!==e)if(o(this,t,e),e){const u=p.cssValueParser.parse(i(this,t));this.current=u}else this.current=this.initial}}c=new WeakMap,b=new WeakMap,t=new WeakMap,h=new WeakMap;exports.CSSProperty=g;
|
|
@@ -9,11 +9,12 @@ var t = (e, r, s) => (m(e, r, "read from private field"), s ? s.call(e) : r.get(
|
|
|
9
9
|
}, c = (e, r, s, o) => (m(e, r, "write to private field"), o ? o.call(e, s) : r.set(e, s), s);
|
|
10
10
|
import { cssValueParser as S } from "../css-value-parser/index.js";
|
|
11
11
|
import { RESIZE_ORDER as f } from "../order/index.js";
|
|
12
|
-
import { S as R } from "../Store-
|
|
12
|
+
import { S as R } from "../Store-Cd-E5W1z.js";
|
|
13
13
|
import { g } from "../dom-0S_WDL4g.js";
|
|
14
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
14
15
|
import { windowResizer as a } from "../window-resizer/index.js";
|
|
15
16
|
var b, h, i, n;
|
|
16
|
-
class
|
|
17
|
+
class P extends R {
|
|
17
18
|
constructor(s, o, p, l) {
|
|
18
19
|
super(p, l);
|
|
19
20
|
u(this, b, void 0);
|
|
@@ -50,5 +51,5 @@ class C extends R {
|
|
|
50
51
|
}
|
|
51
52
|
b = new WeakMap(), h = new WeakMap(), i = new WeakMap(), n = new WeakMap();
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
P as CSSProperty
|
|
54
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../browser-CpzFX2xg.cjs");function n(s,e){return function(o){t.isBrowser&&!customElements.get(s)&&customElements.define(s,o,{extends:e})}}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");function n(s,e){return function(o){t.isBrowser&&!customElements.get(s)&&customElements.define(s,o,{extends:e})}}const i=t.isBrowser?window.HTMLElement:class{attachShadow(){}};class r extends i{openShadow(...e){if(!this.shadowRoot&&t.isBrowser){const o=this.attachShadow({mode:"open"});return this.addStylesheet(...e),o}return this.shadowRoot}addStylesheet(...e){this.shadowRoot&&t.isBrowser&&this.shadowRoot.adoptedStyleSheets.push(...e)}}exports.CustomElement=r;exports.define=n;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i as e } from "../browser-0zX67oeU.js";
|
|
2
|
-
|
|
2
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
3
|
+
function i(o, t) {
|
|
3
4
|
return function(s) {
|
|
4
5
|
e && !customElements.get(o) && customElements.define(o, s, { extends: t });
|
|
5
6
|
};
|
|
@@ -22,5 +23,5 @@ class a extends d {
|
|
|
22
23
|
}
|
|
23
24
|
export {
|
|
24
25
|
a as CustomElement,
|
|
25
|
-
|
|
26
|
+
i as define
|
|
26
27
|
};
|
package/lib/dev/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../css-property/index.cjs"),t=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const c=require("../ticker/index.cjs");function i(){c.ticker.subscribe(()=>{for(let e=0;e<t.activeStores.current.length;e++){const r=t.activeStores.current[e];r instanceof o.CSSProperty&&r.check()}})}exports.devMode=i;
|
package/lib/dev/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CSSProperty as o } from "../css-property/index.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import
|
|
2
|
+
import { a as e } from "../Store-Cd-E5W1z.js";
|
|
3
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
4
|
+
import { ticker as i } from "../ticker/index.js";
|
|
4
5
|
function s() {
|
|
5
|
-
|
|
6
|
-
for (let r = 0; r <
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
i.subscribe(() => {
|
|
7
|
+
for (let r = 0; r < e.current.length; r++) {
|
|
8
|
+
const t = e.current[r];
|
|
9
|
+
t instanceof o && t.check();
|
|
9
10
|
}
|
|
10
11
|
});
|
|
11
12
|
}
|
package/lib/device/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Viewport-_WllZTJ0.cjs");exports.ViewportBreakpoints=e.ViewportBreakpoints;exports.ViewportMediaRules=e.ViewportMediaRules;exports.device=e.device;exports.viewport=e.viewport;
|
package/lib/device/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-CueX-JLX.cjs"),t=require("../createStylesheet-C8aQQ4hd.cjs"),a=require("../createTheme-BSreUYge.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-
|
|
2
|
-
import { c as ns } from "../createStylesheet-
|
|
3
|
-
import { c as bs } from "../createTheme-
|
|
1
|
+
import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-BoPv9fDr.js";
|
|
2
|
+
import { c as ns } from "../createStylesheet-KMRQhSa-.js";
|
|
3
|
+
import { c as bs } from "../createTheme-u3NsrEV6.js";
|
|
4
4
|
export {
|
|
5
5
|
e as ElementConstructor,
|
|
6
6
|
t as a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=(r,t,s)=>{if(!t.has(r))throw TypeError("Cannot "+s)};var n=(r,t,s)=>(h(r,t,"read from private field"),s?s.call(r):t.get(r)),
|
|
1
|
+
"use strict";var h=(r,t,s)=>{if(!t.has(r))throw TypeError("Cannot "+s)};var n=(r,t,s)=>(h(r,t,"read from private field"),s?s.call(r):t.get(r)),u=(r,t,s)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,s)},f=(r,t,s,e)=>(h(r,t,"write to private field"),e?e.call(r,s):t.set(r,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,o,b;class y{constructor(){u(this,i,[]);u(this,o,null);u(this,b,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(n(this,b)))}subscribe(t,s){const e=d.getElement(t);if(!e)return()=>{};const l=n(this,i).find(c=>c.element===e);if(!l)n(this,o).observe(e);else{const c=n(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&s(c.entry)}return n(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=n(this,i).find(e=>e.callback===t);s&&(f(this,i,n(this,i).filter(e=>e.callback!==s.callback)),n(this,i).find(e=>e.element===s.element)||n(this,o).unobserve(s.element))}}i=new WeakMap,o=new WeakMap,b=new WeakMap;const w=new y;exports.ElementResizer=y;exports.elementResizer=w;
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
var h = (
|
|
2
|
-
if (!t.has(
|
|
1
|
+
var h = (r, t, s) => {
|
|
2
|
+
if (!t.has(r))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
if (t.has(
|
|
5
|
+
var n = (r, t, s) => (h(r, t, "read from private field"), s ? s.call(r) : t.get(r)), b = (r, t, s) => {
|
|
6
|
+
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
t instanceof WeakSet ? t.add(
|
|
9
|
-
}, u = (
|
|
8
|
+
t instanceof WeakSet ? t.add(r) : t.set(r, s);
|
|
9
|
+
}, u = (r, t, s, e) => (h(r, t, "write to private field"), e ? e.call(r, s) : t.set(r, s), s);
|
|
10
10
|
import { i as y } from "../browser-0zX67oeU.js";
|
|
11
11
|
import { g as p } from "../dom-0S_WDL4g.js";
|
|
12
|
-
|
|
12
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
13
|
+
var i, c, f;
|
|
13
14
|
class w {
|
|
14
15
|
constructor() {
|
|
15
16
|
b(this, i, []);
|
|
16
|
-
b(this,
|
|
17
|
+
b(this, c, null);
|
|
17
18
|
b(this, f, (t) => {
|
|
18
|
-
|
|
19
|
+
n(this, i).map((e) => ({
|
|
19
20
|
subscriber: e,
|
|
20
21
|
entry: t.find((l) => l.target === e.element)
|
|
21
22
|
})).forEach((e) => {
|
|
22
23
|
e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
|
|
23
24
|
});
|
|
24
25
|
});
|
|
25
|
-
y && window.ResizeObserver && u(this,
|
|
26
|
+
y && window.ResizeObserver && u(this, c, new ResizeObserver(n(this, f)));
|
|
26
27
|
}
|
|
27
28
|
subscribe(t, s) {
|
|
28
29
|
const e = p(t);
|
|
29
30
|
if (!e)
|
|
30
31
|
return () => {
|
|
31
32
|
};
|
|
32
|
-
const l =
|
|
33
|
-
(
|
|
33
|
+
const l = n(this, i).find(
|
|
34
|
+
(o) => o.element === e
|
|
34
35
|
);
|
|
35
36
|
if (!l)
|
|
36
|
-
|
|
37
|
+
n(this, c).observe(e);
|
|
37
38
|
else {
|
|
38
|
-
const
|
|
39
|
+
const o = n(this, i).find(
|
|
39
40
|
(m) => m.element === e && m.entry
|
|
40
41
|
);
|
|
41
|
-
|
|
42
|
+
o != null && o.element.isConnected && s(o.entry);
|
|
42
43
|
}
|
|
43
|
-
return
|
|
44
|
+
return n(this, i).push({
|
|
44
45
|
element: e,
|
|
45
46
|
callback: s,
|
|
46
47
|
entry: (l == null ? void 0 : l.entry) || null
|
|
@@ -49,17 +50,17 @@ class w {
|
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
unsubscribe(t) {
|
|
52
|
-
const s =
|
|
53
|
+
const s = n(this, i).find(
|
|
53
54
|
(e) => e.callback === t
|
|
54
55
|
);
|
|
55
|
-
s && (u(this, i,
|
|
56
|
+
s && (u(this, i, n(this, i).filter(
|
|
56
57
|
(e) => e.callback !== s.callback
|
|
57
|
-
)),
|
|
58
|
+
)), n(this, i).find((e) => e.element === s.element) || n(this, c).unobserve(s.element));
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
i = new WeakMap(),
|
|
61
|
-
const
|
|
61
|
+
i = new WeakMap(), c = new WeakMap(), f = new WeakMap();
|
|
62
|
+
const g = new w();
|
|
62
63
|
export {
|
|
63
64
|
w as ElementResizer,
|
|
64
|
-
|
|
65
|
+
g as elementResizer
|
|
65
66
|
};
|
package/lib/en3/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var mt=Object.defineProperty,Mt=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var Pe=(I,A,e)=>A in I?mt(I,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):I[A]=e,z=(I,A)=>{for(var e in A||(A={}))St.call(A,e)&&Pe(I,e,A[e]);if(_e)for(var e of _e(A))yt.call(A,e)&&Pe(I,e,A[e]);return I},ge=(I,A)=>Mt(I,wt(A));var le=(I,A,e)=>{if(!A.has(I))throw TypeError("Cannot "+e)};var E=(I,A,e)=>(le(I,A,"read from private field"),e?e.call(I):A.get(I)),f=(I,A,e)=>{if(A.has(I))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(I):A.set(I,e)},p=(I,A,e,s)=>(le(I,A,"write to private field"),s?s.call(I,e):A.set(I,e),e);var CA=(I,A,e)=>(le(I,A,"access private method"),e);var TA=(I,A,e)=>new Promise((s,t)=>{var i=o=>{try{r(e.next(o))}catch(a){t(a)}},n=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,n);r((e=e.apply(I,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ye=require("../ladder/index.cjs"),it=require("../layout-box/index.cjs"),xA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),B=require("three"),qe=require("../intersector/index.cjs"),Lt=require("../dom-JBOkFLTh.cjs")
|
|
1
|
+
"use strict";var mt=Object.defineProperty,Mt=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var Pe=(I,A,e)=>A in I?mt(I,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):I[A]=e,z=(I,A)=>{for(var e in A||(A={}))St.call(A,e)&&Pe(I,e,A[e]);if(_e)for(var e of _e(A))yt.call(A,e)&&Pe(I,e,A[e]);return I},ge=(I,A)=>Mt(I,wt(A));var le=(I,A,e)=>{if(!A.has(I))throw TypeError("Cannot "+e)};var E=(I,A,e)=>(le(I,A,"read from private field"),e?e.call(I):A.get(I)),f=(I,A,e)=>{if(A.has(I))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(I):A.set(I,e)},p=(I,A,e,s)=>(le(I,A,"write to private field"),s?s.call(I,e):A.set(I,e),e);var CA=(I,A,e)=>(le(I,A,"access private method"),e);var TA=(I,A,e)=>new Promise((s,t)=>{var i=o=>{try{r(e.next(o))}catch(a){t(a)}},n=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,n);r((e=e.apply(I,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ye=require("../ladder/index.cjs"),it=require("../layout-box/index.cjs"),xA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),B=require("three"),qe=require("../intersector/index.cjs"),Lt=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const de=require("../loading/index.cjs"),Ht=require("../SourceManager-Bl_uduSS.cjs"),Xe=require("../Store-BQGNOHlY.cjs");function xe(I){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};I.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var lA,kA,bA,eA,KA;class Jt{constructor(A){f(this,lA,void 0);f(this,kA,void 0);f(this,bA,void 0);f(this,eA,void 0);f(this,KA,void 0);p(this,lA,A.targetName||void 0),p(this,kA,A.eventDispatcher||A.object3D),p(this,bA,A.propagation||!1),p(this,eA,A.object3D),p(this,KA,E(this,lA)?()=>E(this,eA).getObjectByName(E(this,lA))||E(this,eA):()=>E(this,eA))}get object3D(){return E(this,eA)}get eventDispatcher(){return E(this,kA)}get propagation(){return E(this,bA)}get target(){return E(this,KA).call(this)}dispatch(A,e){this.eventDispatcher.dispatchEvent(z({originalEvent:e,type:A},this.intersection))}}lA=new WeakMap,kA=new WeakMap,bA=new WeakMap,eA=new WeakMap,KA=new WeakMap;var tA,J,dA,OA,_A,PA,YA;class nt{constructor(){f(this,tA,[]);f(this,J,[]);f(this,dA,new B.Vector2);f(this,OA,new B.Raycaster);f(this,_A,A=>{for(let e=0;e<E(this,J).length;e++)E(this,J)[e].dispatch("en3PointerDown",A)});f(this,PA,A=>{for(let e=0;e<E(this,J).length;e++)E(this,J)[e].dispatch("en3PointerUp",A)});f(this,YA,A=>{E(this,dA).x=A.clientX/w.width*2-1,E(this,dA).y=-(A.clientY/w.height)*2+1,w.camera&&E(this,OA).setFromCamera(E(this,dA),w.camera);const e=[];for(const o of E(this,tA)){const a=E(this,OA).intersectObject(o.target);a.length&&(o.intersection=a[0],e.push(o))}let s=!1;const t=E(this,J).filter(o=>!e.find(a=>a.object3D.uuid===o.object3D.uuid)),n=e.sort((o,a)=>a.object3D.position.z-o.object3D.position.z).filter((o,a)=>s?(t.push(o),!1):(s=!o.propagation,!0)),r=n.filter(o=>!E(this,J).find(a=>a.object3D.uuid===o.object3D.uuid));for(let o=0;o<t.length;o++)t[o].dispatch("en3PointerLeave",A);for(let o=0;o<r.length;o++)r[o].dispatch("en3PointerEnter",A);p(this,J,n);for(let o=0;o<E(this,J).length;o++)E(this,J)[o].dispatch("en3PointerMove",A)});w.containerElement.addEventListener("pointerdown",E(this,_A)),w.containerElement.addEventListener("pointerup",E(this,PA)),w.containerElement.addEventListener("pointermove",E(this,YA))}destroy(){w.containerElement.removeEventListener("pointerdown",E(this,_A)),w.containerElement.removeEventListener("pointerup",E(this,PA)),w.containerElement.removeEventListener("pointermove",E(this,YA))}add(A,e){if(E(this,tA).find(t=>t.object3D.uuid===A.uuid))return;const s=new Jt(z({object3D:A},e));E(this,tA).push(s)}remove(A){p(this,tA,E(this,tA).filter(e=>e.object3D.uuid!==A.uuid)),p(this,J,E(this,J).filter(e=>e.object3D.uuid!==A.uuid))}}tA=new WeakMap,J=new WeakMap,dA=new WeakMap,OA=new WeakMap,_A=new WeakMap,PA=new WeakMap,YA=new WeakMap;var ce,sA,N,_,uA,fA,iA,k,DA,FA,W,P,GA,qA,XA,gA,Qe,ot,vA,Le,VA,WA;class Tt{constructor(){f(this,Qe);f(this,vA);f(this,ce,`https://unpkg.com/three@0.${B.REVISION}.x`);f(this,sA,null);f(this,N,null);f(this,_,null);f(this,uA,null);f(this,fA,null);f(this,iA,[]);f(this,k,new Ye.Ladder({x:0,y:0,z:0}));f(this,DA,new Ye.Ladder({x:0,y:0,z:0}));f(this,FA,"auto");f(this,W,0);f(this,P,0);f(this,GA,0);f(this,qA,2);f(this,XA,!0);f(this,gA,!1);f(this,VA,()=>{var A;p(this,W,E(this,sA).clientWidth),p(this,P,E(this,sA).clientHeight),p(this,GA,Math.min(E(this,qA),devicePixelRatio||1)),E(this,N).setPixelRatio(E(this,GA)),E(this,N).setSize(E(this,W),E(this,P)),CA(this,vA,Le).call(this),(A=this.onResize)==null||A.call(this)});f(this,WA,()=>{CA(this,Qe,ot).call(this),this.render(E(this,uA),E(this,_))})}get CDNVersion(){return E(this,ce)}get containerElement(){return E(this,sA)}get webglRenderer(){return E(this,N)}get camera(){return E(this,_)}get scene(){return E(this,uA)}get raycaster(){return E(this,fA)}get attachedObjects(){return E(this,iA)}get cameraPosition(){return E(this,k)}get cameraRotation(){return E(this,DA)}get width(){return E(this,W)}get height(){return E(this,P)}get pixelRatio(){return E(this,GA)}get cameraDistance(){return E(this,k).getStepValue("_initial").z}set cameraDistance(A){E(this,k).setStep("_initial","+",{z:A}),E(this,k).calculate(),CA(this,vA,Le).call(this)}attachToHTMLElement(A,e,s){const t=new it.LayoutBox(A,ge(z({},s),{containerElement:this.containerElement,cartesian:!0}));return t.bindObject(e),e.userData.box=t,E(this,iA).push(e),e}detachFromHTMLElement(A){p(this,iA,E(this,iA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(...A){const e=A[0],s=A[1],t=A[2];return this.scene.add(e),s?this.attachToHTMLElement(s,e,t):e}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}setup(A){if(E(this,gA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}p(this,sA,(A==null?void 0:A.containerElement)||document.body),p(this,_,(A==null?void 0:A.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),E(this,k).bind(E(this,_).position),E(this,DA).bind(E(this,_).rotation),E(this,k).setStep("_initial","+",{z:(A==null?void 0:A.cameraDistance)||1e3}),E(this,k).calculate(),E(this,_).near=(A==null?void 0:A.cameraNear)||1,E(this,_).far=(A==null?void 0:A.cameraFar)||11e3,p(this,FA,(A==null?void 0:A.cameraFov)||"auto"),p(this,uA,new B.Scene),p(this,qA,(A==null?void 0:A.maxPixelRatio)||2),p(this,XA,(A==null?void 0:A.cameraAutoUpdate)!==!1),p(this,N,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,N).domElement.style.cssText=`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
top: 0;
|
package/lib/en3/index.js
CHANGED
|
@@ -44,9 +44,10 @@ import { ticker as kA } from "../ticker/index.js";
|
|
|
44
44
|
import { Mesh as Fe, Vector2 as Bt, Raycaster as us, REVISION as fs, OrthographicCamera as He, PerspectiveCamera as ze, Scene as Ds, WebGLRenderer as Fs, TrianglesDrawMode as Gs, TriangleFanDrawMode as $e, TriangleStripDrawMode as bt, Loader as rt, LoaderUtils as WA, FileLoader as fA, Color as EA, LinearSRGBColorSpace as O, SpotLight as Rs, PointLight as ps, DirectionalLight as ms, MeshBasicMaterial as qA, SRGBColorSpace as $, MeshPhysicalMaterial as AA, Matrix4 as bA, Vector3 as y, Quaternion as at, InstancedMesh as Ms, InstancedBufferAttribute as ws, Object3D as Ct, TextureLoader as Kt, ImageBitmapLoader as Ss, BufferAttribute as VA, InterleavedBuffer as Ls, InterleavedBufferAttribute as ys, LinearFilter as Je, LinearMipmapLinearFilter as It, RepeatWrapping as At, PointsMaterial as Hs, Material as ke, LineBasicMaterial as Js, MeshStandardMaterial as Ot, DoubleSide as Ts, PropertyBinding as Us, BufferGeometry as _t, SkinnedMesh as Ns, LineSegments as xs, Line as ks, LineLoop as bs, Points as Ks, Group as jA, MathUtils as Os, Skeleton as _s, AnimationClip as Ps, Bone as Ys, InterpolateLinear as Pt, ColorManagement as ht, NearestFilter as qs, NearestMipmapNearestFilter as Xs, LinearMipmapNearestFilter as vs, NearestMipmapLinearFilter as Ws, ClampToEdgeWrapping as Vs, MirroredRepeatWrapping as js, InterpolateDiscrete as Zs, FrontSide as zs, Texture as lt, VectorKeyframeTrack as dt, NumberKeyframeTrack as ut, QuaternionKeyframeTrack as ft, Box3 as $s, Sphere as Ai, Interpolant as ei, CompressedCubeTexture as ti, UnsignedByteType as K, CompressedArrayTexture as si, CompressedTexture as Yt, RGBAFormat as FA, RGBA_ASTC_4x4_Format as ii, RGBA_BPTC_Format as ni, RGBA_ETC2_EAC_Format as oi, RGBA_PVRTC_4BPPV1_Format as Bi, RGBA_S3TC_DXT5_Format as ri, RGB_ETC1_Format as ai, RGB_ETC2_Format as Ci, RGB_PVRTC_4BPPV1_Format as Ii, RGB_S3TC_DXT1_Format as gi, FloatType as Le, HalfFloatType as ye, DataTexture as Ei, Data3DTexture as ci, DisplayP3ColorSpace as Qi, LinearDisplayP3ColorSpace as hi, NoColorSpace as Dt, RGFormat as XA, RedFormat as vA, RGBA_ASTC_6x6_Format as Ft, Plane as Me, PlaneHelper as we, PlaneGeometry as li, VideoTexture as di } from "three";
|
|
45
45
|
import { intersector as Gt } from "../intersector/index.js";
|
|
46
46
|
import { g as ui } from "../dom-0S_WDL4g.js";
|
|
47
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
47
48
|
import { loading as be } from "../loading/index.js";
|
|
48
|
-
import { S as fi } from "../SourceManager-
|
|
49
|
-
import { S as Rt } from "../Store-
|
|
49
|
+
import { S as fi } from "../SourceManager-D_8MZ3bR.js";
|
|
50
|
+
import { S as Rt } from "../Store-Cd-E5W1z.js";
|
|
50
51
|
function qt(C) {
|
|
51
52
|
const A = (e) => {
|
|
52
53
|
e.dispose();
|
|
@@ -314,7 +315,7 @@ class Ri {
|
|
|
314
315
|
return Gt.subscribe(t, s);
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
+
const Yn = new Ri();
|
|
318
319
|
function pt(C, A) {
|
|
319
320
|
if (A === Gs)
|
|
320
321
|
return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), C;
|
|
@@ -2909,7 +2910,7 @@ class Dn {
|
|
|
2909
2910
|
yA = new WeakMap(), ae = new WeakMap(), Ce = new WeakMap(), Ie = new WeakMap();
|
|
2910
2911
|
const Fn = new Dn();
|
|
2911
2912
|
var b, z, ge;
|
|
2912
|
-
class
|
|
2913
|
+
class qn {
|
|
2913
2914
|
constructor(A, e = 1) {
|
|
2914
2915
|
u(this, b, null);
|
|
2915
2916
|
u(this, z, []);
|
|
@@ -2935,7 +2936,7 @@ class Yn {
|
|
|
2935
2936
|
}
|
|
2936
2937
|
}
|
|
2937
2938
|
b = new WeakMap(), z = new WeakMap(), ge = new WeakMap();
|
|
2938
|
-
class
|
|
2939
|
+
class Xn extends jA {
|
|
2939
2940
|
constructor(A, e = 500) {
|
|
2940
2941
|
super(), this.add(new we(A.planes[0], e, 16711680)), this.add(new we(A.planes[1], e, 16711680)), this.add(new we(A.planes[2], e, 16711680)), this.add(new we(A.planes[3], e, 16711680));
|
|
2941
2942
|
}
|
|
@@ -2993,7 +2994,7 @@ class Cs extends fi {
|
|
|
2993
2994
|
}
|
|
2994
2995
|
HA = new WeakMap(), dA = new WeakMap(), JA = new WeakMap(), Ee = new WeakMap(), ce = new WeakMap(), aA = new WeakMap(), TA = new WeakMap(), Qe = new WeakMap();
|
|
2995
2996
|
var UA;
|
|
2996
|
-
class
|
|
2997
|
+
class vn extends jA {
|
|
2997
2998
|
constructor(e) {
|
|
2998
2999
|
super();
|
|
2999
3000
|
u(this, UA, void 0);
|
|
@@ -3058,7 +3059,7 @@ class gs extends Fe {
|
|
|
3058
3059
|
}
|
|
3059
3060
|
CA = new WeakMap(), NA = new WeakMap(), uA = new WeakMap();
|
|
3060
3061
|
const Gn = new Kt();
|
|
3061
|
-
class
|
|
3062
|
+
class Wn extends gs {
|
|
3062
3063
|
constructor(A) {
|
|
3063
3064
|
super(me(tA({}, A), {
|
|
3064
3065
|
loader: Gn
|
|
@@ -3076,7 +3077,7 @@ class Rn {
|
|
|
3076
3077
|
}
|
|
3077
3078
|
}
|
|
3078
3079
|
var he, le, de;
|
|
3079
|
-
class
|
|
3080
|
+
class Vn extends gs {
|
|
3080
3081
|
constructor(e) {
|
|
3081
3082
|
super(me(tA({}, e), {
|
|
3082
3083
|
loader: new Rn()
|
|
@@ -3104,18 +3105,18 @@ class Wn extends gs {
|
|
|
3104
3105
|
}
|
|
3105
3106
|
}
|
|
3106
3107
|
he = new WeakMap(), le = new WeakMap(), de = new WeakMap();
|
|
3107
|
-
function
|
|
3108
|
+
function jn(C, A) {
|
|
3108
3109
|
C.traverse((e) => {
|
|
3109
3110
|
e instanceof Fe && A(e);
|
|
3110
3111
|
});
|
|
3111
3112
|
}
|
|
3112
|
-
function
|
|
3113
|
+
function Zn(C, A) {
|
|
3113
3114
|
C.traverse((e) => {
|
|
3114
3115
|
e instanceof Fe && e.material && (Array.isArray(e.material) ? e.material : [e.material]).forEach(A);
|
|
3115
3116
|
});
|
|
3116
3117
|
}
|
|
3117
3118
|
const Ze = new y(), pn = new y();
|
|
3118
|
-
function
|
|
3119
|
+
function zn(C) {
|
|
3119
3120
|
const { width: A, height: e } = M, s = A / e;
|
|
3120
3121
|
C instanceof y ? Ze.copy(C) : Ze.set(...C);
|
|
3121
3122
|
const t = M.camera.getWorldPosition(pn).distanceTo(Ze);
|
|
@@ -3233,7 +3234,7 @@ X = new WeakMap(), Ne = new WeakSet(), Es = function() {
|
|
|
3233
3234
|
});
|
|
3234
3235
|
let Nt = U;
|
|
3235
3236
|
var IA, gA, De, nt;
|
|
3236
|
-
class
|
|
3237
|
+
class $n {
|
|
3237
3238
|
constructor(A) {
|
|
3238
3239
|
u(this, De);
|
|
3239
3240
|
u(this, IA, void 0);
|
|
@@ -3278,22 +3279,22 @@ IA = new WeakMap(), gA = new WeakMap(), De = new WeakSet(), nt = function(A, e,
|
|
|
3278
3279
|
)));
|
|
3279
3280
|
};
|
|
3280
3281
|
export {
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3282
|
+
qn as En3Clip,
|
|
3283
|
+
Xn as En3ClipHelpers,
|
|
3284
|
+
vn as En3GLTF,
|
|
3284
3285
|
Nt as En3HTML,
|
|
3285
|
-
|
|
3286
|
+
Wn as En3Image,
|
|
3286
3287
|
gs as En3ImageLike,
|
|
3287
|
-
|
|
3288
|
+
$n as En3ModifiedMaterial,
|
|
3288
3289
|
Fi as En3Raycaster,
|
|
3289
3290
|
Cs as En3SourceManager,
|
|
3290
|
-
|
|
3291
|
+
Vn as En3Video,
|
|
3291
3292
|
Is as coverTexture,
|
|
3292
3293
|
qt as dispose,
|
|
3293
3294
|
M as en3,
|
|
3294
3295
|
Fn as en3GLTFLoader,
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3296
|
+
Yn as en3LazyLoader,
|
|
3297
|
+
zn as getCurrentViewport,
|
|
3298
|
+
Zn as traverseMaterials,
|
|
3299
|
+
jn as traverseMeshes
|
|
3299
3300
|
};
|
package/lib/image/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const o=require("../source/index.cjs");var l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=(n,r,m,t)=>{for(var e=t>1?void 0:t?i(r,m):r,u=n.length-1,s;u>=0;u--)(s=n[u])&&(e=(t?s(r,m,e):s(e))||e);return t&&e&&l(r,m,e),e};exports.ImageElement=class extends o.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(r){this.consumerElement.src=r||""}};exports.ImageElement=a([c.define("e-image")],exports.ImageElement);
|
package/lib/image/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { define as p } from "../custom-element/index.js";
|
|
2
2
|
import "../window-resizer/index.js";
|
|
3
|
-
import "../Store-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import "../Store-Cd-E5W1z.js";
|
|
4
|
+
import "../path-data-polyfill-DgeDWYeI.js";
|
|
5
|
+
import { SourceElement as i } from "../source/index.js";
|
|
6
|
+
var l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, f = (r, t, o, m) => {
|
|
7
|
+
for (var e = m > 1 ? void 0 : m ? u(t, o) : t, n = r.length - 1, s; n >= 0; n--)
|
|
7
8
|
(s = r[n]) && (e = (m ? s(t, o, e) : s(e)) || e);
|
|
8
|
-
return m && e &&
|
|
9
|
+
return m && e && l(t, o, e), e;
|
|
9
10
|
};
|
|
10
|
-
let c = class extends
|
|
11
|
+
let c = class extends i {
|
|
11
12
|
createConsumer() {
|
|
12
13
|
return document.createElement("img");
|
|
13
14
|
}
|
|
@@ -15,7 +16,7 @@ let c = class extends l {
|
|
|
15
16
|
this.consumerElement.src = r || "";
|
|
16
17
|
}
|
|
17
18
|
};
|
|
18
|
-
c =
|
|
19
|
+
c = f([
|
|
19
20
|
p("e-image")
|
|
20
21
|
], c);
|
|
21
22
|
export {
|
|
@@ -8,12 +8,13 @@ var I = (t, e, s) => (A(t, e, "read from private field"), s ? s.call(t) : e.get(
|
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
9
9
|
}, G = (t, e, s, i) => (A(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s);
|
|
10
10
|
import { CustomElement as U, define as M } from "./custom-element/index.js";
|
|
11
|
-
import "./Store-
|
|
11
|
+
import "./Store-Cd-E5W1z.js";
|
|
12
12
|
import { i as P } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { d as Q } from "./events-_C2CztxR.js";
|
|
14
14
|
import { g as X } from "./style-j2TwriJ_.js";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
15
|
+
import "./path-data-polyfill-DgeDWYeI.js";
|
|
16
|
+
import { e as k, p as V, ay as E, D as R } from "./tags-BoPv9fDr.js";
|
|
17
|
+
import { c as D } from "./createStylesheet-KMRQhSa-.js";
|
|
17
18
|
import { aptechkaTheme as w } from "./theme/index.js";
|
|
18
19
|
var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e, s, i) => {
|
|
19
20
|
for (var n = i > 1 ? void 0 : i ? ee(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
@@ -22,11 +23,11 @@ var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e,
|
|
|
22
23
|
}, z = (t, e, s) => {
|
|
23
24
|
if (!e.has(t))
|
|
24
25
|
throw TypeError("Cannot " + s);
|
|
25
|
-
}, a = (t, e, s) => (z(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
26
|
+
}, a = (t, e, s) => (z(t, e, "read from private field"), s ? s.call(t) : e.get(t)), h = (t, e, s) => {
|
|
26
27
|
if (e.has(t))
|
|
27
28
|
throw TypeError("Cannot add the same private member more than once");
|
|
28
29
|
e instanceof WeakSet ? e.add(t) : e.set(t, s);
|
|
29
|
-
}, c = (t, e, s, i) => (z(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), q = (t, e, s) => (z(t, e, "access private method"), s), v, u,
|
|
30
|
+
}, c = (t, e, s, i) => (z(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), q = (t, e, s) => (z(t, e, "access private method"), s), v, u, o, p, f, g, L, C, O;
|
|
30
31
|
const se = D({
|
|
31
32
|
":host": {
|
|
32
33
|
position: "relative"
|
|
@@ -64,7 +65,7 @@ const se = D({
|
|
|
64
65
|
});
|
|
65
66
|
let W = class extends U {
|
|
66
67
|
constructor() {
|
|
67
|
-
super(),
|
|
68
|
+
super(), h(this, C), h(this, v, null), h(this, u, ""), h(this, o, null), h(this, p, !1), h(this, f, void 0), h(this, g, null), h(this, L, () => {
|
|
68
69
|
Q(this);
|
|
69
70
|
}), P && (this.openShadow(se), c(this, v, this.attachInternals()), c(this, g, new ResizeObserver(a(this, L))), k(this, {
|
|
70
71
|
children: [
|
|
@@ -85,7 +86,7 @@ let W = class extends U {
|
|
|
85
86
|
children: E()
|
|
86
87
|
}),
|
|
87
88
|
ref: (t) => {
|
|
88
|
-
c(this,
|
|
89
|
+
c(this, o, t);
|
|
89
90
|
}
|
|
90
91
|
})
|
|
91
92
|
]
|
|
@@ -109,17 +110,17 @@ let W = class extends U {
|
|
|
109
110
|
return a(this, p);
|
|
110
111
|
}
|
|
111
112
|
open() {
|
|
112
|
-
clearTimeout(a(this, f)), c(this, p, !0), a(this,
|
|
113
|
-
this.classList.add("opened"), a(this,
|
|
113
|
+
clearTimeout(a(this, f)), c(this, p, !0), a(this, o).style.display = "grid", this.classList.add("triggered"), setTimeout(() => {
|
|
114
|
+
this.classList.add("opened"), a(this, o).style.height = a(this, o).scrollHeight + "px", q(this, C, O).call(this);
|
|
114
115
|
}, 0);
|
|
115
116
|
}
|
|
116
117
|
close() {
|
|
117
|
-
c(this, p, !1), a(this,
|
|
118
|
-
this.classList.remove("triggered"), a(this,
|
|
119
|
-
}, X(a(this,
|
|
118
|
+
c(this, p, !1), a(this, o).style.height = "0px", this.classList.remove("opened"), q(this, C, O).call(this), c(this, f, setTimeout(() => {
|
|
119
|
+
this.classList.remove("triggered"), a(this, o).style.display = "none";
|
|
120
|
+
}, X(a(this, o))));
|
|
120
121
|
}
|
|
121
122
|
connectedCallback() {
|
|
122
|
-
a(this, g).observe(a(this,
|
|
123
|
+
a(this, g).observe(a(this, o));
|
|
123
124
|
}
|
|
124
125
|
disconnectedCallback() {
|
|
125
126
|
clearTimeout(a(this, f)), a(this, g).disconnect();
|
|
@@ -127,7 +128,7 @@ let W = class extends U {
|
|
|
127
128
|
};
|
|
128
129
|
v = /* @__PURE__ */ new WeakMap();
|
|
129
130
|
u = /* @__PURE__ */ new WeakMap();
|
|
130
|
-
|
|
131
|
+
o = /* @__PURE__ */ new WeakMap();
|
|
131
132
|
p = /* @__PURE__ */ new WeakMap();
|
|
132
133
|
f = /* @__PURE__ */ new WeakMap();
|
|
133
134
|
g = /* @__PURE__ */ new WeakMap();
|
|
@@ -222,7 +223,7 @@ J = function() {
|
|
|
222
223
|
F = ae([
|
|
223
224
|
M("e-select-option")
|
|
224
225
|
], F);
|
|
225
|
-
const
|
|
226
|
+
const oe = `<svg
|
|
226
227
|
xmlns="http://www.w3.org/2000/svg"
|
|
227
228
|
width="32"
|
|
228
229
|
height="32"
|
|
@@ -231,10 +232,10 @@ const he = `<svg
|
|
|
231
232
|
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
232
233
|
</svg>
|
|
233
234
|
`;
|
|
234
|
-
var
|
|
235
|
+
var he = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, de = (t, e, s, i) => {
|
|
235
236
|
for (var n = i > 1 ? void 0 : i ? ce(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
236
237
|
(l = t[r]) && (n = (i ? l(e, s, n) : l(n)) || n);
|
|
237
|
-
return i && n &&
|
|
238
|
+
return i && n && he(e, s, n), n;
|
|
238
239
|
}, K = (t, e, s) => {
|
|
239
240
|
if (!e.has(t))
|
|
240
241
|
throw TypeError("Cannot " + s);
|
|
@@ -277,7 +278,7 @@ let N = class extends Y {
|
|
|
277
278
|
E(),
|
|
278
279
|
E({
|
|
279
280
|
name: "arrow",
|
|
280
|
-
children: k(
|
|
281
|
+
children: k(oe, { class: "default-arrow" })
|
|
281
282
|
})
|
|
282
283
|
]
|
|
283
284
|
}), this.slot = "head");
|
|
@@ -297,7 +298,7 @@ N = de([
|
|
|
297
298
|
], N);
|
|
298
299
|
export {
|
|
299
300
|
W as S,
|
|
300
|
-
|
|
301
|
+
oe as a,
|
|
301
302
|
Y as b,
|
|
302
303
|
F as c,
|
|
303
304
|
N as d
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-BQGNOHlY.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs");require("./path-data-polyfill-CXsOR7Oc.cjs");const a=require("./tags-CueX-JLX.cjs"),M=require("./createStylesheet-C8aQQ4hd.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,o,v,m,g,$,C,b;const K=M.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,m,void 0),c(this,g,null),c(this,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(K),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,m)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).call(this),d(this,m,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,g).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,m)),r(this,g).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;m=new WeakMap;g=new WeakMap;$=new WeakMap;C=new WeakSet;b=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class q extends S.CustomElement{constructor(){super(...arguments);A(this,y,null)}get selectElement(){return z(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Q(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(G(t,e,"access private method"),s),w,L,R;const te=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).call(this)},children:a.slot()})]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",x(this,w)),setTimeout(()=>{x(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,w))}};w=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([S.define("e-select-option")],exports.SelectOptionElement);const F=`<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
width="32"
|
|
4
|
+
height="32"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
>
|
|
7
|
+
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
|
+
</svg>
|
|
9
|
+
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},U=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(U(t,e,"read from private field"),s?s.call(t):e.get(t)),O=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(U(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),T,_,k;const ae=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${E.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends q{constructor(){super(),O(this,T,null),O(this,_,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,T).innerHTML=s.innerHTML)}),O(this,k,()=>{this.classList.toggle("opened",this.selectElement.opened)}),W.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(F,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,T,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,_)),p(this,_).call(this),this.selectElement.addEventListener("selectToggle",p(this,k))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,_)),this.selectElement.removeEventListener("selectToggle",p(this,k))}};T=new WeakMap;_=new WeakMap;k=new WeakMap;exports.SelectHeadElement=ne([S.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=q;exports.arrowIcon=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=(n,t,r)=>{if(!t.has(n))throw TypeError("Cannot "+r)};var s=(n,t,r)=>(y(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,r)},f=(n,t,r,e)=>(y(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback===t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const g=new m;exports.Intersector=m;exports.intersector=g;
|
|
1
|
+
"use strict";var y=(n,t,r)=>{if(!t.has(n))throw TypeError("Cannot "+r)};var s=(n,t,r)=>(y(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,r)},f=(n,t,r,e)=>(y(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback===t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const g=new m;exports.Intersector=m;exports.intersector=g;
|