@realsee/dnalogel 3.10.2 → 3.10.3
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/dist/CruisePlugin/BaseController.d.ts +6 -0
- package/dist/CruisePlugin/Work.d.ts +6 -2
- package/dist/GuideLinePlugin/Controller.d.ts +1 -1
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +2339 -2339
- package/dist/index.umd.js +47 -47
- package/libs/CruisePlugin/BaseController.d.ts +6 -0
- package/libs/CruisePlugin/BaseController.js +52 -51
- package/libs/CruisePlugin/Work.d.ts +6 -2
- package/libs/CruisePlugin/Work.js +81 -82
- package/libs/GuideLinePlugin/Controller.d.ts +1 -1
- package/libs/GuideLinePlugin/Controller.js +13 -13
- package/libs/GuideLinePlugin/index.js +11 -11
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +4 -4
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import type { EventMap, PluginData, PluginServerData, PluginState } from './typi
|
|
|
4
4
|
import type * as PluginType from './typing';
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
|
-
import CruisePluginController from '../CruisePlugin/
|
|
7
|
+
import CruisePluginController from '../CruisePlugin/Work';
|
|
8
8
|
export declare const pluginFlag: (name: string) => string;
|
|
9
9
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
10
10
|
readonly name = "GuideLinePlugin";
|
|
@@ -26,10 +26,10 @@ var u = (s, o, t) => new Promise((i, a) => {
|
|
|
26
26
|
}, r = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(m, e);
|
|
27
27
|
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
29
|
+
import { Controller as k } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as x } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as N } from "./GuideLineItem/index.js";
|
|
32
|
+
import $ from "../CruisePlugin/Work.js";
|
|
33
33
|
import { objectAssignDeepExports as A } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
34
|
import * as G from "three";
|
|
35
35
|
import { waitFiveLoaded as P } from "../shared-utils/five/fiveLoaded.js";
|
|
@@ -190,19 +190,19 @@ import "./utils/index.js";
|
|
|
190
190
|
import "../shared-utils/to.js";
|
|
191
191
|
import "../shared-utils/five/changeMode.js";
|
|
192
192
|
import "../shared-utils/nearlyEqual.js";
|
|
193
|
-
import "../CruisePlugin/
|
|
193
|
+
import "../CruisePlugin/Move.js";
|
|
194
|
+
import "../CruisePlugin/BaseController.js";
|
|
195
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
196
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
197
|
+
import "../shared-utils/formatRad.js";
|
|
194
198
|
import "./index.js";
|
|
195
199
|
import "./Controller.js";
|
|
196
200
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
197
201
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
198
202
|
import "../CruisePlugin/utils/safeCall.js";
|
|
199
203
|
import "../CruisePlugin/utils/sleep.js";
|
|
200
|
-
import "../shared-utils/vectorToCoordinate.js";
|
|
201
|
-
import "../shared-utils/formatRad.js";
|
|
202
|
-
import "../CruisePlugin/BaseController.js";
|
|
203
|
-
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
204
204
|
const b = "GuideLinePlugin", g = `${b}`, Yr = (s) => `${g}--${s}`;
|
|
205
|
-
class Zr extends
|
|
205
|
+
class Zr extends k {
|
|
206
206
|
constructor(t, i) {
|
|
207
207
|
super(t, i);
|
|
208
208
|
h(this, "name", b);
|
|
@@ -221,7 +221,7 @@ class Zr extends x {
|
|
|
221
221
|
h(this, "disposedErrorLog", () => {
|
|
222
222
|
console.error(`${g} is disposed`);
|
|
223
223
|
});
|
|
224
|
-
this._config = i != null ? i : {}, this.cruisePlugin = new
|
|
224
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new $(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
225
225
|
}
|
|
226
226
|
get config() {
|
|
227
227
|
return this._config;
|
|
@@ -286,13 +286,13 @@ class Zr extends x {
|
|
|
286
286
|
if (this.disposed)
|
|
287
287
|
return this.disposedErrorLog();
|
|
288
288
|
const a = f({}, this.state);
|
|
289
|
-
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction),
|
|
289
|
+
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), x(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
|
|
290
290
|
}
|
|
291
291
|
/** 添加一个 GuideLineItem */
|
|
292
292
|
addGuideLineItem(t) {
|
|
293
293
|
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
294
294
|
a && this.removeGuideLineItem(a);
|
|
295
|
-
const m = new
|
|
295
|
+
const m = new N({ five: this.five, id: i, plugin: this });
|
|
296
296
|
return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
|
|
297
297
|
}
|
|
298
298
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -26,14 +26,18 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
26
26
|
import "../shared-utils/url/absoluteUrl.js";
|
|
27
27
|
import "../shared-utils/equal.js";
|
|
28
28
|
import "../shared-utils/isTruelyObject.js";
|
|
29
|
-
import "../CruisePlugin/
|
|
30
|
-
import "
|
|
31
|
-
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
import "../CruisePlugin/Work.js";
|
|
30
|
+
import "./index.js";
|
|
32
31
|
import "../shared-utils/uuid.js";
|
|
33
|
-
import "../CruisePlugin/utils/
|
|
32
|
+
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
33
|
+
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
34
|
+
import "../CruisePlugin/utils/safeCall.js";
|
|
35
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
36
|
+
import "../shared-utils/five/fiveLoaded.js";
|
|
34
37
|
import "../shared-utils/vectorToCoordinate.js";
|
|
35
38
|
import "../shared-utils/formatRad.js";
|
|
36
|
-
import "../
|
|
39
|
+
import "../CruisePlugin/BaseController.js";
|
|
40
|
+
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
37
41
|
import "../shared-utils/log.js";
|
|
38
42
|
import "./utils/createLineGeometry.js";
|
|
39
43
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -167,12 +171,8 @@ import "./utils/index.js";
|
|
|
167
171
|
import "../shared-utils/to.js";
|
|
168
172
|
import "../shared-utils/five/changeMode.js";
|
|
169
173
|
import "../shared-utils/nearlyEqual.js";
|
|
170
|
-
import "../CruisePlugin/
|
|
171
|
-
import "
|
|
172
|
-
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
173
|
-
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
174
|
-
import "../CruisePlugin/utils/safeCall.js";
|
|
175
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
174
|
+
import "../CruisePlugin/Move.js";
|
|
175
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
176
176
|
const st = (i, o) => new t(i, o);
|
|
177
177
|
export {
|
|
178
178
|
Mt as GuideLineItem,
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -361,14 +361,14 @@ import "@realsee/five/gltf-loader";
|
|
|
361
361
|
import "./shared-utils/five/fiveModelLoad.js";
|
|
362
362
|
import "./GuideLinePlugin/Components/Tag.js";
|
|
363
363
|
import "./GuideLinePlugin/utils/index.js";
|
|
364
|
+
import "./CruisePlugin/BaseController.js";
|
|
365
|
+
import "./CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
366
|
+
import "./shared-utils/vectorToCoordinate.js";
|
|
367
|
+
import "./shared-utils/formatRad.js";
|
|
364
368
|
import "./CruisePlugin/utils/coordinatesAngle.js";
|
|
365
369
|
import "./CruisePlugin/utils/coordinatesToVector.js";
|
|
366
370
|
import "./CruisePlugin/utils/safeCall.js";
|
|
367
371
|
import "./CruisePlugin/utils/sleep.js";
|
|
368
|
-
import "./shared-utils/vectorToCoordinate.js";
|
|
369
|
-
import "./shared-utils/formatRad.js";
|
|
370
|
-
import "./CruisePlugin/BaseController.js";
|
|
371
|
-
import "./CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
372
372
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
373
373
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
374
374
|
import "./shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.10.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.10.3",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.10.
|
|
10
|
+
"version": "3.10.3",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|