@vsleem-realsee-viewer/projection-plugin 2.0.23 → 2.0.24

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.
@@ -31,24 +31,47 @@
31
31
  - **模型长度映射** (特殊模型映射,组件已判断无需第三方处理)
32
32
  - 首次映射到总平面/楼层时需映射长度
33
33
 
34
- ## 1.2 参数说明
35
-
36
- | 属性 | 类型 | 默认值 | 说明 |
37
- | ------------------ | ------------ | ------ | ------------------------------------------------------------------------------ |
38
- | `projectId` | `number` | - | 项目Id符 |
39
- | `bindModelId?` | `number` | - | 需要绑定模型时提供的模型Id |
40
- | `srcCoordinateId?` | `number` | - | 源坐标系Id:<br>• 模型映射 → 图纸/Bimface的Id<br>• 空间映射 → 建筑/场部图的Id |
41
- | `dstCoordinateId?` | `number` | - | 目标坐标系Id:<br>• 模型映射 → 楼层/场部图的Id<br>• 空间映射 → 场部图/地图的Id |
42
- | `appSetting?` | `AppSetting` | - | 高级应用配置项 |
43
-
44
- ## 1.3 事件说明
34
+ ## 1.2 ProjectionProps 参数说明
35
+
36
+ | 属性 | 类型 | 默认值 | 说明 |
37
+ | ------------------- | ------------ | ------ | ---------------------------- |
38
+ | `appSetting` | `AppSetting` | - | 应用程序配置 |
39
+ | `mapSetting?` | `MapSetting` | - | 地图配置 |
40
+ | `projectId` | `number` | - | 项目唯一标识符 |
41
+ | `bindModelId?` | `number` | - | 绑定的模型标识符 |
42
+ | `bindCoordinateId?` | `number` | - | 绑定的目标坐标系标识符 |
43
+ | `srcCoordinateId?` | `number` | - | 映射源坐标系标识符 |
44
+ | `dstCoordinateId?` | `number` | - | 映射目标坐标系标识符 |
45
+ | `srcModelType?` | `number[]` | - | 映射指定源坐标系的模型类型 |
46
+ | `dstModelType?` | `number[]` | - | 映射指定目标坐标系的模型类型 |
47
+
48
+ ## 1.3 AppSetting 类型说明
49
+
50
+ | 参数名 | 类型 | 默认值 | 说明 |
51
+ | ---------------- | ------------- | ------------------------ | ---------------------------- |
52
+ | `baseUrl?` | `string` | `https://vsleem.com/api` | 用于配置应用后端服务的根路径 |
53
+ | `authorizeCode` | `string` | - | 用于API身份验证和授权的凭证 |
54
+ | `theme?` | `ThemeConfig` | - | 主题配置 |
55
+ | `locale?` | `string` | `LocaleType.zh_CN` | 当前语言 |
56
+ | `flattenPicker?` | `boolean` | `false` | 选项扁平化 |
57
+ | `showTitleHead?` | `boolean` | `true` | 是否显示标题头 |
58
+
59
+ ## 1.4 MapSetting 类型说明
60
+
61
+ | 属性 | 类型 | 默认值 | 说明 |
62
+ | ------------------ | ----------------------------------------------------- | ------ | ------------ |
63
+ | `options?` | `MapOptions` | - | 地图选项 |
64
+ | `tileLayers` | `TileLayer[]` | - | 瓦片图层列表 |
65
+ | `keywordSearchFn?` | `(keyword: string) => Promise<GeoPoint \| undefined>` | - | 地理编码查询 |
66
+
67
+ ## 1.5 事件说明
45
68
 
46
69
  | 事件名称 | 参数类型 | 说明 |
47
70
  | ------------------ | ----------------------------- | ----------------------- |
48
71
  | `bindingSubmit` | `(result: Coordinate[])` | 模型绑定完成后触发 |
49
72
  | `projectionSubmit` | `(result: ProjectionModel[])` | 模型/空间映射完成后触发 |
50
73
 
51
- ## 1.4 类型定义
74
+ ## 1.6 类型定义
52
75
 
