aptechka 0.14.0 → 0.16.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/lib/{Animation-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
- package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
- package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
- package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
- package/lib/Store-CDb6RMce.cjs +1 -0
- package/lib/Store-OTdcl6SX.js +134 -0
- package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
- package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
- package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
- package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -7
- package/lib/canvas/index.js +49 -48
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/en3/index.cjs +8 -1
- package/lib/en3/index.js +372 -4
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +838 -460
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +15 -21
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +576 -608
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +154 -62
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +71 -37
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +59 -56
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -34
- package/lib/Composed-C_4slJQ6.cjs +0 -1
- package/lib/Composed-CfWa-69I.js +0 -31
- package/lib/Derived-BIBU-y7Z.cjs +0 -1
- package/lib/Derived-Vo_RsJfi.js +0 -23
- package/lib/SourceManager-B6wZpXUZ.js +0 -104
- package/lib/SourceManager-CfHcGLUa.cjs +0 -1
- package/lib/Store-C46i0nvr.js +0 -137
- package/lib/Store-npaZHvX4.cjs +0 -1
- package/lib/createStylesheet-C68ja-RS.js +0 -8
- package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
- package/lib/element-constructor/index.cjs +0 -1
- package/lib/element-constructor/index.js +0 -135
- package/lib/en3/helpers/index.cjs +0 -1
- package/lib/en3/helpers/index.js +0 -1870
- package/lib/en3/libs/index.cjs +0 -1
- package/lib/en3/libs/index.js +0 -200
- package/lib/en3/loaders/index.cjs +0 -1
- package/lib/en3/loaders/index.js +0 -1742
- package/lib/en3/misc/index.cjs +0 -10
- package/lib/en3/misc/index.js +0 -110
- package/lib/en3/utils/index.cjs +0 -1
- package/lib/en3/utils/index.js +0 -20
- package/lib/en3-C1fLmsjs.cjs +0 -8
- package/lib/en3-sK9Z-fp2.js +0 -344
- package/lib/tags-6_ETuR75.cjs +0 -1
- package/lib/tags-zft1DGBz.js +0 -833
- package/lib/traverseMaterials-BlZbRhgW.js +0 -29
- package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Vector3 as c, OrthographicCamera as p, Mesh as w } from "three";
|
|
2
|
-
import { e as h } from "./en3-sK9Z-fp2.js";
|
|
3
|
-
const s = new c(), g = new c();
|
|
4
|
-
function M(a, r = "default") {
|
|
5
|
-
const t = h.getView(r), { width: e, height: o } = h, n = e / o;
|
|
6
|
-
a instanceof c ? s.copy(a) : s.set(...a);
|
|
7
|
-
const i = t.camera.getWorldPosition(g).distanceTo(s);
|
|
8
|
-
if (t.camera instanceof p)
|
|
9
|
-
return {
|
|
10
|
-
width: e / t.camera.zoom,
|
|
11
|
-
height: o / t.camera.zoom,
|
|
12
|
-
factor: 1,
|
|
13
|
-
distance: i,
|
|
14
|
-
aspect: n
|
|
15
|
-
};
|
|
16
|
-
{
|
|
17
|
-
const l = t.camera.fov * Math.PI / 180, m = 2 * Math.tan(l / 2) * i, f = m * (e / o);
|
|
18
|
-
return { width: f, height: m, factor: e / f, distance: i, aspect: n };
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function d(a, r) {
|
|
22
|
-
a.traverse((t) => {
|
|
23
|
-
t instanceof w && t.material && (Array.isArray(t.material) ? t.material : [t.material]).forEach(r);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
M as g,
|
|
28
|
-
d as t
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("three"),f=require("./en3-C1fLmsjs.cjs"),s=new a.Vector3,u=new a.Vector3;function w(e,i="default"){const t=f.en3.getView(i),{width:r,height:o}=f.en3,n=r/o;e instanceof a.Vector3?s.copy(e):s.set(...e);const c=t.camera.getWorldPosition(u).distanceTo(s);if(t.camera instanceof a.OrthographicCamera)return{width:r/t.camera.zoom,height:o/t.camera.zoom,factor:1,distance:c,aspect:n};{const l=t.camera.fov*Math.PI/180,h=2*Math.tan(l/2)*c,m=h*(r/o);return{width:m,height:h,factor:r/m,distance:c,aspect:n}}}function g(e,i){e.traverse(t=>{t instanceof a.Mesh&&t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach(i)})}exports.getCurrentViewport=w;exports.traverseMaterials=g;
|