@vsleem-realsee-viewer/projection-plugin 2.0.17 → 2.0.18
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/README.internal.md +36 -21
- package/dist/{BimControl-BD4VzFcF.mjs → BimControl-BYQqyAys.mjs} +1 -1
- package/dist/{CadControl-DFctBjld.mjs → CadControl-BwM8s7Ih.mjs} +2 -2
- package/dist/{GeoControl-D71QpeSW.mjs → GeoControl-CvXbmvsE.mjs} +2 -2
- package/dist/{ScaleControl-DNNSuYax.mjs → ScaleControl-BBfh0U7x.mjs} +1 -1
- package/dist/{index-vjSMbMuq.mjs → index-D2EgGPM7.mjs} +770 -763
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/{ja_JP-DSJS4pnh.mjs → ja_JP-m01VWQoj.mjs} +1 -1
- package/dist/{resize-rfpnIM5O.mjs → resize-C-M2BSbN.mjs} +1 -1
- package/package.json +3 -3
package/README.internal.md
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 1. Projection映射组件
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1.1 介绍
|
|
4
4
|
|
|
5
5
|
基于空间坐标系和模型坐标系实现以下功能:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
依赖@vsleem-realsee-viewer/shared(共享类)
|
|
8
|
+
|
|
9
|
+
### 1.1.1 坐标系枚举
|
|
8
10
|
|
|
9
11
|
- **空间坐标系** (参考`CoordinateLevel`枚举):
|
|
10
12
|
- 地图
|
|
11
13
|
- 总平面(施工场部图)
|
|
12
14
|
- 建筑
|
|
13
15
|
- 楼层
|
|
14
|
-
|
|
15
16
|
- **模型坐标系** (参考`CoordinateModelType`枚举):
|
|
16
17
|
- 天地图
|
|
17
18
|
- 图纸
|
|
18
19
|
- Bimface模型
|
|
19
20
|
|
|
20
|
-
### 核心功能
|
|
21
|
-
|
|
22
|
-
1. **空间映射**
|
|
23
|
-
- 总平面 → 地图 (需总平面空间下有模型)
|
|
24
|
-
- 建筑 → 总平面 (需双方空间下有模型)
|
|
25
|
-
2. **空间绑定**
|
|
26
|
-
- 将图纸/Bimface模型绑定到楼层/总平面 → 进行模型映射
|
|
27
|
-
3. **模型映射**
|
|
28
|
-
- 图纸 → 楼层/总平面
|
|
29
|
-
- Bimface模型 → 楼层/总平面
|
|
30
|
-
4. **模型长度映射** (特殊模型映射,组件已判断无需第三方处理)
|
|
31
|
-
- 首次映射到总平面/楼层时需映射长度
|
|
21
|
+
### 1.1.2 核心功能
|
|
32
22
|
|
|
33
|
-
|
|
23
|
+
- **空间映射**
|
|
24
|
+
- 总平面 → 地图 (需总平面空间下有模型)
|
|
25
|
+
- 建筑 → 总平面 (需双方空间下有模型)
|
|
26
|
+
- **空间绑定**
|
|
27
|
+
- 将图纸/Bimface模型绑定到楼层/总平面 → 进行模型映射
|
|
28
|
+
- **模型映射**
|
|
29
|
+
- 图纸 → 楼层/总平面
|
|
30
|
+
- Bimface模型 → 楼层/总平面
|
|
31
|
+
- **模型长度映射** (特殊模型映射,组件已判断无需第三方处理)
|
|
32
|
+
- 首次映射到总平面/楼层时需映射长度
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
## 1.2 参数说明
|
|
36
35
|
|
|
37
36
|
| 属性 | 类型 | 默认值 | 说明 |
|
|
38
37
|
| ---------------------- | ------------ | ------ | ------------------------------------------------------------------------------ |
|
|
@@ -44,14 +43,14 @@
|
|
|
44
43
|
| `enabledDstModelType?` | `number` | - | 控制目标坐标系树的模型启用类型 |
|
|
45
44
|
| `appSetting?` | `AppSetting` | - | 高级应用配置项 |
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
## 1.3 事件说明
|
|
48
47
|
|
|
49
48
|
| 事件名称 | 参数类型 | 说明 |
|
|
50
49
|
| ------------------ | ----------------------------- | ----------------------- |
|
|
51
|
-
| `bindingSubmit` | `(result: Coordinate[])`
|
|
50
|
+
| `bindingSubmit` | `(result: Coordinate[])` | 模型绑定完成后触发 |
|
|
52
51
|
| `projectionSubmit` | `(result: ProjectionModel[])` | 模型/空间映射完成后触发 |
|
|
53
52
|
|
|
54
|
-
|
|
53
|
+
## 1.4 类型定义
|
|
55
54
|
|
|
56
55
|
```typescript
|
|
57
56
|
type ProjectionModel = {
|
|
@@ -94,3 +93,19 @@ enum CoordinateModelType {
|
|
|
94
93
|
SkyMapModel = 9, //天地图模型
|
|
95
94
|
}
|
|
96
95
|
```
|
|
96
|
+
|
|
97
|
+
# 2. 示例
|
|
98
|
+
|
|
99
|
+
通过以下方式来注册组件
|
|
100
|
+
|
|
101
|
+
## 2.1 安装
|
|
102
|
+
|
|
103
|
+
`npm install @vsleem-realsee-viewer/projection-plugin @vsleem-realsee-viewer/shared`
|
|
104
|
+
|
|
105
|
+
`pnpm add @vsleem-realsee-viewer/projection-plugin @vsleem-realsee-viewer/shared`
|
|
106
|
+
|
|
107
|
+
## 2.2 例子
|
|
108
|
+
|
|
109
|
+
`vsleem-realsee-demo仓库下的views/projection`
|
|
110
|
+
|
|
111
|
+
仓库地址:https://gitee.com/yangleistudio/vsleem-realsee-demo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, ref as _, computed as P, watch as B, createElementBlock as w, openBlock as h, renderSlot as y, normalizeProps as C, guardReactiveProps as g } from "vue";
|
|
2
2
|
import { Point as i } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import { y as x } from "./index-
|
|
3
|
+
import { y as x } from "./index-D2EgGPM7.mjs";
|
|
4
4
|
const M = { class: "vsleem-bim-control" }, b = /* @__PURE__ */ v({
|
|
5
5
|
name: "BimControl",
|
|
6
6
|
__name: "BimControl",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as tn, shallowRef as un, watch as V, onBeforeUnmount as dn, createVNode as u, isVNode as F, cloneVNode as K, ref as E, reactive as pn, onMounted as mn, onUnmounted as vn, unref as T, createElementBlock as U, openBlock as H, createBlock as fn, createCommentVNode as W, createElementVNode as P, withModifiers as gn, withCtx as A, createTextVNode as Y, toDisplayString as R } from "vue";
|
|
2
2
|
import { utils as N, CanvasElement as hn, CanvasPointElement as q, Point as J, CanvasImageElement as Sn, DataHelper as yn } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import { z as Cn, D as wn, _ as Q, E as Dn, K as en, G as bn, d as $n, b as Z, f as xn, P as k, H as zn, x as In, n as nn, y as _n } from "./index-
|
|
4
|
-
import { u as En, S as Tn } from "./resize-
|
|
3
|
+
import { z as Cn, D as wn, _ as Q, E as Dn, K as en, G as bn, d as $n, b as Z, f as xn, P as k, H as zn, x as In, n as nn, y as _n } from "./index-D2EgGPM7.mjs";
|
|
4
|
+
import { u as En, S as Tn } from "./resize-C-M2BSbN.mjs";
|
|
5
5
|
function Mn(n, a, g) {
|
|
6
6
|
var e = g || {}, t = e.noTrailing, h = t === void 0 ? !1 : t, x = e.noLeading, l = x === void 0 ? !1 : x, f = e.debounceMode, i = f === void 0 ? void 0 : f, o, s = !1, d = 0;
|
|
7
7
|
function C() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as K, ref as j, createVNode as f, shallowRef as W, watch as ue, computed as Q, onMounted as Ee, Fragment as qe, nextTick as be, onBeforeUpdate as pt, onBeforeUnmount as Oe, watchEffect as ze, getCurrentInstance as Je, createBlock as mt, openBlock as Ke, unref as $, withCtx as J, onUnmounted as gt, createElementBlock as bt, createElementVNode as xe, createTextVNode as Fe, toDisplayString as Ne } from "vue";
|
|
2
2
|
import { utils as Ce, Point as ke } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import { S as Le, u as ht } from "./resize-
|
|
4
|
-
import { f as et, _ as M, s as yt, P as le, c as ie, a as H, b as D, o as ne, B as tt, e as je, u as nt, F as ve, g as Be, d as pe, h as xt, i as _e, j as at, C as lt, k as ce, N as Ue, l as Ze, S as Ct, m as wt, n as se, p as re, t as At, w as me, q as St, R as It, I as Re, r as Ot, v as Ve, x as ot, M as Pt, A as De, y as Et } from "./index-
|
|
3
|
+
import { S as Le, u as ht } from "./resize-C-M2BSbN.mjs";
|
|
4
|
+
import { f as et, _ as M, s as yt, P as le, c as ie, a as H, b as D, o as ne, B as tt, e as je, u as nt, F as ve, g as Be, d as pe, h as xt, i as _e, j as at, C as lt, k as ce, N as Ue, l as Ze, S as Ct, m as wt, n as se, p as re, t as At, w as me, q as St, R as It, I as Re, r as Ot, v as Ve, x as ot, M as Pt, A as De, y as Et } from "./index-D2EgGPM7.mjs";
|
|
5
5
|
const de = (e) => e != null && (Array.isArray(e) ? et(e).length : !0);
|
|
6
6
|
function Me(e) {
|
|
7
7
|
return de(e.prefix) || de(e.suffix) || de(e.allowClear);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, ref as v, computed as m, watch as w, onMounted as y, createElementBlock as C, openBlock as N, createElementVNode as a, createVNode as f, createTextVNode as c, toDisplayString as s, unref as l, withCtx as S } from "vue";
|
|
2
2
|
import { Point as A } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import { x as E, A as z, T as L, U, y as V } from "./index-
|
|
3
|
+
import { x as E, A as z, T as L, U, y as V } from "./index-D2EgGPM7.mjs";
|
|
4
4
|
const $ = { class: "vsleem-scale-control" }, k = { class: "scale-wrapper" }, B = { class: "title-wrapper" }, P = { style: { color: "#5bb36f" } }, D = { style: { color: "#5bb36f" } }, I = /* @__PURE__ */ g({
|
|
5
5
|
name: "ScaleControl",
|
|
6
6
|
__name: "ScaleControl",
|