aptechka 0.5.42 → 0.5.44
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/DRACOLoader-C2CFpMGS.cjs +2 -0
- package/lib/DRACOLoader-D2KY2dku.js +241 -0
- package/lib/KTX2Loader-DdUl1XiY.cjs +2 -0
- package/lib/KTX2Loader-DqpAffDj.js +536 -0
- package/lib/MeshoptDecoder-6XfTpOG2.js +201 -0
- package/lib/MeshoptDecoder-CMeN3oU0.cjs +1 -0
- package/lib/accordion/AccordionElement.d.ts +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +26 -26
- package/lib/animation/Animation.d.ts +2 -2
- package/lib/animation/AnimationLink.d.ts +1 -1
- package/lib/animation/Damped.d.ts +1 -1
- package/lib/animation/Tweened.d.ts +2 -2
- package/lib/attribute/index.d.ts +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +26 -26
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +17 -17
- package/lib/controls/AutoplayControls.d.ts +1 -1
- package/lib/controls/DragControls.d.ts +1 -1
- package/lib/controls/WheelControls.d.ts +1 -1
- package/lib/css-property/index.d.ts +1 -1
- package/lib/custom-element/index.d.ts +1 -4
- package/lib/element-constructor/ElementConstructor.d.ts +2 -2
- package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
- package/lib/en3/core/En3View.d.ts +2 -2
- package/lib/en3/core/en3.d.ts +2 -2
- package/lib/en3/index.cjs +22 -24
- package/lib/en3/index.js +1811 -2733
- package/lib/en3/loaders/en3GLTFLoader.d.ts +5 -5
- package/lib/en3/objects/En3Clip.d.ts +2 -2
- package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
- package/lib/en3/objects/En3GLTF.d.ts +3 -3
- package/lib/en3/objects/En3Image.d.ts +1 -1
- package/lib/en3/objects/En3ImageLike.d.ts +2 -2
- package/lib/en3/objects/En3Video.d.ts +1 -1
- package/lib/en3/objects/fluid/Advection.d.ts +1 -1
- package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
- package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
- package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
- package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
- package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
- package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
- package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
- package/lib/en3/utils/coverTexture.d.ts +1 -1
- package/lib/{index-BtsOv9u0.js → index-BN9X-l9M.js} +63 -63
- package/lib/index-BbgmbQ-5.cjs +9 -0
- package/lib/layout-box/index.d.ts +2 -2
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +9 -9
- package/lib/pointer/Pointer.d.ts +1 -1
- package/lib/pointer/PointerElement.d.ts +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +1 -1
- package/lib/popover/PopoverButtonElement.d.ts +1 -1
- package/lib/popover/PopoverElement.d.ts +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +48 -48
- package/lib/scroll/ScrollElement.d.ts +6 -6
- package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
- package/lib/scroll/ScrollUserElement.d.ts +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +10 -10
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/select/SelectUserElement.d.ts +1 -1
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.d.ts +1 -1
- package/lib/sequence/index.js +7 -7
- package/lib/slicer/SlicerElement.d.ts +2 -2
- package/lib/slicer/index.cjs +4 -4
- package/lib/slicer/index.js +31 -31
- package/lib/source/SourceElement.d.ts +2 -2
- package/lib/source/SourceManager.d.ts +1 -1
- package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerElement.d.ts +1 -1
- package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +3 -3
- package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerNumberManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerRangeManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
- package/lib/tweaker/TweakerStringManagerElement.d.ts +1 -1
- package/lib/tweaker/index.cjs +2 -2
- package/lib/tweaker/index.js +125 -125
- package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
- package/lib/utils/function.d.ts +2 -2
- package/lib/utils/layout.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +13 -13
- package/package.json +4 -12
- package/lib/index-Buf76Qoq.cjs +0 -9
- package/lib/resized/index.cjs +0 -1
- package/lib/resized/index.d.ts +0 -12
- package/lib/resized/index.js +0 -30
package/lib/canvas/index.js
CHANGED
|
@@ -4,20 +4,20 @@ import "../Store-BQXXikps.js";
|
|
|
4
4
|
import { c as z } from "../math-BOBiC4TN.js";
|
|
5
5
|
import { e as A, q as D } from "../tags-CMPg9ETZ.js";
|
|
6
6
|
import { c as L } from "../createStylesheet-DBCEbDjI.js";
|
|
7
|
-
import { elementResizer as
|
|
7
|
+
import { elementResizer as M } from "../element-resizer/index.js";
|
|
8
8
|
import { ticker as S } from "../ticker/index.js";
|
|
9
|
-
var T = Object.defineProperty, q = Object.getOwnPropertyDescriptor, G = (t, i, s,
|
|
10
|
-
for (var r =
|
|
11
|
-
(R = t[k]) && (r = (
|
|
12
|
-
return
|
|
13
|
-
},
|
|
9
|
+
var T = Object.defineProperty, q = Object.getOwnPropertyDescriptor, G = (t, i, s, l) => {
|
|
10
|
+
for (var r = l > 1 ? void 0 : l ? q(i, s) : i, k = t.length - 1, R; k >= 0; k--)
|
|
11
|
+
(R = t[k]) && (r = (l ? R(i, s, r) : R(r)) || r);
|
|
12
|
+
return l && r && T(i, s, r), r;
|
|
13
|
+
}, E = (t, i, s) => {
|
|
14
14
|
if (!i.has(t))
|
|
15
15
|
throw TypeError("Cannot " + s);
|
|
16
|
-
}, e = (t, i, s) => (
|
|
16
|
+
}, e = (t, i, s) => (E(t, i, "read from private field"), s ? s.call(t) : i.get(t)), a = (t, i, s) => {
|
|
17
17
|
if (i.has(t))
|
|
18
18
|
throw TypeError("Cannot add the same private member more than once");
|
|
19
19
|
i instanceof WeakSet ? i.add(t) : i.set(t, s);
|
|
20
|
-
},
|
|
20
|
+
}, h = (t, i, s, l) => (E(t, i, "write to private field"), i.set(t, s), s), u = (t, i, s) => (E(t, i, "access private method"), s), c, n, d, o, p, m, f, _, w, W, C, P, x, v, g, b;
|
|
21
21
|
const H = L({
|
|
22
22
|
":host, canvas": {
|
|
23
23
|
display: "block",
|
|
@@ -27,25 +27,25 @@ const H = L({
|
|
|
27
27
|
});
|
|
28
28
|
let y = class extends O {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(), a(this, w), a(this, C), a(this, g), a(this,
|
|
31
|
-
|
|
30
|
+
super(), a(this, w), a(this, C), a(this, g), a(this, c, new F(this, "--fps", 0)), a(this, n, null), a(this, d, null), a(this, o, 0), a(this, p, 0), a(this, m, 1), a(this, f, 0), a(this, _, 1), a(this, x, (t) => {
|
|
31
|
+
h(this, m, z(devicePixelRatio, 1, 2)), h(this, o, t.contentRect.width), h(this, p, t.contentRect.height), e(this, n).width = e(this, o) * this.pixelRatio, e(this, n).height = e(this, p) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), u(this, g, b).call(this);
|
|
32
32
|
}), a(this, v, (t) => {
|
|
33
|
-
|
|
33
|
+
h(this, f, t.timestamp), h(this, _, t.timeBetweenFrames), u(this, g, b).call(this);
|
|
34
34
|
}), this.openShadow(H), A(this, {
|
|
35
35
|
children: D({
|
|
36
36
|
ref: (t) => {
|
|
37
|
-
|
|
37
|
+
h(this, n, t), h(this, d, t.getContext("2d"));
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
|
-
}), e(this,
|
|
40
|
+
}), e(this, c).subscribe((t) => {
|
|
41
41
|
typeof t.previous != "undefined" && t.current !== t.previous && u(this, w, W).call(this);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
get fpsCSSProperty() {
|
|
45
|
-
return e(this,
|
|
45
|
+
return e(this, c);
|
|
46
46
|
}
|
|
47
47
|
get canvasElement() {
|
|
48
|
-
return e(this,
|
|
48
|
+
return e(this, n);
|
|
49
49
|
}
|
|
50
50
|
get context() {
|
|
51
51
|
return e(this, d);
|
|
@@ -54,17 +54,17 @@ let y = class extends O {
|
|
|
54
54
|
return e(this, m);
|
|
55
55
|
}
|
|
56
56
|
get width() {
|
|
57
|
-
return e(this,
|
|
57
|
+
return e(this, o);
|
|
58
58
|
}
|
|
59
59
|
get height() {
|
|
60
|
-
return e(this,
|
|
60
|
+
return e(this, p);
|
|
61
61
|
}
|
|
62
62
|
get detail() {
|
|
63
63
|
return {
|
|
64
|
-
width: e(this,
|
|
65
|
-
height: e(this,
|
|
64
|
+
width: e(this, o),
|
|
65
|
+
height: e(this, p),
|
|
66
66
|
element: this,
|
|
67
|
-
canvasElement: e(this,
|
|
67
|
+
canvasElement: e(this, n),
|
|
68
68
|
pixelRatio: e(this, m),
|
|
69
69
|
context: e(this, d),
|
|
70
70
|
timestamp: e(this, f),
|
|
@@ -72,17 +72,17 @@ let y = class extends O {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
connectedCallback() {
|
|
75
|
-
e(this,
|
|
75
|
+
e(this, c).observe(), M.subscribe(this, e(this, x)), u(this, w, W).call(this);
|
|
76
76
|
}
|
|
77
77
|
disconnectedCallback() {
|
|
78
|
-
e(this,
|
|
78
|
+
e(this, c).unobserve(), M.unsubscribe(e(this, x)), u(this, C, P).call(this);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
o = /* @__PURE__ */ new WeakMap();
|
|
82
81
|
c = /* @__PURE__ */ new WeakMap();
|
|
82
|
+
n = /* @__PURE__ */ new WeakMap();
|
|
83
83
|
d = /* @__PURE__ */ new WeakMap();
|
|
84
|
+
o = /* @__PURE__ */ new WeakMap();
|
|
84
85
|
p = /* @__PURE__ */ new WeakMap();
|
|
85
|
-
l = /* @__PURE__ */ new WeakMap();
|
|
86
86
|
m = /* @__PURE__ */ new WeakMap();
|
|
87
87
|
f = /* @__PURE__ */ new WeakMap();
|
|
88
88
|
_ = /* @__PURE__ */ new WeakMap();
|
|
@@ -90,7 +90,7 @@ w = /* @__PURE__ */ new WeakSet();
|
|
|
90
90
|
W = function() {
|
|
91
91
|
S.unsubscribe(e(this, v)), this.hasAttribute("static") || S.subscribe(e(this, v), {
|
|
92
92
|
culling: this,
|
|
93
|
-
maxFPS: e(this,
|
|
93
|
+
maxFPS: e(this, c).current
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
C = /* @__PURE__ */ new WeakSet();
|
|
@@ -100,7 +100,7 @@ P = function() {
|
|
|
100
100
|
x = /* @__PURE__ */ new WeakMap();
|
|
101
101
|
v = /* @__PURE__ */ new WeakMap();
|
|
102
102
|
g = /* @__PURE__ */ new WeakSet();
|
|
103
|
-
|
|
103
|
+
b = function() {
|
|
104
104
|
this.dispatchEvent(
|
|
105
105
|
new CustomEvent("canvasRender", {
|
|
106
106
|
composed: !0,
|
package/lib/checkbox/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-Djb6mb1o.cjs"),_=require("../createStylesheet-CqHU9_qv.cjs"),v=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,c)=>{for(var i=c>1?void 0:c?b(e,a):e,u=t.length-1,p;u>=0;u--)(p=t[u])&&(i=(c?p(e,a,i):p(i))||i);return c&&i&&x(e,a,i),i},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},l=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,c)=>(k(t,e,"write to private field"),e.set(t,a),a),d=(t,e,a)=>(k(t,e,"access private method"),a),s,o,h,n;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:v.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:v.aptechkaTheme.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:v.aptechkaTheme.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,h),f(this,s,null),f(this,o,void 0),this.openShadow(C),g(this,o,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",d(this,h,n).call(this)},class:"real",type:"checkbox",onChange:()=>{d(this,h,n).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return l(this,s).checked}set checked(e){l(this,s).checked=e,d(this,h,n).call(this)}get value(){return l(this,s).value}set value(e){l(this,s).value=e,d(this,h,n).call(this)}};s=new WeakMap;o=new WeakMap;h=new WeakSet;n=function(){this.checked?l(this,o).setFormValue(this.value):l(this,o).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
|
package/lib/checkbox/index.js
CHANGED
|
@@ -4,18 +4,18 @@ import { e as x, a3 as y, aB as g, ay as b, a0 as C } from "../tags-CMPg9ETZ.js"
|
|
|
4
4
|
import { c as A } from "../createStylesheet-DBCEbDjI.js";
|
|
5
5
|
import { aptechkaTheme as u } from "../theme/index.js";
|
|
6
6
|
const E = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';
|
|
7
|
-
var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a,
|
|
8
|
-
for (var
|
|
9
|
-
(p = e[d]) && (
|
|
10
|
-
return
|
|
7
|
+
var S = Object.defineProperty, F = Object.getOwnPropertyDescriptor, M = (e, t, a, l) => {
|
|
8
|
+
for (var i = l > 1 ? void 0 : l ? F(t, a) : t, d = e.length - 1, p; d >= 0; d--)
|
|
9
|
+
(p = e[d]) && (i = (l ? p(t, a, i) : p(i)) || i);
|
|
10
|
+
return l && i && S(t, a, i), i;
|
|
11
11
|
}, m = (e, t, a) => {
|
|
12
12
|
if (!t.has(e))
|
|
13
13
|
throw TypeError("Cannot " + a);
|
|
14
|
-
},
|
|
14
|
+
}, h = (e, t, a) => (m(e, t, "read from private field"), a ? a.call(e) : t.get(e)), v = (e, t, a) => {
|
|
15
15
|
if (t.has(e))
|
|
16
16
|
throw TypeError("Cannot add the same private member more than once");
|
|
17
17
|
t instanceof WeakSet ? t.add(e) : t.set(e, a);
|
|
18
|
-
}, k = (e, t, a,
|
|
18
|
+
}, k = (e, t, a, l) => (m(e, t, "write to private field"), t.set(e, a), a), n = (e, t, a) => (m(e, t, "access private method"), a), s, o, r, c;
|
|
19
19
|
const O = A({
|
|
20
20
|
":host": {
|
|
21
21
|
position: "relative",
|
|
@@ -60,7 +60,7 @@ const O = A({
|
|
|
60
60
|
});
|
|
61
61
|
let f = class extends w {
|
|
62
62
|
constructor() {
|
|
63
|
-
super(), v(this,
|
|
63
|
+
super(), v(this, r), v(this, s, null), v(this, o, void 0), this.openShadow(O), k(this, o, this.attachInternals()), x(this, {
|
|
64
64
|
children: y({
|
|
65
65
|
children: [
|
|
66
66
|
g({
|
|
@@ -76,12 +76,12 @@ let f = class extends w {
|
|
|
76
76
|
}),
|
|
77
77
|
C({
|
|
78
78
|
ref: (e) => {
|
|
79
|
-
k(this,
|
|
79
|
+
k(this, s, e), e.required = this.hasAttribute("required"), e.value = this.getAttribute("value") || "", e.checked = this.hasAttribute("checked"), e.name = this.getAttribute("name") || "", n(this, r, c).call(this);
|
|
80
80
|
},
|
|
81
81
|
class: "real",
|
|
82
82
|
type: "checkbox",
|
|
83
83
|
onChange: () => {
|
|
84
|
-
|
|
84
|
+
n(this, r, c).call(this), this.dispatchEvent(
|
|
85
85
|
new Event("change", {
|
|
86
86
|
composed: !0
|
|
87
87
|
})
|
|
@@ -93,23 +93,23 @@ let f = class extends w {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
get checked() {
|
|
96
|
-
return
|
|
96
|
+
return h(this, s).checked;
|
|
97
97
|
}
|
|
98
98
|
set checked(e) {
|
|
99
|
-
|
|
99
|
+
h(this, s).checked = e, n(this, r, c).call(this);
|
|
100
100
|
}
|
|
101
101
|
get value() {
|
|
102
|
-
return
|
|
102
|
+
return h(this, s).value;
|
|
103
103
|
}
|
|
104
104
|
set value(e) {
|
|
105
|
-
|
|
105
|
+
h(this, s).value = e, n(this, r, c).call(this);
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
s = /* @__PURE__ */ new WeakMap();
|
|
109
|
+
o = /* @__PURE__ */ new WeakMap();
|
|
110
|
+
r = /* @__PURE__ */ new WeakSet();
|
|
111
111
|
c = function() {
|
|
112
|
-
this.checked ?
|
|
112
|
+
this.checked ? h(this, o).setFormValue(this.value) : h(this, o).setFormValue(null), this.classList.toggle("checked", this.checked);
|
|
113
113
|
};
|
|
114
114
|
f.formAssociated = !0;
|
|
115
115
|
f = M([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../utils';
|
|
2
1
|
import { Store, StoreCallback, StoreEntry, StoreManagerType, StoreOptions } from '../store';
|
|
2
|
+
import { ElementOrSelector } from '../utils';
|
|
3
3
|
|
|
4
4
|
export interface CSSPropertyOptions<StoreType extends number | boolean | string, StoreManager extends StoreManagerType = StoreManagerType> extends StoreOptions<StoreType, StoreManager> {
|
|
5
5
|
rawValueCheck?: boolean;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export declare function define(name: string, extend?: keyof HTMLElementTagNameMap): (Constructor: CustomElementConstructor) => void;
|
|
2
2
|
export declare function defineElement(name: string, Constructor: CustomElementConstructor, extend?: keyof HTMLElementTagNameMap): void;
|
|
3
|
-
declare const HTMLElement:
|
|
4
|
-
new (): HTMLElement;
|
|
5
|
-
prototype: HTMLElement;
|
|
6
|
-
};
|
|
3
|
+
declare const HTMLElement: typeof window.HTMLElement;
|
|
7
4
|
export declare class CustomElement extends HTMLElement {
|
|
8
5
|
openShadow(...stylesheets: Array<CSSStyleSheet>): ShadowRoot;
|
|
9
6
|
addStylesheet(...stylesheets: Array<CSSStyleSheet>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../connector';
|
|
2
|
-
import { SplitFirst } from '../utils';
|
|
3
1
|
import { Store } from '../store';
|
|
2
|
+
import { SplitFirst } from '../utils';
|
|
3
|
+
import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../connector';
|
|
4
4
|
|
|
5
5
|
export type StoreOr<T> = T | Store<T>;
|
|
6
6
|
export type ElementConstructorTagNameMap = HTMLElementTagNameMap & SVGElementTagNameMap;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventDispatcher, Loader } from 'three';
|
|
2
|
-
import { Store } from '../../store';
|
|
3
1
|
import { SourceManagerParameters, SourceManager } from '../../source';
|
|
2
|
+
import { Store } from '../../store';
|
|
3
|
+
import { EventDispatcher, Loader } from 'three';
|
|
4
4
|
|
|
5
5
|
export interface En3SourceManagerLoader<T> {
|
|
6
6
|
load: Loader<T>['load'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../../utils';
|
|
2
|
-
import { Object3D, OrthographicCamera, PerspectiveCamera, Scene } from 'three';
|
|
3
1
|
import { LayoutBox, LayoutBoxOptions } from '../../layout-box';
|
|
2
|
+
import { Object3D, OrthographicCamera, PerspectiveCamera, Scene } from 'three';
|
|
3
|
+
import { ElementOrSelector } from '../../utils';
|
|
4
4
|
|
|
5
5
|
export interface En3ViewOptions {
|
|
6
6
|
cameraType?: 'perspective' | 'orthographic';
|
package/lib/en3/core/en3.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { En3View, En3ViewOptions } from './En3View';
|
|
2
|
-
import { WebGLRenderer, WebGLRendererParameters } from 'three';
|
|
3
1
|
import { ElementOrSelector } from '../../utils';
|
|
2
|
+
import { WebGLRenderer, WebGLRendererParameters } from 'three';
|
|
3
|
+
import { En3View, En3ViewOptions } from './En3View';
|
|
4
4
|
|
|
5
5
|
export interface En3Options {
|
|
6
6
|
webGLRendererParameters?: WebGLRendererParameters;
|