@realsee/dnalogel 4.0.0-webgpu.14 → 4.0.0-webgpu.16
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 +18 -0
- package/TERMS.txt +24 -87
- package/dist/floorplan.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/dist/internal/{BasePlugin-CPJ1ahrJ.js → BasePlugin-89hE8Cux.js} +2 -2
- package/dist/internal/{BasePlugin-CPJ1ahrJ.js.map → BasePlugin-89hE8Cux.js.map} +1 -1
- package/dist/internal/BasePluginWithData-BLOUilj_.js +7 -0
- package/dist/internal/{BasePluginWithData-Uq1cY5sC.js.map → BasePluginWithData-BLOUilj_.js.map} +1 -1
- package/dist/internal/{pano-measure-BEUknZ_O.js → Controller-B-10xO2H.js} +56 -42
- package/dist/internal/Controller-B-10xO2H.js.map +1 -0
- package/dist/internal/{measure-CTsB8Z-c.js → Controller-Bt2czarX.js} +10 -7
- package/dist/internal/Controller-Bt2czarX.js.map +1 -0
- package/dist/internal/{Controller-B9xMQukV.js → Controller-CTQsxSIv.js} +2 -2
- package/dist/internal/{Controller-B9xMQukV.js.map → Controller-CTQsxSIv.js.map} +1 -1
- package/dist/internal/{PointHelper-Bgbt0S7b.js → PointHelper-grrf8vu1.js} +23 -8
- package/dist/internal/PointHelper-grrf8vu1.js.map +1 -0
- package/dist/internal/{Rectangle-Dyjp88lU.js → Rectangle-CrP2ewnA.js} +3 -3
- package/dist/internal/{Rectangle-Dyjp88lU.js.map → Rectangle-CrP2ewnA.js.map} +1 -1
- package/dist/internal/{Work-nlQCCreU.js → Work-BeXbgDwp.js} +4 -4
- package/dist/internal/{Work-nlQCCreU.js.map → Work-BeXbgDwp.js.map} +1 -1
- package/dist/internal/{area-maker-DwPBgIH_.js → area-maker-CPQF8Zvc.js} +2 -2
- package/dist/internal/{area-maker-DwPBgIH_.js.map → area-maker-CPQF8Zvc.js.map} +1 -1
- package/dist/internal/{controller-B3u-PyQb.js → controller-18q1jMVV.js} +16 -16
- package/dist/internal/{controller-B3u-PyQb.js.map → controller-18q1jMVV.js.map} +1 -1
- package/dist/internal/{cruise-XCsWQQtZ.js → cruise-CVIrFchH.js} +2 -2
- package/dist/internal/{cruise-XCsWQQtZ.js.map → cruise-CVIrFchH.js.map} +1 -1
- package/dist/internal/{current-pano-image-Yt0ptdOO.js → current-pano-image-BaYriyS_.js} +2 -2
- package/dist/internal/{current-pano-image-Yt0ptdOO.js.map → current-pano-image-BaYriyS_.js.map} +1 -1
- package/dist/internal/edgeSnap-8fdFCcXB.js +469 -0
- package/dist/internal/edgeSnap-8fdFCcXB.js.map +1 -0
- package/dist/internal/{floorplan-Bnk3Jg8m.js → floorplan-CofR5nkn.js} +2 -2
- package/dist/internal/{floorplan-Bnk3Jg8m.js.map → floorplan-CofR5nkn.js.map} +1 -1
- package/dist/internal/measure-BEPx6Dxe.js +7 -0
- package/dist/internal/measure-BEPx6Dxe.js.map +1 -0
- package/dist/internal/measure-v2-sRY76hly.js +83 -0
- package/dist/internal/measure-v2-sRY76hly.js.map +1 -0
- package/dist/internal/{model-maker-tbF87kJz.js → model-maker-ggAsocXZ.js} +2 -2
- package/dist/internal/{model-maker-tbF87kJz.js.map → model-maker-ggAsocXZ.js.map} +1 -1
- package/dist/internal/object3d-helper-DFamC2FE.js +7 -0
- package/dist/internal/{object3d-helper-BgYvVhp2.js.map → object3d-helper-DFamC2FE.js.map} +1 -1
- package/dist/internal/{pano-compass-BwxmzCPI.js → pano-compass-DGHhaCBJ.js} +2 -2
- package/dist/internal/{pano-compass-BwxmzCPI.js.map → pano-compass-DGHhaCBJ.js.map} +1 -1
- package/dist/internal/{pano-door-label-Bwvaf5xx.js → pano-door-label-CWY7Kxkk.js} +2 -2
- package/dist/internal/{pano-door-label-Bwvaf5xx.js.map → pano-door-label-CWY7Kxkk.js.map} +1 -1
- package/dist/internal/pano-measure-CQ_ZZzz5.js +9 -0
- package/dist/internal/pano-measure-CQ_ZZzz5.js.map +1 -0
- package/dist/internal/pano-measure-v2-CzOdP5Yv.js +301 -0
- package/dist/internal/pano-measure-v2-CzOdP5Yv.js.map +1 -0
- package/dist/internal/{pano-tag-CaRrmqmS.js → pano-tag-C6g7mXhw.js} +2 -2
- package/dist/internal/{pano-tag-CaRrmqmS.js.map → pano-tag-C6g7mXhw.js.map} +1 -1
- package/dist/internal/{pano-video-DLjuDeQV.js → pano-video-DTbKV54W.js} +2 -2
- package/dist/internal/{pano-video-DLjuDeQV.js.map → pano-video-DTbKV54W.js.map} +1 -1
- package/dist/internal/{pipeline-Dg9R3h54.js → pipeline-CkYhFOhG.js} +2 -2
- package/dist/internal/{pipeline-Dg9R3h54.js.map → pipeline-CkYhFOhG.js.map} +1 -1
- package/dist/internal/{sculpt-CMFBenui.js → sculpt-rEvaT1IE.js} +3 -3
- package/dist/internal/{sculpt-CMFBenui.js.map → sculpt-rEvaT1IE.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.d.ts +2 -0
- package/dist/plugins/measure-v2.js +3 -0
- package/dist/plugins/measure.js +3 -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.d.ts +2 -0
- package/dist/plugins/pano-measure-v2.js +1 -0
- 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 +1 -0
- package/dist/types/MeasurePluginV2/Controller.d.ts +49 -0
- package/dist/types/MeasurePluginV2/Magnifier.d.ts +29 -0
- package/dist/types/MeasurePluginV2/PointHelper.d.ts +22 -0
- package/dist/types/MeasurePluginV2/PointOverlay.d.ts +88 -0
- package/dist/types/MeasurePluginV2/PointSelector.d.ts +51 -0
- package/dist/types/MeasurePluginV2/edgeSnap.d.ts +53 -0
- package/dist/types/MeasurePluginV2/index.d.ts +28 -0
- package/dist/types/PanoMeasurePlugin/Controller/BaseController.d.ts +1 -0
- package/dist/types/PanoMeasurePlugin/Controller/EditController.d.ts +4 -2
- package/dist/types/PanoMeasurePlugin/Controller/MixedController.d.ts +3 -1
- package/dist/types/PanoMeasurePlugin/Controller/WatchController.d.ts +4 -0
- package/dist/types/PanoMeasurePlugin/Controller/index.d.ts +9 -3
- package/dist/types/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +5 -5
- package/dist/types/PanoMeasurePluginV2/Controller.d.ts +32 -0
- package/dist/types/PanoMeasurePluginV2/PointSelector.d.ts +32 -0
- package/dist/types/PanoMeasurePluginV2/PreviewLine.d.ts +6 -0
- package/dist/types/PanoMeasurePluginV2/controllers.d.ts +44 -0
- package/dist/types/PanoMeasurePluginV2/index.d.ts +8 -0
- package/dist/types/public/index.d.ts +4 -0
- package/dist/types/public/plugins/measure-v2.d.ts +5 -0
- package/dist/types/public/plugins/pano-measure-v2.d.ts +2 -0
- package/dist/types/shared-utils/three/Magnifier.d.ts +21 -0
- package/dist/types/shared-utils/three/PointSelector/index.d.ts +16 -7
- package/dist/utils.js +1 -1
- package/package.json +9 -1
- package/LICENSE-UPDATE.txt +0 -5
- package/dist/internal/BasePluginWithData-Uq1cY5sC.js +0 -7
- package/dist/internal/PointHelper-Bgbt0S7b.js.map +0 -1
- package/dist/internal/measure-CTsB8Z-c.js.map +0 -1
- package/dist/internal/object3d-helper-BgYvVhp2.js +0 -7
- package/dist/internal/pano-measure-BEUknZ_O.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-BEPx6Dxe.js","names":["MeasureController","MeasurePlugin","five","config"],"sources":["../../src/MeasurePlugin/index.ts"],"sourcesContent":["import type { Five } from '@realsee/five-webgpu'\nimport { MeasureController } from './Controller'\n\nexport type MeasurePluginConfig = {\n unit: 'm' | 'ft' | 'mm'\n lengthEnable?: boolean\n /**\n * @description Length label precision.\n * - When unit is `m`: number of decimal places.\n * - When unit is `ft`: inch fraction denominator (`1` | `4` | `8` | `16` for 1\" / 1/4\" / 1/8\" / 1/16\").\n * Area measurements remain at fixed 2 decimal places.\n * @default 2\n */\n precision?: number\n}\n\n// 导出测量相关类型\nexport type { MeasureEndReason, MeasurePluginEventMap, MeasureInteractionState } from './Controller'\n\n// 导出多边形验证工具函数\nexport { validatePolygon } from './utils/validatePolygon'\n\nexport const MeasurePlugin = (five: Five, config?: MeasurePluginConfig) => new MeasureController(five, config)\n"],"mappings":";;AAsBA,IAAaC,KAAiB,GAAY,MAAiC,IAAID,EAAkBE,GAAMC,CAAM"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { c as e } from "./PointHelper-grrf8vu1.js";
|
|
2
|
+
import { t } from "./Controller-Bt2czarX.js";
|
|
3
|
+
import { a as n, i as r, n as i, o as a, s as o } from "./edgeSnap-8fdFCcXB.js";
|
|
4
|
+
//#region src/MeasurePluginV2/Controller.ts
|
|
5
|
+
var s = class extends t {
|
|
6
|
+
lastEdgeSnapEdgeCount = 0;
|
|
7
|
+
v2Five;
|
|
8
|
+
v2Magnifier;
|
|
9
|
+
v2Attached = !1;
|
|
10
|
+
edgeSnapOptions;
|
|
11
|
+
edgeSnapCache = new i();
|
|
12
|
+
constructor(e, t) {
|
|
13
|
+
super(e, t), this.v2Five = e, this.edgeSnapOptions = r(t?.edgeSnap);
|
|
14
|
+
let n = this.measure;
|
|
15
|
+
this.measure = () => {
|
|
16
|
+
this.edgeSnapCache.clear(), this.lastEdgeSnapEdgeCount = 0, this.pointSelector.clearDynamicAdhereLine(), n();
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
get edgeSnapEnabled() {
|
|
20
|
+
return this.edgeSnapOptions.enabled;
|
|
21
|
+
}
|
|
22
|
+
setEdgeSnapEnabled(e) {
|
|
23
|
+
this.edgeSnapOptions.enabled = e, this.edgeSnapCache.clear(), this.lastEdgeSnapEdgeCount = 0, this.pointSelector.clearDynamicAdhereLine(), this.pointSelector.refresh(), this.v2Five.needsRender = !0;
|
|
24
|
+
}
|
|
25
|
+
get magnifier() {
|
|
26
|
+
return this.v2Magnifier;
|
|
27
|
+
}
|
|
28
|
+
createPointSelector() {
|
|
29
|
+
return new o(this.v2Five, {
|
|
30
|
+
mode: "cursor",
|
|
31
|
+
helper: {
|
|
32
|
+
pointHelper: "highlight",
|
|
33
|
+
...e ? { magnifierParams: {
|
|
34
|
+
width: 150,
|
|
35
|
+
height: 150,
|
|
36
|
+
dragEnabled: !1,
|
|
37
|
+
autoFixPCPosition: !1,
|
|
38
|
+
initialPosition: {
|
|
39
|
+
left: "12px",
|
|
40
|
+
top: "12px"
|
|
41
|
+
}
|
|
42
|
+
} } : {}
|
|
43
|
+
},
|
|
44
|
+
skipPanorama: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
get pointSelector() {
|
|
48
|
+
let e = super.pointSelector;
|
|
49
|
+
return this.v2Attached || (this.v2Attached = !0, this.attachOverlayRenderers(e)), e;
|
|
50
|
+
}
|
|
51
|
+
attachOverlayRenderers(e) {
|
|
52
|
+
let t = e.pointSelectorHelper;
|
|
53
|
+
this.attachMagnifier(t), this.attachPointHelper(t), this.attachEdgeSnap(e), e.on("intersectionUpdate", (e) => {
|
|
54
|
+
this.v2Magnifier?.setIntersection(e ?? null);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
attachMagnifier(e) {
|
|
58
|
+
let t = e.magnifier;
|
|
59
|
+
if (!t) return;
|
|
60
|
+
let n = new a(this.v2Five, {
|
|
61
|
+
...t.config,
|
|
62
|
+
width: t.width,
|
|
63
|
+
height: t.height,
|
|
64
|
+
scale: t.scale
|
|
65
|
+
});
|
|
66
|
+
t.containerDom && n.appendTo(t.containerDom), t.state.enabled && n.enable(), e.magnifier = n, t.dispose(), this.v2Magnifier = n;
|
|
67
|
+
}
|
|
68
|
+
attachPointHelper(e) {
|
|
69
|
+
let t = e.pointHelper;
|
|
70
|
+
e.pointHelper = new n(this.v2Five), t?.dispose(), t?.parent && t.parent.remove(t);
|
|
71
|
+
}
|
|
72
|
+
attachEdgeSnap(e) {
|
|
73
|
+
e.adhereLineProvider = ({ intersection: e }) => {
|
|
74
|
+
if (!e?.point) return [];
|
|
75
|
+
let t = this.edgeSnapCache.query(this.v2Five.model, e.point, this.edgeSnapOptions);
|
|
76
|
+
return this.lastEdgeSnapEdgeCount = t.length, t;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}, c = (e, t) => new s(e, t);
|
|
80
|
+
//#endregion
|
|
81
|
+
export { s as n, c as t };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=measure-v2-sRY76hly.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-v2-sRY76hly.js","names":["isTouchDevice","MeasurePointHelperV2","resolveEdgeSnapOptions","EdgeSnapCache","MeasureMagnifier","MeasurePointSelector","MeasureControllerV2","MeasureController","five","config","measure","enabled","pointSelector","helper","intersection","original","magnifier","edges","MeasurePluginV2"],"sources":["../../src/MeasurePluginV2/Controller.ts","../../src/MeasurePluginV2/index.ts"],"sourcesContent":["import type { Five } from '@realsee/five-webgpu'\nimport { MeasurePointSelector } from './PointSelector'\nimport { MeasureController } from '../MeasurePlugin/Controller'\nimport { isTouchDevice } from '../shared-utils/isTouchDevice'\nimport type { MeasurePluginConfig } from '../MeasurePlugin'\nimport { MeasureMagnifier } from './Magnifier'\nimport { MeasurePointHelperV2 } from './PointHelper'\nimport { EdgeSnapCache, resolveEdgeSnapOptions, type EdgeSnapOptions, type ResolvedEdgeSnapOptions } from './edgeSnap'\n\n/**\n * 量尺插件 V2:把放大镜和场景里的小光标换成带「红 / 绿 / 蓝坐标轴 + 红色截面框」的版本。\n *\n * 复用 MeasureController 的测量流程,通过工厂创建独立的 V2 选点器,并替换两个渲染组件:\n * - pointSelectorHelper.magnifier → MeasureMagnifier(多画一层叠加层)\n * - pointSelectorHelper.pointHelper → MeasurePointHelperV2(同样的红 / 绿 / 蓝 + 截面框)\n *\n * 两个替换件都沿用原实例的全部参数(宽高、缩放、autoFixPCPosition、dragEnabled、挂载容器),\n * 所以放大镜出现的位置、跟随方式、是否吃鼠标事件都和原插件一致,不会挡住在原本能选中的点位。\n */\n/** V2 配置:在原 MeasurePlugin 配置上增加模型边缘吸附 */\nexport type MeasurePluginV2Config = MeasurePluginConfig & {\n /**\n * @description 模型边缘吸附(试验能力):落点靠近模型边线时自动吸到边上。\n * 传 `false` 可关闭;不传默认开启。\n */\n edgeSnap?: boolean | EdgeSnapOptions\n}\n\nexport class MeasureControllerV2 extends MeasureController {\n /** 最近一次查询到的候选边数量,示例页 / 调试用 */\n public lastEdgeSnapEdgeCount = 0\n\n private v2Five: Five\n private v2Magnifier?: MeasureMagnifier\n private v2Attached = false\n private readonly edgeSnapOptions: ResolvedEdgeSnapOptions\n private readonly edgeSnapCache = new EdgeSnapCache()\n\n public constructor(five: Five, config?: MeasurePluginV2Config) {\n super(five, config)\n this.v2Five = five\n this.edgeSnapOptions = resolveEdgeSnapOptions(config?.edgeSnap)\n\n // MeasureController.measure 是实例上的箭头函数,不能用 prototype 方法覆盖,\n // 这里在包装后的入口里清一次缓存,避免上一次测量 / 上一楼层的边残留。\n const measure = this.measure\n this.measure = () => {\n this.edgeSnapCache.clear()\n this.lastEdgeSnapEdgeCount = 0\n this.pointSelector.clearDynamicAdhereLine()\n measure()\n }\n }\n\n public get edgeSnapEnabled() {\n return this.edgeSnapOptions.enabled\n }\n\n /** 运行时开关模型边缘吸附(不需要重开测量) */\n public setEdgeSnapEnabled(enabled: boolean) {\n this.edgeSnapOptions.enabled = enabled\n this.edgeSnapCache.clear()\n this.lastEdgeSnapEdgeCount = 0\n this.pointSelector.clearDynamicAdhereLine()\n this.pointSelector.refresh()\n this.v2Five.needsRender = true\n }\n\n /** V2 的放大镜实例;需要临时关掉叠加层做对比时,可以 magnifier.setOverlayEnabled(false) */\n public get magnifier() {\n return this.v2Magnifier\n }\n\n protected override createPointSelector() {\n return new MeasurePointSelector(this.v2Five, { mode: 'cursor', helper: { pointHelper: 'highlight', ...(isTouchDevice ? { magnifierParams: { width: 150, height: 150, dragEnabled: false, autoFixPCPosition: false, initialPosition: { left: '12px', top: '12px' } } } : {}) }, skipPanorama: true })\n }\n\n public override get pointSelector(): MeasurePointSelector {\n const pointSelector = super.pointSelector as MeasurePointSelector\n if (!this.v2Attached) {\n this.v2Attached = true\n this.attachOverlayRenderers(pointSelector)\n }\n return pointSelector\n }\n\n private attachOverlayRenderers(pointSelector: MeasurePointSelector) {\n const helper = pointSelector.pointSelectorHelper\n this.attachMagnifier(helper)\n this.attachPointHelper(helper)\n this.attachEdgeSnap(pointSelector)\n\n // 放大镜是在 renderFrame 里渲染的,而这次事件是同步抛出的,\n // 所以放大镜真正渲染时一定已经拿到了当次的落点与法线\n pointSelector.on('intersectionUpdate', (intersection) => {\n this.v2Magnifier?.setIntersection(intersection ?? null)\n })\n }\n\n private attachMagnifier(helper: MeasurePointSelector['pointSelectorHelper']) {\n const original = helper.magnifier\n if (!original) return\n\n // 宽 / 高 / 缩放 / dragEnabled / autoFixPCPosition / skipPanorama 全部照抄原实例,\n // 只把 render 换成「读像素之后再多画一层坐标轴 + 截面框」\n const magnifier = new MeasureMagnifier(this.v2Five, {\n ...original.config,\n width: original.width,\n height: original.height,\n scale: (original as any).scale,\n })\n\n if (original.containerDom) magnifier.appendTo(original.containerDom)\n if (original.state.enabled) magnifier.enable()\n\n helper.magnifier = magnifier\n // 原放大镜自己的 canvas 和 hammer 手势一并释放,避免两个 canvas 叠在一起\n original.dispose()\n this.v2Magnifier = magnifier\n }\n\n private attachPointHelper(helper: MeasurePointSelector['pointSelectorHelper']) {\n const original = helper.pointHelper\n const pointHelper = new MeasurePointHelperV2(this.v2Five)\n helper.pointHelper = pointHelper\n\n original?.dispose()\n if (original?.parent) original.parent.remove(original)\n }\n\n /**\n * 模型边缘吸附:每次选点器计算吸附前,按当前落点取附近的模型边界线。\n * 真正的吸附判断(3D 距离 / 屏幕距离)仍在 PointSelector 里,这里只负责供线。\n */\n private attachEdgeSnap(pointSelector: MeasurePointSelector) {\n pointSelector.adhereLineProvider = ({ intersection }) => {\n if (!intersection?.point) return []\n const edges = this.edgeSnapCache.query(this.v2Five.model, intersection.point, this.edgeSnapOptions)\n this.lastEdgeSnapEdgeCount = edges.length\n return edges\n }\n }\n}\n","import type { Five } from '@realsee/five-webgpu'\nimport { MeasureControllerV2 } from './Controller'\n\n/**\n * 量尺插件 V2 —— 点位选择可视化(对应 PRD《量尺点位选择器优化》)\n *\n * 与 MeasurePlugin 的关系:V2 是试点 fork,完全继承 MeasurePlugin 的控制器,\n * 新吸附算法、放大镜叠加层和场景光标仅在 V2 中生效,原插件继续使用原选点器。\n *\n * 使用方式(Console / 编辑器等接入方):\n * ```ts\n * import { MeasurePluginV2 } from '@realsee/dnalogel/plugins/measure-v2'\n * const measure = MeasurePluginV2(five, { unit: 'm' })\n * ```\n */\nexport { MeasureControllerV2 } from './Controller'\nexport type { MeasurePluginV2Config } from './Controller'\nexport { MeasureMagnifier } from './Magnifier'\nexport type { MeasureMagnifierOptions } from './Magnifier'\nexport { drawMeasureOverlay, getWorldNormal, OVERLAY_STYLE } from './PointOverlay'\nexport type { MagnifierViewport } from './PointOverlay'\nexport { collectNearbyEdges, EdgeSnapCache, DEFAULT_EDGE_SNAP_OPTIONS } from './edgeSnap'\nexport type { EdgeSnapOptions, ResolvedEdgeSnapOptions } from './edgeSnap'\n\n// 与 MeasurePlugin 完全一致的类型与工具,方便接入方整体替换 import 来源\nexport { validatePolygon } from '../MeasurePlugin'\nexport type { MeasureEndReason, MeasurePluginConfig, MeasurePluginEventMap, MeasureInteractionState } from '../MeasurePlugin'\n\nexport type MeasureControllerV2Interface = InstanceType<typeof MeasureControllerV2>\nexport type MeasurePluginV2ParamsInterface = ConstructorParameters<typeof MeasureControllerV2>[1]\n\nexport const MeasurePluginV2 = (five: Five, config?: MeasurePluginV2ParamsInterface) => {\n return new MeasureControllerV2(five, config)\n}\n\nexport default MeasurePluginV2\n"],"mappings":";;;;AA4BA,IAAaM,IAAb,cAAyCC,EAAkB;CAEzD,wBAA+B;CAE/B;CACA;CACA,aAAqB;CACrB;CACA,gBAAiC,IAAIJ,EAAc;CAEnD,YAAmB,GAAY,GAAgC;EAG7D,AAFA,MAAMK,GAAMC,CAAM,GAClB,KAAK,SAASD,GACd,KAAK,kBAAkBN,EAAuBO,GAAQ,QAAQ;EAI9D,IAAMC,IAAU,KAAK;EACrB,KAAK,gBAAgB;GAInB,AAHA,KAAK,cAAc,MAAM,GACzB,KAAK,wBAAwB,GAC7B,KAAK,cAAc,uBAAuB,GAC1CA,EAAQ;EACV;CACF;CAEA,IAAW,kBAAkB;EAC3B,OAAO,KAAK,gBAAgB;CAC9B;CAGA,mBAA0B,GAAkB;EAM1C,AALA,KAAK,gBAAgB,UAAUC,GAC/B,KAAK,cAAc,MAAM,GACzB,KAAK,wBAAwB,GAC7B,KAAK,cAAc,uBAAuB,GAC1C,KAAK,cAAc,QAAQ,GAC3B,KAAK,OAAO,cAAc;CAC5B;CAGA,IAAW,YAAY;EACrB,OAAO,KAAK;CACd;CAEA,sBAAyC;EACvC,OAAO,IAAIN,EAAqB,KAAK,QAAQ;GAAE,MAAM;GAAU,QAAQ;IAAE,aAAa;IAAa,GAAIL,IAAgB,EAAE,iBAAiB;KAAE,OAAO;KAAK,QAAQ;KAAK,aAAa;KAAO,mBAAmB;KAAO,iBAAiB;MAAE,MAAM;MAAQ,KAAK;KAAO;IAAE,EAAE,IAAI,CAAC;GAAG;GAAG,cAAc;EAAK,CAAC;CACrS;CAEA,IAAoB,gBAAsC;EACxD,IAAMY,IAAgB,MAAM;EAK5B,OAJK,KAAK,eACR,KAAK,aAAa,IAClB,KAAK,uBAAuBA,CAAa,IAEpCA;CACT;CAEA,uBAA+B,GAAqC;EAClE,IAAMC,IAASD,EAAc;EAO7B,AANA,KAAK,gBAAgBC,CAAM,GAC3B,KAAK,kBAAkBA,CAAM,GAC7B,KAAK,eAAeD,CAAa,GAIjCA,EAAc,GAAG,uBAAuB,MAAiB;GACvD,KAAK,aAAa,gBAAgBE,KAAgB,IAAI;EACxD,CAAC;CACH;CAEA,gBAAwB,GAAqD;EAC3E,IAAMC,IAAWF,EAAO;EACxB,IAAI,CAACE,GAAU;EAIf,IAAMC,IAAY,IAAIZ,EAAiB,KAAK,QAAQ;GAClD,GAAGW,EAAS;GACZ,OAAOA,EAAS;GAChB,QAAQA,EAAS;GACjB,OAAQA,EAAiB;EAC3B,CAAC;EAQD,AANIA,EAAS,gBAAcC,EAAU,SAASD,EAAS,YAAY,GAC/DA,EAAS,MAAM,WAASC,EAAU,OAAO,GAE7C,EAAO,YAAYA,GAEnBD,EAAS,QAAQ,GACjB,KAAK,cAAcC;CACrB;CAEA,kBAA0B,GAAqD;EAC7E,IAAMD,IAAWF,EAAO;EAKxB,AAHA,EAAO,cAAc,IADGZ,EAAqB,KAAK,MAC7B,GAErBc,GAAU,QAAQ,GACdA,GAAU,UAAQA,EAAS,OAAO,OAAOA,CAAQ;CACvD;CAMA,eAAuB,GAAqC;EAC1D,EAAc,sBAAsB,EAAE,sBAAmB;GACvD,IAAI,CAACD,GAAc,OAAO,OAAO,CAAC;GAClC,IAAMG,IAAQ,KAAK,cAAc,MAAM,KAAK,OAAO,OAAOH,EAAa,OAAO,KAAK,eAAe;GAElG,OADA,KAAK,wBAAwBG,EAAM,QAC5BA;EACT;CACF;AACF,GC/GaC,KAAmB,GAAY,MACnC,IAAIZ,EAAoBE,GAAMC,CAAM"}
|
|
@@ -6,7 +6,7 @@ import { n as o, t as s } from "./isNil-CQNA0Sbe.js";
|
|
|
6
6
|
import { t as c } from "./FiveDomEvents-DFG9hd51.js";
|
|
7
7
|
import { n as l } from "./Line2-CDxLMjGj.js";
|
|
8
8
|
import { i as u, n as d } from "./boundingBox-CIqXgNXW.js";
|
|
9
|
-
import { t as f } from "./BasePluginWithData-
|
|
9
|
+
import { t as f } from "./BasePluginWithData-BLOUilj_.js";
|
|
10
10
|
import { C as p, G as m, J as h, M as g, N as _, P as ee, j as te, n as v, q as y, t as b } from "./component.svelte-D5LYqt50.js";
|
|
11
11
|
import { t as x } from "./LabelItem-Cnys51gZ.js";
|
|
12
12
|
import { n as S, r as ne } from "./fontSize-DMhRSrtx.js";
|
|
@@ -894,4 +894,4 @@ var pe = class extends f {
|
|
|
894
894
|
//#endregion
|
|
895
895
|
export { G as n, me as t };
|
|
896
896
|
|
|
897
|
-
//# sourceMappingURL=model-maker-
|
|
897
|
+
//# sourceMappingURL=model-maker-ggAsocXZ.js.map
|