@realsee/dnalogel 4.0.0-webgpu.18 → 4.0.0-webgpu.20
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 +19 -19
- package/dist/internal/{BasePlugin-Cr_atQUC.js → BasePlugin-hxM1EHtV.js} +2 -2
- package/dist/internal/{BasePlugin-Cr_atQUC.js.map → BasePlugin-hxM1EHtV.js.map} +1 -1
- package/dist/internal/BasePluginWithData-BS2O9hNu.js +7 -0
- package/dist/internal/{BasePluginWithData-CIQpqYGe.js.map → BasePluginWithData-BS2O9hNu.js.map} +1 -1
- package/dist/internal/{Controller-Cq-mYkzT.js → Controller-CDLmWyXz.js} +3 -3
- package/dist/internal/{Controller-Cq-mYkzT.js.map → Controller-CDLmWyXz.js.map} +1 -1
- package/dist/internal/{Controller-BDT5_ZNe.js → Controller-CxAUW5kD.js} +2 -2
- package/dist/internal/{Controller-BDT5_ZNe.js.map → Controller-CxAUW5kD.js.map} +1 -1
- package/dist/internal/{Controller-5BvatEWD.js → Controller-DSKeCecj.js} +171 -154
- package/dist/internal/Controller-DSKeCecj.js.map +1 -0
- package/dist/internal/PointHelper-G9EgUMWo.js +1052 -0
- package/dist/internal/PointHelper-G9EgUMWo.js.map +1 -0
- package/dist/internal/{Rectangle-Z2T_h74M.js → Rectangle-HB8jF_bX.js} +3 -3
- package/dist/internal/{Rectangle-Z2T_h74M.js.map → Rectangle-HB8jF_bX.js.map} +1 -1
- package/dist/internal/{Work-PKaUMpXd.js → Work-6uuml2Ft.js} +4 -4
- package/dist/internal/{Work-PKaUMpXd.js.map → Work-6uuml2Ft.js.map} +1 -1
- package/dist/internal/{area-maker-BTGqxG6D.js → area-maker-D2ZIYsTG.js} +2 -2
- package/dist/internal/{area-maker-BTGqxG6D.js.map → area-maker-D2ZIYsTG.js.map} +1 -1
- package/dist/internal/{controller-B0hqJtoB.js → controller-DjCi781H.js} +4 -4
- package/dist/internal/{controller-B0hqJtoB.js.map → controller-DjCi781H.js.map} +1 -1
- package/dist/internal/{cruise-BkSbiLjd.js → cruise-DWxq9GTd.js} +2 -2
- package/dist/internal/{cruise-BkSbiLjd.js.map → cruise-DWxq9GTd.js.map} +1 -1
- package/dist/internal/{current-pano-image-DqyUFIP6.js → current-pano-image-DPLm0-o2.js} +2 -2
- package/dist/internal/{current-pano-image-DqyUFIP6.js.map → current-pano-image-DPLm0-o2.js.map} +1 -1
- package/dist/internal/{edgeSnap-8fdFCcXB.js → edgeSnap-CH0HidZm.js} +206 -83
- package/dist/internal/edgeSnap-CH0HidZm.js.map +1 -0
- package/dist/internal/{floorplan-Dkp7omYn.js → floorplan-B6Y-8xjB.js} +2 -2
- package/dist/internal/{floorplan-Dkp7omYn.js.map → floorplan-B6Y-8xjB.js.map} +1 -1
- package/dist/internal/{measure-KVSCjRnS.js → measure-DIstq55p.js} +2 -2
- package/dist/internal/{measure-KVSCjRnS.js.map → measure-DIstq55p.js.map} +1 -1
- package/dist/internal/measure-v2-Byp1mE5q.js +215 -0
- package/dist/internal/measure-v2-Byp1mE5q.js.map +1 -0
- package/dist/internal/{model-maker-L5eqUgkU.js → model-maker-Cea52AmN.js} +2 -2
- package/dist/internal/{model-maker-L5eqUgkU.js.map → model-maker-Cea52AmN.js.map} +1 -1
- package/dist/internal/{model-view-BWUU0-uq.js → model-view-DSRXOhPg.js} +12 -2
- package/dist/internal/model-view-DSRXOhPg.js.map +1 -0
- package/dist/internal/object3d-helper-JrdReT4Y.js +7 -0
- package/dist/internal/{object3d-helper-CUhRRdCQ.js.map → object3d-helper-JrdReT4Y.js.map} +1 -1
- package/dist/internal/{pano-compass-dmcsnFDQ.js → pano-compass-DENjS-F-.js} +2 -2
- package/dist/internal/{pano-compass-dmcsnFDQ.js.map → pano-compass-DENjS-F-.js.map} +1 -1
- package/dist/internal/{pano-door-label-C0sd66vf.js → pano-door-label-DFcBreFx.js} +2 -2
- package/dist/internal/{pano-door-label-C0sd66vf.js.map → pano-door-label-DFcBreFx.js.map} +1 -1
- package/dist/internal/{pano-measure-NbB7-uVE.js → pano-measure-bIqtdQ8N.js} +2 -2
- package/dist/internal/{pano-measure-NbB7-uVE.js.map → pano-measure-bIqtdQ8N.js.map} +1 -1
- package/dist/internal/{pano-measure-v2-CRPvPs0e.js → pano-measure-v2-BRr9Jses.js} +4 -4
- package/dist/internal/{pano-measure-v2-CRPvPs0e.js.map → pano-measure-v2-BRr9Jses.js.map} +1 -1
- package/dist/internal/{pano-tag-j8ZPJDDK.js → pano-tag-BI_eOX_D.js} +2 -2
- package/dist/internal/{pano-tag-j8ZPJDDK.js.map → pano-tag-BI_eOX_D.js.map} +1 -1
- package/dist/internal/{pano-video-Dcspq4j1.js → pano-video-D0dQTeX6.js} +2 -2
- package/dist/internal/{pano-video-Dcspq4j1.js.map → pano-video-D0dQTeX6.js.map} +1 -1
- package/dist/internal/{pipeline-CD2YkN5U.js → pipeline-CyleoezT.js} +2 -2
- package/dist/internal/{pipeline-CD2YkN5U.js.map → pipeline-CyleoezT.js.map} +1 -1
- package/dist/internal/{sculpt-CbEBEh9F.js → sculpt-BGx4Dudb.js} +3 -3
- package/dist/internal/{sculpt-CbEBEh9F.js.map → sculpt-BGx4Dudb.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/model-view.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 +7 -0
- package/dist/types/MeasurePlugin/utils/MeasureMesh.d.ts +5 -0
- package/dist/types/MeasurePluginV2/Controller.d.ts +9 -0
- package/dist/types/MeasurePluginV2/Magnifier.d.ts +33 -0
- package/dist/types/MeasurePluginV2/PointOverlay.d.ts +5 -0
- package/dist/types/MeasurePluginV2/closeupView.d.ts +69 -0
- package/dist/types/MeasurePluginV2/normalMeasure.d.ts +116 -0
- package/dist/types/shared-utils/three/Magnifier.d.ts +55 -0
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/internal/BasePluginWithData-CIQpqYGe.js +0 -7
- package/dist/internal/Controller-5BvatEWD.js.map +0 -1
- package/dist/internal/PointHelper-grrf8vu1.js +0 -953
- package/dist/internal/PointHelper-grrf8vu1.js.map +0 -1
- package/dist/internal/edgeSnap-8fdFCcXB.js.map +0 -1
- package/dist/internal/measure-v2-DqjBlSeF.js +0 -83
- package/dist/internal/measure-v2-DqjBlSeF.js.map +0 -1
- package/dist/internal/model-view-BWUU0-uq.js.map +0 -1
- package/dist/internal/object3d-helper-CUhRRdCQ.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 4.0.0-webgpu.20
|
|
4
|
+
|
|
5
|
+
- 修复小地图三维模型未应用人工隐藏标记,导致编辑后隐藏的区域仍然显示的问题。
|
|
6
|
+
- 为独立加载的 PBM 材质补齐隐藏裁切参数和模型包围盒,保留原有顶部开盖行为。
|
|
7
|
+
|
|
8
|
+
## 4.0.0-webgpu.19
|
|
9
|
+
|
|
10
|
+
- 放大镜新增近景视角、近景旋转取景与双击快速测量。
|
|
11
|
+
- 放大镜使用自适应取景窗口,改善远点与斜向表面的预览稳定性。
|
|
12
|
+
|
|
3
13
|
## 4.0.0-webgpu.18
|
|
4
14
|
|
|
5
15
|
- 全景标尺按房间 ID 计算地面和屋顶高度,避免多个同名 `OTHER` 房间共享同一高度。
|
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-B6Y-8xjB.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-G9EgUMWo.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-D2ZIYsTG.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-6uuml2Ft.js";
|
|
24
|
+
import { t as _e } from "./internal/object3d-helper-JrdReT4Y.js";
|
|
25
|
+
import { r as ve } from "./internal/sculpt-BGx4Dudb.js";
|
|
26
|
+
import { t as ye } from "./internal/pano-tag-BI_eOX_D.js";
|
|
27
|
+
import { n as be, t as xe } from "./internal/cruise-DWxq9GTd.js";
|
|
28
|
+
import { t as Se } from "./internal/current-pano-image-DPLm0-o2.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-DIstq55p.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-Cea52AmN.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
|
-
import { t as Ne } from "./internal/model-view-
|
|
40
|
-
import { t as Pe } from "./internal/pano-compass-
|
|
39
|
+
import { t as Ne } from "./internal/model-view-DSRXOhPg.js";
|
|
40
|
+
import { t as Pe } from "./internal/pano-compass-DENjS-F-.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-DFcBreFx.js";
|
|
43
|
+
import { t as Le } from "./internal/pano-measure-bIqtdQ8N.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-D0dQTeX6.js";
|
|
48
|
+
import { t as He } from "./internal/pipeline-CyleoezT.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-B6Y-8xjB.js";
|
|
51
|
+
import { t as Je } from "./internal/measure-v2-Byp1mE5q.js";
|
|
52
|
+
import { t as Ye } from "./internal/pano-measure-v2-BRr9Jses.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.20";
|
|
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-hxM1EHtV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePlugin-
|
|
1
|
+
{"version":3,"file":"BasePlugin-hxM1EHtV.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-CIQpqYGe.js.map → BasePluginWithData-BS2O9hNu.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePluginWithData-
|
|
1
|
+
{"version":3,"file":"BasePluginWithData-BS2O9hNu.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-G9EgUMWo.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-hxM1EHtV.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";
|
|
@@ -2504,4 +2504,4 @@ var _n = {
|
|
|
2504
2504
|
//#endregion
|
|
2505
2505
|
export { Q as a, vt as i, $ as n, X as o, wt as r, Y as s, xn as t };
|
|
2506
2506
|
|
|
2507
|
-
//# sourceMappingURL=Controller-
|
|
2507
|
+
//# sourceMappingURL=Controller-CDLmWyXz.js.map
|