@realsee/dnalogel 4.0.0-webgpu.22 → 4.0.0-webgpu.24
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 +9 -0
- package/dist/floorplan.js +1 -1
- package/dist/index.js +15 -15
- package/dist/internal/{BasePlugin-zdhp9qnU.js → BasePlugin-Bb3IIdoT.js} +2 -2
- package/dist/internal/{BasePlugin-zdhp9qnU.js.map → BasePlugin-Bb3IIdoT.js.map} +1 -1
- package/dist/internal/BasePluginWithData-DhoOfulA.js +7 -0
- package/dist/internal/{BasePluginWithData-ck4u4TjN.js.map → BasePluginWithData-DhoOfulA.js.map} +1 -1
- package/dist/internal/{Controller-zF22mINj.js → Controller-BUhEyr_1.js} +2 -2
- package/dist/internal/{Controller-zF22mINj.js.map → Controller-BUhEyr_1.js.map} +1 -1
- package/dist/internal/{Controller-DB04swnw.js → Controller-DzfK4n2o.js} +21 -9
- package/dist/internal/Controller-DzfK4n2o.js.map +1 -0
- package/dist/internal/{Rectangle-B9R3rpdI.js → Rectangle-D44t_X8L.js} +2 -2
- package/dist/internal/{Rectangle-B9R3rpdI.js.map → Rectangle-D44t_X8L.js.map} +1 -1
- package/dist/internal/{Work-DtAgK7KV.js → Work-OoUrI19X.js} +4 -4
- package/dist/internal/{Work-DtAgK7KV.js.map → Work-OoUrI19X.js.map} +1 -1
- package/dist/internal/{area-maker-oP48H4-A.js → area-maker-BW2_j-va.js} +2 -2
- package/dist/internal/{area-maker-oP48H4-A.js.map → area-maker-BW2_j-va.js.map} +1 -1
- package/dist/internal/{controller-Cw1vq4xx.js → controller-F8kgNmEQ.js} +3 -3
- package/dist/internal/{controller-Cw1vq4xx.js.map → controller-F8kgNmEQ.js.map} +1 -1
- package/dist/internal/{cruise-D-7VK7xn.js → cruise-CsjeQ3OF.js} +2 -2
- package/dist/internal/{cruise-D-7VK7xn.js.map → cruise-CsjeQ3OF.js.map} +1 -1
- package/dist/internal/{current-pano-image-DfJkkpft.js → current-pano-image-Do03xL7z.js} +2 -2
- package/dist/internal/{current-pano-image-DfJkkpft.js.map → current-pano-image-Do03xL7z.js.map} +1 -1
- package/dist/internal/{floorplan-B1K9E9gs.js → floorplan-DcI1Gyz0.js} +2 -2
- package/dist/internal/{floorplan-B1K9E9gs.js.map → floorplan-DcI1Gyz0.js.map} +1 -1
- package/dist/internal/{model-maker-WRTQbl6c.js → model-maker-DAGEF_ix.js} +2 -2
- package/dist/internal/{model-maker-WRTQbl6c.js.map → model-maker-DAGEF_ix.js.map} +1 -1
- package/dist/internal/object3d-helper-R0q5geJ-.js +7 -0
- package/dist/internal/{object3d-helper-Y8-tanjc.js.map → object3d-helper-R0q5geJ-.js.map} +1 -1
- package/dist/internal/{pano-compass-Z7Xt9NYr.js → pano-compass-DF_vSVH-.js} +2 -2
- package/dist/internal/{pano-compass-Z7Xt9NYr.js.map → pano-compass-DF_vSVH-.js.map} +1 -1
- package/dist/internal/{pano-door-label-BsbV6v6t.js → pano-door-label-B73e_xf3.js} +2 -2
- package/dist/internal/{pano-door-label-BsbV6v6t.js.map → pano-door-label-B73e_xf3.js.map} +1 -1
- package/dist/internal/{pano-measure-DVI5jZuk.js → pano-measure-BnjDR7qa.js} +2 -2
- package/dist/internal/{pano-measure-DVI5jZuk.js.map → pano-measure-BnjDR7qa.js.map} +1 -1
- package/dist/internal/{pano-measure-v2-Bic6PZzq.js → pano-measure-v2-BlHSj_-V.js} +2 -2
- package/dist/internal/{pano-measure-v2-Bic6PZzq.js.map → pano-measure-v2-BlHSj_-V.js.map} +1 -1
- package/dist/internal/{pano-tag-DpuXWvk2.js → pano-tag-ClPgQcdR.js} +2 -2
- package/dist/internal/{pano-tag-DpuXWvk2.js.map → pano-tag-ClPgQcdR.js.map} +1 -1
- package/dist/internal/{pano-video-BV0CsH6b.js → pano-video-BZrcErqF.js} +2 -2
- package/dist/internal/{pano-video-BV0CsH6b.js.map → pano-video-BZrcErqF.js.map} +1 -1
- package/dist/internal/{pipeline-JpIMouIM.js → pipeline-B46LsAp7.js} +2 -2
- package/dist/internal/{pipeline-JpIMouIM.js.map → pipeline-B46LsAp7.js.map} +1 -1
- package/dist/internal/{sculpt-BCaIWlR-.js → sculpt-DMtL0ECo.js} +2 -2
- package/dist/internal/{sculpt-BCaIWlR-.js.map → sculpt-DMtL0ECo.js.map} +1 -1
- package/dist/plugins/area-maker.js +1 -1
- package/dist/plugins/cruise.js +2 -2
- package/dist/plugins/current-pano-image.js +1 -1
- package/dist/plugins/guide-line.js +1 -1
- package/dist/plugins/model-maker.js +1 -1
- package/dist/plugins/object3d-helper.js +2 -2
- package/dist/plugins/pano-compass.js +1 -1
- package/dist/plugins/pano-door-label.js +1 -1
- package/dist/plugins/pano-measure-v2.js +1 -1
- package/dist/plugins/pano-measure.js +1 -1
- package/dist/plugins/pano-tag.js +2 -2
- package/dist/plugins/pano-video.js +1 -1
- package/dist/plugins/pipeline.js +1 -1
- package/dist/plugins/sculpt.js +2 -2
- package/dist/types/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/types/PanoMeasurePlugin/Controller/EditController.d.ts +1 -0
- package/dist/types/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +2 -0
- package/package.json +1 -1
- package/dist/internal/BasePluginWithData-ck4u4TjN.js +0 -7
- package/dist/internal/Controller-DB04swnw.js.map +0 -1
- package/dist/internal/object3d-helper-Y8-tanjc.js +0 -7
|
@@ -10,7 +10,7 @@ import { n as m, t as h } from "./isNil-CQNA0Sbe.js";
|
|
|
10
10
|
import { t as g } from "./uuid-BfVaI9vM.js";
|
|
11
11
|
import { n as _, t as v } from "./tween.esm-CJDtohfp.js";
|
|
12
12
|
import { i as y } from "./animationFrame-CacKXN8l.js";
|
|
13
|
-
import { t as b } from "./BasePlugin-
|
|
13
|
+
import { t as b } from "./BasePlugin-Bb3IIdoT.js";
|
|
14
14
|
import { C as x, G as S, J as C, K as w, L as T, M as E, N as ee, O as te, P as D, Q as O, R as k, S as ne, U as A, V as j, W as re, X as M, Y as N, Z as ie, _ as ae, b as oe, d as se, et as ce, it as P, j as F, k as le, l as I, m as L, n as R, o as z, p as B, q as ue, rt as V, st as H, t as de, x as fe, z as U } from "./component.svelte-D5LYqt50.js";
|
|
15
15
|
import { n as pe, t as me } from "./safeObj-ic96Cf8D.js";
|
|
16
16
|
import { t as he } from "./FiveLine-0OtX3RDV.js";
|
|
@@ -137,6 +137,7 @@ var Qe = class {
|
|
|
137
137
|
modelOcclusion = !1;
|
|
138
138
|
raycaster = new Ee();
|
|
139
139
|
line;
|
|
140
|
+
lastVisibleAngle;
|
|
140
141
|
lastFOV;
|
|
141
142
|
cameraUpdateHandler = null;
|
|
142
143
|
constructor(e) {
|
|
@@ -169,8 +170,11 @@ var Qe = class {
|
|
|
169
170
|
}
|
|
170
171
|
return this;
|
|
171
172
|
}
|
|
173
|
+
hide() {
|
|
174
|
+
this.lastVisibleAngle = void 0, super.hide();
|
|
175
|
+
}
|
|
172
176
|
remove() {
|
|
173
|
-
if (this.cameraUpdateHandler) {
|
|
177
|
+
if (this.lastVisibleAngle = void 0, this.cameraUpdateHandler) {
|
|
174
178
|
let e = this.getFiveInstance();
|
|
175
179
|
e && (e.off("cameraUpdate", this.cameraUpdateHandler), e.off("cameraFovUpdate", this.cameraUpdateHandler), e.off("panoArrived", this.onPanoChange)), this.cameraUpdateHandler = null;
|
|
176
180
|
}
|
|
@@ -197,13 +201,15 @@ var Qe = class {
|
|
|
197
201
|
}
|
|
198
202
|
let g = u.distanceTo(e.camera.position), _ = e.camera.fov || 60, v = 2 * Math.tan(.5 * _ / 180 * Math.PI), y = Math.max(Math.min(1 - v * g / 40, 1), 0);
|
|
199
203
|
this.contentDom.style.setProperty("--distance-scale", y.toString());
|
|
200
|
-
let b = (f.x + 1) / 2 * n, x = -(f.y - 1) / 2 * r, S = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, C =
|
|
201
|
-
this.
|
|
204
|
+
let b = (f.x + 1) / 2 * n, x = -(f.y - 1) / 2 * r, S = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, C = S + Math.round(((this.lastVisibleAngle ?? S) - S) / 180) * 180;
|
|
205
|
+
this.lastVisibleAngle = C;
|
|
206
|
+
let w = this.containerDom.parentElement && this.contentDom.clientWidth > h ? -20 : 0;
|
|
207
|
+
this.containerDom.style.transform = `translate(${b}px, ${x}px) rotate(${C}deg) translateY(${w}px)`, this.show(), this.params.userDistanceItem?.update({
|
|
202
208
|
line: this.line,
|
|
203
209
|
polyline: this.line.getPolyline()
|
|
204
210
|
});
|
|
205
|
-
let
|
|
206
|
-
this.contentDom.innerText =
|
|
211
|
+
let T = this.getCurrentContent();
|
|
212
|
+
this.contentDom.innerText = T;
|
|
207
213
|
}
|
|
208
214
|
isOccluded(e, t) {
|
|
209
215
|
if (!e.model.loaded) return !1;
|
|
@@ -358,6 +364,9 @@ var Qe = class {
|
|
|
358
364
|
0
|
|
359
365
|
]), this.model);
|
|
360
366
|
}
|
|
367
|
+
setMagnifierEnabled(e) {
|
|
368
|
+
this.magnifier.setUserEnabled(e);
|
|
369
|
+
}
|
|
361
370
|
updateDistanceUI = () => {
|
|
362
371
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
363
372
|
};
|
|
@@ -730,6 +739,9 @@ var ft = () => !1, Q = class extends tt {
|
|
|
730
739
|
}
|
|
731
740
|
});
|
|
732
741
|
}
|
|
742
|
+
setMagnifierEnabled(e) {
|
|
743
|
+
super.setMagnifierEnabled(e), this.pointSelector.pointSelectorHelper.setMagnifierEnabled(e);
|
|
744
|
+
}
|
|
733
745
|
dispose() {
|
|
734
746
|
super.dispose(), this.model.areas.forEach((e) => {
|
|
735
747
|
(e.points.length < 2 || e.polygon.isBlank) && this.model.removeArea(e);
|
|
@@ -2343,7 +2355,7 @@ var _n = {
|
|
|
2343
2355
|
return this._magnifierEnabled;
|
|
2344
2356
|
}
|
|
2345
2357
|
setMagnifierEnabled(e) {
|
|
2346
|
-
this._magnifierEnabled = e, this.magnifier?.setUserEnabled(e);
|
|
2358
|
+
this._magnifierEnabled = e, this.magnifier?.setUserEnabled(e), this.controller?.setMagnifierEnabled(e);
|
|
2347
2359
|
}
|
|
2348
2360
|
allowMeasureType;
|
|
2349
2361
|
currentMeasureType;
|
|
@@ -2427,7 +2439,7 @@ var _n = {
|
|
|
2427
2439
|
};
|
|
2428
2440
|
if (!t[e]) throw Error("不存在的 Mode");
|
|
2429
2441
|
let n = this.createControllerParams();
|
|
2430
|
-
this.controller = this.createModeController(n, t[e]), e === "View" ? (this.useUIController?.hide(), this.useGuideController?.hide()) : (this.useUIController?.show(), this.useGuideController?.show()), this.hooks.emit("modeChange", e);
|
|
2442
|
+
this.controller = this.createModeController(n, t[e]), this.controller.setMagnifierEnabled(this.magnifierEnabled), e === "View" ? (this.useUIController?.hide(), this.useGuideController?.hide()) : (this.useUIController?.show(), this.useGuideController?.show()), this.hooks.emit("modeChange", e);
|
|
2431
2443
|
};
|
|
2432
2444
|
changeMeasureType = (e) => {
|
|
2433
2445
|
this.currentMeasureType = e, this.hooks.emit("measureTypeChange", e);
|
|
@@ -2511,4 +2523,4 @@ var _n = {
|
|
|
2511
2523
|
//#endregion
|
|
2512
2524
|
export { Q as a, vt as i, $ as n, X as o, wt as r, Y as s, xn as t };
|
|
2513
2525
|
|
|
2514
|
-
//# sourceMappingURL=Controller-
|
|
2526
|
+
//# sourceMappingURL=Controller-DzfK4n2o.js.map
|