pptx-svelte-viewer 3.18.0 → 3.19.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/CHANGELOG.md +38 -0
- package/README.md +32 -27
- package/dist/{AiChatPanel-BpbQoAYF.js → AiChatPanel-B3wS82GP.js} +1 -1
- package/dist/{GLTFLoader-D2645ZAi.js → GLTFLoader-cXVvZ-Qt.js} +216 -199
- package/dist/{OrbitControls-Cm0ChW-y.js → OrbitControls-Dj3MmTu8.js} +9 -7
- package/dist/{export-BUF4iVeY.js → export-jE_PACKp.js} +32805 -32100
- package/dist/i18n.js +1 -1
- package/dist/index.js +2 -2
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{smartart-3d-DjfDf-du.js → smartart-3d-Btipz914.js} +2 -2
- package/dist/{three.module-CS4jrTOJ.js → three.module-BP1MPwgf.js} +4861 -4594
- package/dist/{translator-DTR0k69d.js → translator-wOMMyMjv.js} +5 -0
- package/dist/viewer/editor/editor-arrange-controller.d.ts +1 -1
- package/dist/viewer/editor/editor-arrange-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-arrange-ops.d.ts +7 -3
- package/dist/viewer/editor/editor-arrange-ops.d.ts.map +1 -1
- package/dist/viewer/editor/editor-element-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-freeform.d.ts +16 -0
- package/dist/viewer/editor/editor-freeform.d.ts.map +1 -1
- package/dist/viewer/editor/editor-ink-controller.svelte.d.ts +5 -4
- package/dist/viewer/editor/editor-ink-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-state.svelte.d.ts +14 -0
- package/dist/viewer/editor/editor-state.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-template-controller.d.ts +8 -0
- package/dist/viewer/editor/editor-template-controller.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +28 -5
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/state/create-viewer-state.svelte.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controls as S, MOUSE as _, MathUtils as M, Plane as w, Quaternion as g, Ray as O, Spherical as E, TOUCH as d, Vector2 as l, Vector3 as c } from "./three.module-
|
|
1
|
+
import { Controls as S, MOUSE as _, MathUtils as M, Plane as w, Quaternion as g, Ray as O, Spherical as E, TOUCH as d, Vector2 as l, Vector3 as c } from "./three.module-BP1MPwgf.js";
|
|
2
2
|
var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new O(), D = new w(), R = Math.cos(70 * M.DEG2RAD), a = new c(), h = 2 * Math.PI, s = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -22,7 +22,7 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
22
22
|
}, this.touches = {
|
|
23
23
|
ONE: d.ROTATE,
|
|
24
24
|
TWO: d.DOLLY_PAN
|
|
25
|
-
}, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new c(), this._lastQuaternion = new g(), this._lastTargetPosition = new c(), this._quat = new g().setFromUnitVectors(t.up, new c(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new E(), this._sphericalDelta = new E(), this._scale = 1, this._panOffset = new c(), this._rotateStart = new l(), this._rotateEnd = new l(), this._rotateDelta = new l(), this._panStart = new l(), this._panEnd = new l(), this._panDelta = new l(), this._dollyStart = new l(), this._dollyEnd = new l(), this._dollyDelta = new l(), this._dollyDirection = new c(), this._mouse = new l(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove =
|
|
25
|
+
}, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._cursorStyle = "auto", this._domElementKeyEvents = null, this._lastPosition = new c(), this._lastQuaternion = new g(), this._lastTargetPosition = new c(), this._quat = new g().setFromUnitVectors(t.up, new c(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new E(), this._sphericalDelta = new E(), this._scale = 1, this._panOffset = new c(), this._rotateStart = new l(), this._rotateEnd = new l(), this._rotateDelta = new l(), this._panStart = new l(), this._panEnd = new l(), this._panDelta = new l(), this._dollyStart = new l(), this._dollyEnd = new l(), this._dollyDelta = new l(), this._dollyDirection = new c(), this._mouse = new l(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = A.bind(this), this._onPointerDown = L.bind(this), this._onPointerUp = j.bind(this), this._onContextMenu = U.bind(this), this._onMouseWheel = k.bind(this), this._onKeyDown = N.bind(this), this._onTouchStart = Y.bind(this), this._onTouchMove = I.bind(this), this._onMouseDown = x.bind(this), this._onMouseMove = C.bind(this), this._interceptControlDown = v.bind(this), this._interceptControlUp = Z.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
26
26
|
}
|
|
27
27
|
set cursorStyle(t) {
|
|
28
28
|
this._cursorStyle = t, t === "grab" ? this.domElement.style.cursor = "grab" : this.domElement.style.cursor = "auto";
|
|
@@ -37,7 +37,9 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
37
37
|
}), this.domElement.style.touchAction = "none";
|
|
38
38
|
}
|
|
39
39
|
disconnect() {
|
|
40
|
-
this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents()
|
|
40
|
+
this.state = s.NONE, this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents();
|
|
41
|
+
const t = this.domElement.getRootNode();
|
|
42
|
+
t.removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), t.removeEventListener("keyup", this._interceptControlUp, { capture: !0 }), this._controlActive = !1, this._pointers.length = 0, this._pointerPositions = {}, this.domElement.style.touchAction = "", this.domElement.style.cursor = "auto";
|
|
41
43
|
}
|
|
42
44
|
dispose() {
|
|
43
45
|
this.disconnect();
|
|
@@ -290,10 +292,10 @@ var P = { type: "change" }, y = { type: "start" }, T = { type: "end" }, m = new
|
|
|
290
292
|
function L(t) {
|
|
291
293
|
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(t.pointerId), this.domElement.ownerDocument.addEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(t) && (this._addPointer(t), t.pointerType === "touch" ? this._onTouchStart(t) : this._onMouseDown(t), this._cursorStyle === "grab" && (this.domElement.style.cursor = "grabbing")));
|
|
292
294
|
}
|
|
293
|
-
function
|
|
295
|
+
function A(t) {
|
|
294
296
|
this.enabled !== !1 && (t.pointerType === "touch" ? this._onTouchMove(t) : this._onMouseMove(t));
|
|
295
297
|
}
|
|
296
|
-
function
|
|
298
|
+
function j(t) {
|
|
297
299
|
switch (this._removePointer(t), this._pointers.length) {
|
|
298
300
|
case 0:
|
|
299
301
|
this.domElement.releasePointerCapture(t.pointerId), this.domElement.ownerDocument.removeEventListener("pointermove", this._onPointerMove), this.domElement.ownerDocument.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(T), this.state = s.NONE, this._cursorStyle === "grab" && (this.domElement.style.cursor = "grab");
|
|
@@ -431,13 +433,13 @@ function I(t) {
|
|
|
431
433
|
function U(t) {
|
|
432
434
|
this.enabled !== !1 && t.preventDefault();
|
|
433
435
|
}
|
|
434
|
-
function
|
|
436
|
+
function v(t) {
|
|
435
437
|
t.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, {
|
|
436
438
|
passive: !0,
|
|
437
439
|
capture: !0
|
|
438
440
|
}));
|
|
439
441
|
}
|
|
440
|
-
function
|
|
442
|
+
function Z(t) {
|
|
441
443
|
t.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, {
|
|
442
444
|
passive: !0,
|
|
443
445
|
capture: !0
|