@realsee/dnalogel 4.0.0-webgpu.21 → 4.0.0-webgpu.23
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 +10 -0
- package/dist/floorplan.js +1 -1
- package/dist/index.js +18 -18
- package/dist/internal/{BasePlugin-DIFrab7I.js → BasePlugin-CyIOsFYu.js} +2 -2
- package/dist/internal/{BasePlugin-DIFrab7I.js.map → BasePlugin-CyIOsFYu.js.map} +1 -1
- package/dist/internal/BasePluginWithData-C695ak0f.js +7 -0
- package/dist/internal/{BasePluginWithData-_KmsOMKJ.js.map → BasePluginWithData-C695ak0f.js.map} +1 -1
- package/dist/internal/{Controller-CEspa5H7.js → Controller-D_jIu_2f.js} +17 -4
- package/dist/internal/Controller-D_jIu_2f.js.map +1 -0
- package/dist/internal/{Controller-DilQFgsP.js → Controller-u_YXsLO9.js} +2 -2
- package/dist/internal/{Controller-DilQFgsP.js.map → Controller-u_YXsLO9.js.map} +1 -1
- package/dist/internal/{Controller-DSKeCecj.js → Controller-x1WFWGXM.js} +10 -3
- package/dist/internal/Controller-x1WFWGXM.js.map +1 -0
- package/dist/internal/{PointHelper-G9EgUMWo.js → PointHelper-B3FtEHMk.js} +20 -3
- package/dist/internal/PointHelper-B3FtEHMk.js.map +1 -0
- package/dist/internal/{Rectangle-BXRTg6C4.js → Rectangle-DnfNhPeK.js} +3 -3
- package/dist/internal/{Rectangle-BXRTg6C4.js.map → Rectangle-DnfNhPeK.js.map} +1 -1
- package/dist/internal/{Work-CqlAi5TB.js → Work-Dr2jlwDU.js} +4 -4
- package/dist/internal/{Work-CqlAi5TB.js.map → Work-Dr2jlwDU.js.map} +1 -1
- package/dist/internal/{area-maker-MXdY0BCO.js → area-maker-DEPIpfh3.js} +2 -2
- package/dist/internal/{area-maker-MXdY0BCO.js.map → area-maker-DEPIpfh3.js.map} +1 -1
- package/dist/internal/{controller-BqvrvWkv.js → controller-DZBHeaIZ.js} +4 -4
- package/dist/internal/{controller-BqvrvWkv.js.map → controller-DZBHeaIZ.js.map} +1 -1
- package/dist/internal/{cruise-4QGH14K7.js → cruise-C8sxx4Nf.js} +2 -2
- package/dist/internal/{cruise-4QGH14K7.js.map → cruise-C8sxx4Nf.js.map} +1 -1
- package/dist/internal/{current-pano-image-GNF9ezMR.js → current-pano-image-B2jQBJxM.js} +2 -2
- package/dist/internal/{current-pano-image-GNF9ezMR.js.map → current-pano-image-B2jQBJxM.js.map} +1 -1
- package/dist/internal/{edgeSnap-CH0HidZm.js → edgeSnap-D2bHbxER.js} +2 -2
- package/dist/internal/{edgeSnap-CH0HidZm.js.map → edgeSnap-D2bHbxER.js.map} +1 -1
- package/dist/internal/{floorplan-_Eeu4lJq.js → floorplan-BKdZKkST.js} +2 -2
- package/dist/internal/{floorplan-_Eeu4lJq.js.map → floorplan-BKdZKkST.js.map} +1 -1
- package/dist/internal/{measure-DIstq55p.js → measure-DIZgC-8z.js} +2 -2
- package/dist/internal/{measure-DIstq55p.js.map → measure-DIZgC-8z.js.map} +1 -1
- package/dist/internal/{measure-v2-Byp1mE5q.js → measure-v2--oBMVV4Y.js} +5 -5
- package/dist/internal/{measure-v2-Byp1mE5q.js.map → measure-v2--oBMVV4Y.js.map} +1 -1
- package/dist/internal/{model-maker-Br1TzsEG.js → model-maker-B5vc0AfD.js} +2 -2
- package/dist/internal/{model-maker-Br1TzsEG.js.map → model-maker-B5vc0AfD.js.map} +1 -1
- package/dist/internal/object3d-helper-D-5-lpwJ.js +7 -0
- package/dist/internal/{object3d-helper-B0IwQ5ty.js.map → object3d-helper-D-5-lpwJ.js.map} +1 -1
- package/dist/internal/{pano-compass-BGG8_QJW.js → pano-compass-Cjycki6z.js} +2 -2
- package/dist/internal/{pano-compass-BGG8_QJW.js.map → pano-compass-Cjycki6z.js.map} +1 -1
- package/dist/internal/{pano-door-label-Ds5hoRTw.js → pano-door-label-BIxAGYd7.js} +2 -2
- package/dist/internal/{pano-door-label-Ds5hoRTw.js.map → pano-door-label-BIxAGYd7.js.map} +1 -1
- package/dist/internal/{pano-measure-BaOCrl0m.js → pano-measure-B0ZsVugF.js} +2 -2
- package/dist/internal/{pano-measure-BaOCrl0m.js.map → pano-measure-B0ZsVugF.js.map} +1 -1
- package/dist/internal/{pano-measure-v2-BCiQAr4T.js → pano-measure-v2-CZ_dqqmY.js} +4 -4
- package/dist/internal/{pano-measure-v2-BCiQAr4T.js.map → pano-measure-v2-CZ_dqqmY.js.map} +1 -1
- package/dist/internal/{pano-tag-JSBa_Kj4.js → pano-tag-Co-wEnsN.js} +2 -2
- package/dist/internal/{pano-tag-JSBa_Kj4.js.map → pano-tag-Co-wEnsN.js.map} +1 -1
- package/dist/internal/{pano-video-CFsx8KlX.js → pano-video-hRsGiN-d.js} +2 -2
- package/dist/internal/{pano-video-CFsx8KlX.js.map → pano-video-hRsGiN-d.js.map} +1 -1
- package/dist/internal/{pipeline-B1SJlAcG.js → pipeline-toLCkwqv.js} +2 -2
- package/dist/internal/{pipeline-B1SJlAcG.js.map → pipeline-toLCkwqv.js.map} +1 -1
- package/dist/internal/{sculpt-CaPAjReh.js → sculpt-BGYkaTC3.js} +3 -3
- package/dist/internal/{sculpt-CaPAjReh.js.map → sculpt-BGYkaTC3.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/measure-v2.js +2 -2
- package/dist/plugins/measure.js +2 -2
- 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/MeasurePlugin/Controller.d.ts +8 -0
- package/dist/types/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/types/PanoMeasurePlugin/Controller/EditController.d.ts +1 -0
- package/dist/types/PanoMeasurePlugin/Controller/index.d.ts +8 -0
- package/dist/types/shared-utils/three/Magnifier.d.ts +11 -0
- package/dist/types/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +3 -0
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/internal/BasePluginWithData-_KmsOMKJ.js +0 -7
- package/dist/internal/Controller-CEspa5H7.js.map +0 -1
- package/dist/internal/Controller-DSKeCecj.js.map +0 -1
- package/dist/internal/PointHelper-G9EgUMWo.js.map +0 -1
- package/dist/internal/object3d-helper-B0IwQ5ty.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 4.0.0-webgpu.23
|
|
2
|
+
|
|
3
|
+
- 修复全景测量新建标尺时放大镜开关控制错误实例的问题,开关立即作用于实际选点器。
|
|
4
|
+
- 创建模式控制器、切换模式和重新打开测量时沿用用户选择;关闭放大镜不影响选点和测量保存。
|
|
5
|
+
|
|
6
|
+
## 4.0.0-webgpu.22
|
|
7
|
+
|
|
8
|
+
- 测量与全景测量插件新增 `setMagnifierEnabled` 和 `magnifierEnabled`,默认开启。
|
|
9
|
+
- 用户关闭放大镜后,选点器显示、隐藏及插件重建继续保留选择,不影响选点、吸附和双击测量。
|
|
10
|
+
|
|
1
11
|
# CHANGELOG
|
|
2
12
|
|
|
3
13
|
## 4.0.0-webgpu.21
|
package/dist/floorplan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { l as FLOOR_PLAN_ATTACHED_TO, t as FLOOR_TYPE_MAP, i as FloorplanGuidePlugin, s as MapviewFloorplanPlugin, c as ModelFloorplanPlugin, a as PanoFloorplanRadarPlugin, n as ROOM_FETILE_TYPE_MAP, r as ROOM_TYPE_MAP, o as TopviewFloorplanPlugin } from "./internal/floorplan-
|
|
1
|
+
export { l as FLOOR_PLAN_ATTACHED_TO, t as FLOOR_TYPE_MAP, i as FloorplanGuidePlugin, s as MapviewFloorplanPlugin, c as ModelFloorplanPlugin, a as PanoFloorplanRadarPlugin, n as ROOM_FETILE_TYPE_MAP, r as ROOM_TYPE_MAP, o as TopviewFloorplanPlugin } from "./internal/floorplan-BKdZKkST.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./internal/rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { r as t, t as n } from "./internal/fire-scene-C2FTu0Ka.js";
|
|
3
|
-
import { g as r, l as i, p as a, r as o, t as s } from "./internal/PointHelper-
|
|
3
|
+
import { g as r, l as i, p as a, r as o, t as s } from "./internal/PointHelper-B3FtEHMk.js";
|
|
4
4
|
import { _ as c, a as l, i as u, o as ee, s as te, t as ne, v as re } from "./internal/generatePolygonGeometry-DEr9kX3D.js";
|
|
5
5
|
import { t as ie } from "./internal/getFiveModel-CZVrrU1D.js";
|
|
6
6
|
import { n as ae, t as oe } from "./internal/fiveModelLoad-BUIBYxzp.js";
|
|
@@ -15,41 +15,41 @@ import { t as I } from "./internal/tween.esm-CJDtohfp.js";
|
|
|
15
15
|
import { n as L, t as R } from "./internal/BetterTween-DmptqE8m.js";
|
|
16
16
|
import { i as z, n as B, r as V, t as H } from "./internal/animationFrame-CacKXN8l.js";
|
|
17
17
|
import { t as U } from "./internal/equal-BiDAilPV.js";
|
|
18
|
-
import { n as W, r as G, t as K } from "./internal/area-maker-
|
|
18
|
+
import { n as W, r as G, t as K } from "./internal/area-maker-DEPIpfh3.js";
|
|
19
19
|
import { a as q, c as se, i as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./internal/boundingBox-CIqXgNXW.js";
|
|
20
20
|
import { t as J } from "./internal/CSS3DRenderPlugin-BuQ7tgJe.js";
|
|
21
21
|
import { t as me } from "./internal/lookObject-DuRab5wf.js";
|
|
22
22
|
import { t as he } from "./internal/camera-movement-C1pwfMk_.js";
|
|
23
|
-
import { r as ge } from "./internal/Work-
|
|
24
|
-
import { t as _e } from "./internal/object3d-helper-
|
|
25
|
-
import { r as ve } from "./internal/sculpt-
|
|
26
|
-
import { t as ye } from "./internal/pano-tag-
|
|
27
|
-
import { n as be, t as xe } from "./internal/cruise-
|
|
28
|
-
import { t as Se } from "./internal/current-pano-image-
|
|
23
|
+
import { r as ge } from "./internal/Work-Dr2jlwDU.js";
|
|
24
|
+
import { t as _e } from "./internal/object3d-helper-D-5-lpwJ.js";
|
|
25
|
+
import { r as ve } from "./internal/sculpt-BGYkaTC3.js";
|
|
26
|
+
import { t as ye } from "./internal/pano-tag-Co-wEnsN.js";
|
|
27
|
+
import { n as be, t as xe } from "./internal/cruise-C8sxx4Nf.js";
|
|
28
|
+
import { t as Se } from "./internal/current-pano-image-B2jQBJxM.js";
|
|
29
29
|
import { t as Ce } from "./internal/digital-performance-v2-Cspjjn51.js";
|
|
30
30
|
import { t as we } from "./internal/digital-performance-B4DdvGbx.js";
|
|
31
31
|
import { t as Te } from "./internal/item-label-DXeKI9sZ.js";
|
|
32
|
-
import { t as Ee } from "./internal/measure-
|
|
32
|
+
import { t as Ee } from "./internal/measure-DIZgC-8z.js";
|
|
33
33
|
import { t as De } from "./internal/model-chassis-compass-rfKL38y2.js";
|
|
34
34
|
import { t as Oe } from "./internal/model-entry-door-guide-DnGTLY2s.js";
|
|
35
35
|
import { t as ke } from "./internal/model-item-label-BwJ5Dgnp.js";
|
|
36
|
-
import { t as Ae } from "./internal/model-maker-
|
|
36
|
+
import { t as Ae } from "./internal/model-maker-B5vc0AfD.js";
|
|
37
37
|
import { t as je } from "./internal/model-room-label-5NtOduW1.js";
|
|
38
38
|
import { t as Me } from "./internal/model-tv-video-E71WR84A.js";
|
|
39
39
|
import { t as Ne } from "./internal/model-view-DSRXOhPg.js";
|
|
40
|
-
import { t as Pe } from "./internal/pano-compass-
|
|
40
|
+
import { t as Pe } from "./internal/pano-compass-Cjycki6z.js";
|
|
41
41
|
import { t as Fe } from "./internal/pano-cursor-raycaster-DydRx7wS.js";
|
|
42
|
-
import { t as Ie } from "./internal/pano-door-label-
|
|
43
|
-
import { t as Le } from "./internal/pano-measure-
|
|
42
|
+
import { t as Ie } from "./internal/pano-door-label-BIxAGYd7.js";
|
|
43
|
+
import { t as Le } from "./internal/pano-measure-B0ZsVugF.js";
|
|
44
44
|
import { t as Re } from "./internal/pano-ruler-pro-D9yTbHJz.js";
|
|
45
45
|
import { t as ze } from "./internal/pano-ruler-BW78w4lv.js";
|
|
46
46
|
import { t as Be } from "./internal/pano-spatial-tag-gwN_WDLJ.js";
|
|
47
|
-
import { t as Ve } from "./internal/pano-video-
|
|
48
|
-
import { t as He } from "./internal/pipeline-
|
|
47
|
+
import { t as Ve } from "./internal/pano-video-hRsGiN-d.js";
|
|
48
|
+
import { t as He } from "./internal/pipeline-toLCkwqv.js";
|
|
49
49
|
import { t as Ue } from "./internal/components-Ed73WMB0.js";
|
|
50
|
-
import { a as We, c as Ge, i as Y, o as Ke, s as qe } from "./internal/floorplan-
|
|
51
|
-
import { t as Je } from "./internal/measure-v2
|
|
52
|
-
import { t as Ye } from "./internal/pano-measure-v2-
|
|
50
|
+
import { a as We, c as Ge, i as Y, o as Ke, s as qe } from "./internal/floorplan-BKdZKkST.js";
|
|
51
|
+
import { t as Je } from "./internal/measure-v2--oBMVV4Y.js";
|
|
52
|
+
import { t as Ye } from "./internal/pano-measure-v2-CZ_dqqmY.js";
|
|
53
53
|
import * as X from "three/webgpu";
|
|
54
54
|
//#region src/shared-utils/three/getCoords.ts
|
|
55
55
|
function Xe(e, t) {
|
|
@@ -3,7 +3,7 @@ import { t } from "./FiveUtil-DyTBRHpM.js";
|
|
|
3
3
|
import { n } from "./defaultUrls-CfMtGzqM.js";
|
|
4
4
|
//#region src/base/BasePlugin.ts
|
|
5
5
|
var r = class {
|
|
6
|
-
VERSION = "4.0.0-webgpu.
|
|
6
|
+
VERSION = "4.0.0-webgpu.23";
|
|
7
7
|
NAME;
|
|
8
8
|
five;
|
|
9
9
|
workUtil;
|
|
@@ -30,4 +30,4 @@ var r = class {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { r as t };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=BasePlugin-
|
|
33
|
+
//# sourceMappingURL=BasePlugin-CyIOsFYu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePlugin-
|
|
1
|
+
{"version":3,"file":"BasePlugin-CyIOsFYu.js","names":["Subscribe","Controller","workCode","DEFAULT_STATIC_PREFIX","five","FiveUtil","config"],"sources":["../../src/base/BasePlugin.ts"],"sourcesContent":["import type { PlaybackManager } from '../shared-utils/playback'\nimport type { Five } from '@realsee/five-webgpu'\nimport { Subscribe } from '../shared-utils/Subscribe'\nimport { DEFAULT_STATIC_PREFIX } from '../shared-utils'\nimport type { WorkUtil } from '../shared-utils/Utils/WorkUtil'\nimport { FiveUtil } from '../shared-utils/Utils/FiveUtil'\n\n/**\n * 基本属性字段\n */\ninterface State {\n /**\n * 插件是否启用\n */\n enabled: boolean\n\n /**\n * 插件UI是否展示\n */\n visible?: boolean\n\n /**\n * 插件的配置项\n */\n config?: unknown\n}\n\ninterface BaseOptions {\n /** 是否是用户行为 */\n userAction?: boolean\n [key: string]: unknown\n}\n\ninterface Config {\n mediaManager?: PlaybackManager\n /** 静态资源前缀 */\n staticPrefix?: string\n\n /** 国际化转换函数 */\n i18n?: (key: string) => string\n}\n\n/**\n * 插件基本事件\n */\n\ntype EventMap<PluginState> = {\n /**\n * 插件被销毁\n */\n dispose: () => void\n\n /**\n * 插件状态变化\n * @param params.state 最新的State\n * @param params.prevState 上一个State\n * @param params.userAction 是否是用户触发\n */\n stateChange: (params: { state: PluginState; prevState?: PluginState; userAction: boolean }) => void\n}\n\ndeclare const __DNALOGEL_VERSION__: string\n\n/**\n * plugin 的基本控制器\n */\nabstract class Controller<PluginState extends State = State, PluginEventMap extends EventMap<PluginState> = EventMap<PluginState>> {\n /**\n * @realsee/dnalogel 版本号\n */\n public readonly VERSION: string = __DNALOGEL_VERSION__\n\n public NAME?: string\n\n public five: Five\n\n public workUtil: WorkUtil\n\n public fiveUtil: FiveUtil\n\n public set workCode(workCode: string) {\n this.workUtil.workCode = workCode\n this.onWorkCodeChange()\n }\n\n public get workCode() {\n return this.workUtil.workCode\n }\n\n /**\n * @description: 插件事件钩子\n */\n public hooks: Subscribe<PluginEventMap> = new Subscribe()\n\n public readonly staticPrefix: string = DEFAULT_STATIC_PREFIX\n\n /**\n * 当前状态\n * @description\n * ```text\n * 可以通过 plugin.state 和 plugin.setState 来获取和设置。\n * 通过 state 设置后,plugin 会通过合适的动画运动来达到设置的效果。\n * 来迎合一些通过数据驱动的场景。\n * ```\n */\n public abstract state: PluginState\n\n public constructor(five: Five, config?: Config) {\n this.five = five\n this.fiveUtil = new FiveUtil(five)\n this.workUtil = this.fiveUtil.workUtil\n if (config?.staticPrefix) this.staticPrefix = config.staticPrefix\n }\n\n public updateFive(five: Five) {\n this.five = five\n this.fiveUtil.five = five\n this.workUtil.five = five\n }\n\n /**\n * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态\n */\n public getCurrentState() {\n return this.state\n }\n\n /**\n * 插件自身DOM添加到父容器\n * @param wrapper\n */\n public appendTo?(wrapper: Element): void\n\n /**\n * 展示UI\n */\n public show?(options?: BaseOptions): Promise<void> | void\n\n /**\n * 隐藏UI\n */\n public hide?(options?: BaseOptions): Promise<void> | void\n\n /**\n * 设置state\n * @param state 插件的目标状态\n * @param options 配置项\n */\n public setState?(state: Partial<PluginState>, options?: BaseOptions): void\n\n protected onWorkCodeChange() {}\n\n /**\n * 启用插件,让插件能够响应交互\n */\n public abstract enable(options?: BaseOptions): void\n\n /**\n * 禁用插件,让插件停止响应交互\n */\n public abstract disable(options?: BaseOptions): void\n\n /**\n * 插件进行销毁\n */\n public abstract dispose(): void\n}\n\nexport type { State, Config, EventMap, BaseOptions }\nexport { Controller }\n"],"mappings":";;;;AAkEA,IAAeC,IAAf,MAAmI;CAIjI,UAAA;CAEA;CAEA;CAEA;CAEA;CAEA,IAAW,SAAS,GAAkB;EAEpC,AADA,KAAK,SAAS,WAAWC,GACzB,KAAK,iBAAiB;CACxB;CAEA,IAAW,WAAW;EACpB,OAAO,KAAK,SAAS;CACvB;CAKA,QAA0C,IAAIF,EAAU;CAExD,eAAuCG;CAavC,YAAmB,GAAY,GAAiB;EAI9C,AAHA,KAAK,OAAOC,GACZ,KAAK,WAAW,IAAIC,EAASD,CAAI,GACjC,KAAK,WAAW,KAAK,SAAS,UAC1BE,GAAQ,iBAAc,KAAK,eAAeA,EAAO;CACvD;CAEA,WAAkB,GAAY;EAG5B,AAFA,KAAK,OAAOF,GACZ,KAAK,SAAS,OAAOA,GACrB,KAAK,SAAS,OAAOA;CACvB;CAKA,kBAAyB;EACvB,OAAO,KAAK;CACd;CAyBA,mBAA6B,CAAC;AAgBhC"}
|
package/dist/internal/{BasePluginWithData-_KmsOMKJ.js.map → BasePluginWithData-C695ak0f.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePluginWithData-
|
|
1
|
+
{"version":3,"file":"BasePluginWithData-C695ak0f.js","names":["BasePlugin.Controller","Controller$1","Controller"],"sources":["../../src/base/BasePluginWithData.ts"],"sourcesContent":["import * as BasePlugin from './BasePlugin'\n\ntype State = BasePlugin.State\ntype Config = BasePlugin.Config\n\ninterface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginState> {\n /** 数据变更 */\n dataChange: (data: PluginData, prevData?: PluginData) => void\n /** 数据加载完成 */\n dataLoaded: (data: PluginData) => void\n}\n\nabstract class Controller<\n PluginState extends State,\n PluginEventMap extends EventMap<PluginState, PluginData>,\n PluginServerData,\n PluginData,\n> extends BasePlugin.Controller<PluginState, PluginEventMap> {\n protected abstract data?: PluginData\n\n /**\n * 加载插件依赖数据\n * @param serverData 插件数据\n * @param state 插件 State\n */\n public abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>\n}\n\nexport type { State, EventMap, Config }\nexport type { BaseOptions } from './BasePlugin'\nexport { Controller }\n"],"mappings":";;AAYA,IAAeE,IAAf,cAKUF,EAAmD,CAS7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { t } from "./Subscribe-DLlAl88n.js";
|
|
3
|
-
import { c as n, g as r, n as i, r as a } from "./PointHelper-
|
|
3
|
+
import { c as n, g as r, n as i, r as a } from "./PointHelper-B3FtEHMk.js";
|
|
4
4
|
import { a as o, g as s, n as c, t as l } from "./generatePolygonGeometry-DEr9kX3D.js";
|
|
5
5
|
import { t as u } from "./getFiveModel-CZVrrU1D.js";
|
|
6
6
|
import { n as d } from "./util-vGeVT4oo.js";
|
|
@@ -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-CyIOsFYu.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";
|
|
@@ -358,6 +358,9 @@ var Qe = class {
|
|
|
358
358
|
0
|
|
359
359
|
]), this.model);
|
|
360
360
|
}
|
|
361
|
+
setMagnifierEnabled(e) {
|
|
362
|
+
this.magnifier.setUserEnabled(e);
|
|
363
|
+
}
|
|
361
364
|
updateDistanceUI = () => {
|
|
362
365
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
363
366
|
};
|
|
@@ -730,6 +733,9 @@ var ft = () => !1, Q = class extends tt {
|
|
|
730
733
|
}
|
|
731
734
|
});
|
|
732
735
|
}
|
|
736
|
+
setMagnifierEnabled(e) {
|
|
737
|
+
super.setMagnifierEnabled(e), this.pointSelector.pointSelectorHelper.setMagnifierEnabled(e);
|
|
738
|
+
}
|
|
733
739
|
dispose() {
|
|
734
740
|
super.dispose(), this.model.areas.forEach((e) => {
|
|
735
741
|
(e.points.length < 2 || e.polygon.isBlank) && this.model.removeArea(e);
|
|
@@ -2338,6 +2344,13 @@ var _n = {
|
|
|
2338
2344
|
hasOpen = !1;
|
|
2339
2345
|
magnifier;
|
|
2340
2346
|
controller = null;
|
|
2347
|
+
_magnifierEnabled = !0;
|
|
2348
|
+
get magnifierEnabled() {
|
|
2349
|
+
return this._magnifierEnabled;
|
|
2350
|
+
}
|
|
2351
|
+
setMagnifierEnabled(e) {
|
|
2352
|
+
this._magnifierEnabled = e, this.magnifier?.setUserEnabled(e), this.controller?.setMagnifierEnabled(e);
|
|
2353
|
+
}
|
|
2341
2354
|
allowMeasureType;
|
|
2342
2355
|
currentMeasureType;
|
|
2343
2356
|
model;
|
|
@@ -2420,7 +2433,7 @@ var _n = {
|
|
|
2420
2433
|
};
|
|
2421
2434
|
if (!t[e]) throw Error("不存在的 Mode");
|
|
2422
2435
|
let n = this.createControllerParams();
|
|
2423
|
-
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);
|
|
2436
|
+
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);
|
|
2424
2437
|
};
|
|
2425
2438
|
changeMeasureType = (e) => {
|
|
2426
2439
|
this.currentMeasureType = e, this.hooks.emit("measureTypeChange", e);
|
|
@@ -2504,4 +2517,4 @@ var _n = {
|
|
|
2504
2517
|
//#endregion
|
|
2505
2518
|
export { Q as a, vt as i, $ as n, X as o, wt as r, Y as s, xn as t };
|
|
2506
2519
|
|
|
2507
|
-
//# sourceMappingURL=Controller-
|
|
2520
|
+
//# sourceMappingURL=Controller-D_jIu_2f.js.map
|