53
76
  ```typescript
54
77
  type ProjectionModel = {
@@ -66,11 +89,19 @@ type ProjectionModel = {
66
89
  dstPointB?: string; // 目标坐标系点B(右侧视图点B)
67
90
  };
68
91
 
92
+ //多语言枚举
93
+ enum LocaleType {
94
+ en_US = 'en_US',
95
+ zh_CN = 'zh_CN',
96
+ ja_JP = 'ja_JP',
97
+ }
98
+
69
99
  //映射类型枚举
70
100
  enum MappingType {
71
101
  SpaceMapping = 0, //空间映射
72
102
  ModelMapping = 1, //模型映射
73
103
  ScaleMapping = 2, //比例尺映射
104
+ FixedMapping = 3, //固定映射(如空间首次绑定模型并且模型是BIM直接映射)
74
105
  }
75
106
 
76
107
  //空间坐标系枚举,是前端自定义枚举,只做前端业务参考,不能作为数据类型枚举
@@ -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 C, normalizeProps as g, guardReactiveProps as x } from "vue";
2
2
  import { Point as i } from "@vsleem-realsee-viewer/shared";
3
- import { D as y } from "./index-Bu5mc_WL.mjs";
3
+ import { D as y } from "./index-CQpbjEaX.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 en, shallowRef as dn, watch as V, onBeforeUnmount as pn, createVNode as f, isVNode as j, cloneVNode as K, ref as z, watchEffect as mn, unref as E, onUnmounted as tn, reactive as vn, onMounted as fn, createElementBlock as U, openBlock as G, createBlock as gn, createCommentVNode as q, createElementVNode as P, withModifiers as hn, withCtx as H, createTextVNode as J, toDisplayString as L } from "vue";
2
2
  import { utils as N, CanvasElement as Sn, CanvasPointElement as W, Point as Y, CanvasImageElement as yn, DataHelper as wn } from "@vsleem-realsee-viewer/shared";
3
- import { E as Cn, G as bn, _ as Q, H as Dn, K as on, J as $n, d as xn, b as Z, f as zn, P as k, L as In, x as _n, n as nn, D as En } from "./index-Bu5mc_WL.mjs";
4
- import { S as Tn } from "./index-BFT7GdTH.mjs";
3
+ import { E as Cn, G as bn, _ as Q, H as Dn, K as on, J as $n, d as xn, b as Z, f as zn, P as k, L as In, x as _n, n as nn, D as En } from "./index-CQpbjEaX.mjs";
4
+ import { S as Tn } from "./index-W6F-YrsP.mjs";
5
5
  function Mn(n, l, p) {
6
6
  var i = p || {}, e = i.noTrailing, r = e === void 0 ? !1 : e, c = i.noLeading, s = c === void 0 ? !1 : c, m = i.debounceMode, o = m === void 0 ? void 0 : m, a, t = !1, u = 0;
7
7
  function C() {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Zt, ref as vt, createVNode as E, shallowRef as Mt, watch as fe, computed as Tt, onMounted as Ki, Fragment as Yi, nextTick as ni, onBeforeUpdate as cr, onBeforeUnmount as Vi, watchEffect as Xi, getCurrentInstance as zo, createBlock as dr, openBlock as ji, unref as ot, withCtx as zt, createTextVNode as Ui, toDisplayString as Gi, onUnmounted as fr, createElementBlock as po, createElementVNode as Ni, createCommentVNode as _r } from "vue";
2
2
  import { utils as mo, Point as vo } from "@vsleem-realsee-viewer/shared";
3
- import { f as Oo, _ as at, s as pr, P as qt, c as ie, a as bt, b as wt, o as jt, B as Eo, e as go, u as Io, F as ke, g as Ji, d as Ae, h as mr, i as Qi, j as ko, C as Ao, k as Oe, N as yo, l as wo, S as vr, m as gr, n as Me, p as ee, t as yr, w as ei, q as wr, R as xr, I as tn, r as br, v as xo, x as Bo, M as Pr, A as Di, y as Lr, z as Tr, D as Cr } from "./index-Bu5mc_WL.mjs";
4
- import { S as bo } from "./index-BFT7GdTH.mjs";
3
+ import { f as Oo, _ as at, s as pr, P as qt, c as ie, a as bt, b as wt, o as jt, B as Eo, e as go, u as Io, F as ke, g as Ji, d as Ae, h as mr, i as Qi, j as ko, C as Ao, k as Oe, N as yo, l as wo, S as vr, m as gr, n as Me, p as ee, t as yr, w as ei, q as wr, R as xr, I as tn, r as br, v as xo, x as Bo, M as Pr, A as Di, y as Lr, z as Tr, D as Cr } from "./index-CQpbjEaX.mjs";
4
+ import { S as bo } from "./index-W6F-YrsP.mjs";
5
5
  function Sr(a) {
6
6
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
7
7
  }
@@ -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 V, V as z, W as L, D as $ } from "./index-Bu5mc_WL.mjs";
3
+ import { x as E, A as V, V as z, W as L, D as $ } from "./index-CQpbjEaX.mjs";
4
4
  const k = { class: "vsleem-scale-control" }, B = { class: "scale-wrapper" }, D = { class: "title-wrapper" }, P = { style: { color: "#5bb36f" } }, U = { style: { color: "#5bb36f" } }, I = /* @__PURE__ */ g({
5
5
  name: "ScaleControl",
6
6
  __name: "ScaleControl",
@@ -1,3 +1,3 @@
1
- import { GeoPoint, CADModel, RequestOptions } from '@vsleem-realsee-viewer/shared';
2
- export declare function getModelDetail(params: Record<string, any>, options?: RequestOptions): Promise<CADModel>;
1
+ import { GeoPoint, RequestOptions, ViewModel } from '@vsleem-realsee-viewer/shared';
2
+ export declare function getModelDetail(params: Record<string, any>, options?: RequestOptions): Promise<ViewModel>;
3
3
  export declare function getGeoPoint(keyWord: string): Promise<GeoPoint | undefined>;
@@ -1,4 +1,4 @@
1
- import { Coordinate, CADModel, ProjectionModel } from '@vsleem-realsee-viewer/shared';
1
+ import { Coordinate, ProjectionModel, ViewModel } from '@vsleem-realsee-viewer/shared';
2
2
  import { ProjectionProps } from '../types';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -9,12 +9,12 @@ declare function __VLS_template(): {
9
9
  refs: {
10
10
  SpaceBindViewerElRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
11
11
  appSetting: import('..').AppSetting;
12
- bindModel: CADModel;
12
+ bindModel: ViewModel;
13
13
  bindCoordinate?: Coordinate;
14
14
  coordinateTree?: Coordinate;
15
15
  }> & Readonly<{}>, {
16
16
  getData: () => {
17
- bindModel: CADModel;
17
+ bindModel: ViewModel;
18
18
  currentSpace: Coordinate | undefined;
19
19
  };
20
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -26,12 +26,12 @@ declare function __VLS_template(): {
26
26
  Defaults: {};
27
27
  }, Readonly<{
28
28
  appSetting: import('..').AppSetting;
29
- bindModel: CADModel;
29
+ bindModel: ViewModel;
30
30
  bindCoordinate?: Coordinate;
31
31
  coordinateTree?: Coordinate;
32
32
  }> & Readonly<{}>, {
33
33
  getData: () => {
34
- bindModel: CADModel;
34
+ bindModel: ViewModel;
35
35
  currentSpace: Coordinate | undefined;
36
36
  };
37
37
  }, {}, {}, {}, {}> | null;
@@ -137,12 +137,12 @@ declare const __VLS_component: import('vue').DefineComponent<ProjectionProps, {}
137
137
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
138
138
  SpaceBindViewerElRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
139
139
  appSetting: import('..').AppSetting;
140
- bindModel: CADModel;
140
+ bindModel: ViewModel;
141
141
  bindCoordinate?: Coordinate;
142
142
  coordinateTree?: Coordinate;
143
143
  }> & Readonly<{}>, {
144
144
  getData: () => {
145
- bindModel: CADModel;
145
+ bindModel: ViewModel;
146
146
  currentSpace: Coordinate | undefined;
147
147
  };
148
148
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -154,12 +154,12 @@ declare const __VLS_component: import('vue').DefineComponent<ProjectionProps, {}
154
154
  Defaults: {};
155
155
  }, Readonly<{
156
156
  appSetting: import('..').AppSetting;
157
- bindModel: CADModel;
157
+ bindModel: ViewModel;
158
158
  bindCoordinate?: Coordinate;
159
159
  coordinateTree?: Coordinate;
160
160
  }> & Readonly<{}>, {
161
161
  getData: () => {
162
- bindModel: CADModel;
162
+ bindModel: ViewModel;
163
163
  currentSpace: Coordinate | undefined;
164
164
  };
165
165
  }, {}, {}, {}, {}> | null;
@@ -1,13 +1,13 @@
1
- import { CADModel, Coordinate } from '@vsleem-realsee-viewer/shared';
1
+ import { ViewModel, Coordinate } from '@vsleem-realsee-viewer/shared';
2
2
  import { AppSetting } from '../types';
3
3
  type __VLS_Props = {
4
4
  appSetting: AppSetting;
5
- bindModel: CADModel;
5
+ bindModel: ViewModel;
6
6
  bindCoordinate?: Coordinate;
7
7
  coordinateTree?: Coordinate;
8
8
  };
9
9
  declare function getData(): {
10
- bindModel: CADModel;
10
+ bindModel: ViewModel;
11
11
  currentSpace: Coordinate | undefined;
12
12
  };
13
13
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
@@ -2,7 +2,7 @@ export declare enum MappingType {
2
2
  SpaceMapping = 0 /** 空间映射 */,
3
3
  ModelMapping = 1 /** 模型映射 */,
4
4
  ScaleMapping = 2 /** 比例尺映射 */,
5
- BIMModelMapping = 3 /**bim模型映射-特殊处理 */
5
+ FixedMapping = 3 /**固定映射(如空间首次绑定模型并且模型是BIM直接映射) */
6
6
  }
7
7
  export declare enum LocaleType {
8
8
  en_US = "en_US",