ym-giswidget-2d 1.0.26 → 1.0.28

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.
@@ -8,9 +8,9 @@ type __VLS_Props = {
8
8
  map: OLMap;
9
9
  };
10
10
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- layerInitLoaded: (...args: any[]) => void;
11
+ loaded: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onLayerInitLoaded?: ((...args: any[]) => any) | undefined;
13
+ onLoaded?: ((...args: any[]) => any) | undefined;
14
14
  }>, {
15
15
  tools: ITool[];
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./HorizontallyTopToolbar.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5f93128"]]);
4
+ const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c8586f4"]]);
5
5
  export {
6
6
  _HorizontallyTopToolbar as default
7
7
  };
@@ -126,9 +126,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
126
126
  ] },
127
127
  map: {}
128
128
  },
129
- emits: ["layerInitLoaded"],
129
+ emits: ["loaded"],
130
130
  setup(__props, { emit: __emit }) {
131
131
  const modules = /* @__PURE__ */ Object.assign({ "../clear/Clear.vue": () => import("../clear/Clear.vue2.js"), "../clear/index.ts": () => import("../clear/index.js"), "../draw/Draw.vue": () => import("../draw/Draw.vue2.js"), "../draw/index.ts": () => import("../draw/index.js"), "../export/Export.vue": () => import("../export/Export.vue.js"), "../export/index.ts": () => import("../export/index.js"), "./HorizontallyTopToolbar.vue": () => import("./HorizontallyTopToolbar.vue.js"), "./index.ts": () => import("./index.js"), "../identify/Identify.vue": () => import("../identify/Identify.vue2.js"), "../identify/index.ts": () => import("../identify/index.js"), "../import/Import.vue": () => import("../import/Import.vue2.js"), "../import/index.ts": () => import("../import/index.js"), "../layer-tree/LayerTree.vue": () => import("../layer-tree/LayerTree.vue.js"), "../layer-tree/index.ts": () => import("../layer-tree/index.js"), "../map-view/MapView.vue": () => import("../map-view/MapView.vue2.js"), "../map-view/index.ts": () => import("../map-view/index.js"), "../mouse-position/MousePositon.vue": () => import("../mouse-position/MousePositon.vue.js"), "../mouse-position/index.ts": () => import("../mouse-position/index.js"), "../multi-screen-panel/PanelMultiScreen.vue": () => import("../multi-screen-panel/PanelMultiScreen.vue.js"), "../multi-screen-panel/index.ts": () => import("../multi-screen-panel/index.js"), "../multi-screen/MultiScreen.vue": () => import("../multi-screen/MultiScreen.vue.js"), "../multi-screen/index.ts": () => import("../multi-screen/index.js"), "../popup/Popup.vue": () => import("../popup/Popup.vue.js"), "../popup/index.ts": () => import("../popup/index.js"), "../scale-line/ScaleLine.vue": () => import("../scale-line/ScaleLine.vue.js"), "../scale-line/index.ts": () => import("../scale-line/index.js"), "../select/Select.vue": () => import("../select/Select.vue2.js"), "../select/index.ts": () => import("../select/index.js"), "../swipe-layer/SwipeLayer.vue": () => import("../swipe-layer/SwipeLayer.vue2.js"), "../swipe-layer/index.ts": () => import("../swipe-layer/index.js"), "../toc-card/TocCard.vue": () => import("../toc-card/TocCard.vue.js"), "../toc-card/index.ts": () => import("../toc-card/index.js") });
132
+ const emit = __emit;
132
133
  const props = __props;
133
134
  const reactiveValue = reactive({
134
135
  activeIds: [],
@@ -199,6 +200,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
199
200
  }
200
201
  }
201
202
  }
203
+ function handleLoaded() {
204
+ emit("loaded");
205
+ }
202
206
  return (_ctx, _cache) => {
203
207
  return openBlock(), createElementBlock(Fragment, null, [
204
208
  createElementVNode("div", _hoisted_1, [
@@ -260,8 +264,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
260
264
  (openBlock(true), createElementBlock(Fragment, null, renderList(reactiveValue.alwaysComponents, (component) => {
261
265
  return withDirectives((openBlock(), createBlock(resolveDynamicComponent(component.component), {
262
266
  map: props.map,
263
- data: component.data
264
- }, null, 8, ["map", "data"])), [
267
+ data: component.data,
268
+ onLoaded: handleLoaded
269
+ }, null, 40, ["map", "data"])), [
265
270
  [vShow, reactiveValue.activeIds.indexOf(component.id) > -1]
266
271
  ]);
267
272
  }), 256))
@@ -1,4 +1,4 @@
1
- .toolbar-contain[data-v-d5f93128] {
1
+ .toolbar-contain[data-v-3c8586f4] {
2
2
  position: absolute;
3
3
  top: 44px;
4
4
  display: flex;
@@ -9,7 +9,7 @@
9
9
  border: 1px solid var(--system-primary-border-color);
10
10
  border-radius: 3px;
11
11
  }
12
- .toolbar-contain .toolbar-item-contain[data-v-d5f93128] {
12
+ .toolbar-contain .toolbar-item-contain[data-v-3c8586f4] {
13
13
  height: 43px;
14
14
  line-height: 43px;
15
15
  display: flex;
@@ -18,41 +18,41 @@
18
18
  align-items: center;
19
19
  cursor: pointer;
20
20
  }
21
- .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-d5f93128] {
21
+ .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-3c8586f4] {
22
22
  display: flex;
23
23
  align-items: center;
24
24
  padding: 0px 10px;
25
25
  }
26
- .toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-d5f93128] {
26
+ .toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-3c8586f4] {
27
27
  width: 24px;
28
28
  height: 24px;
29
29
  margin-right: 6px;
30
30
  }
31
- .toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-d5f93128] {
31
+ .toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-3c8586f4] {
32
32
  position: absolute;
33
33
  top: 50px;
34
34
  background: var(--system-primary-color);
35
35
  border: 1px solid var(--system-primary-border-color);
36
36
  border-radius: 3px;
37
37
  }
38
- .toolbar-contain .active[data-v-d5f93128] {
38
+ .toolbar-contain .active[data-v-3c8586f4] {
39
39
  color: var(--system-primary-text-active-color);
40
40
  }
41
- .toolbar-contain .toolbar-split[data-v-d5f93128] {
41
+ .toolbar-contain .toolbar-split[data-v-3c8586f4] {
42
42
  width: 2px;
43
43
  height: 20px;
44
44
  background: #7EA08E;
45
45
  margin: auto;
46
46
  opacity: 0.5;
47
47
  }
48
- .toolbar-contain .toolbar-h-split[data-v-d5f93128] {
48
+ .toolbar-contain .toolbar-h-split[data-v-3c8586f4] {
49
49
  height: 2px;
50
50
  background: #7EA08E;
51
51
  margin: auto;
52
52
  opacity: 0.5;
53
53
  margin: 0px 10px;
54
54
  }
55
- .component-position[data-v-d5f93128] {
55
+ .component-position[data-v-3c8586f4] {
56
56
  position: absolute;
57
57
  right: 300px;
58
58
  }
@@ -12,6 +12,7 @@ type __VLS_Props = {
12
12
  cancePolygonStyle?: IStyle;
13
13
  selectLayers?: IMapService[];
14
14
  showLoading?: boolean;
15
+ selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
15
16
  };
16
17
  declare function setSelectLayers(layers: IMapService[]): void;
17
18
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
@@ -140,5 +141,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
140
141
  }[] | undefined;
141
142
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
142
143
  showLoading: boolean;
144
+ selectType: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
143
145
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
144
146
  export default _default;
@@ -15,7 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  polygonStyle: {},
16
16
  cancePolygonStyle: {},
17
17
  selectLayers: {},
18
- showLoading: { type: Boolean, default: true }
18
+ showLoading: { type: Boolean, default: true },
19
+ selectType: { default: "point" }
19
20
  },
20
21
  setup(__props, { expose: __expose }) {
21
22
  const props = __props;
@@ -31,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
32
  features: []
32
33
  });
33
34
  onMounted(() => {
34
- reactiveData.selectTool = new Select("pointermove", {
35
+ reactiveData.selectTool = new Select(props.selectType, {
35
36
  pointStyle: props.pointStyle,
36
37
  cancePointStyle: props.cancePointStyle,
37
38
  lineStyle: props.lineStyle,
@@ -8,6 +8,7 @@ export declare const Select: import('../../utils').WithInstall<import('vue').Def
8
8
  cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
9
9
  selectLayers?: import('ym-gis-2d/entity').IMapService[];
10
10
  showLoading?: boolean;
11
+ selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
11
12
  }, {
12
13
  setSelectLayers: (layers: import('ym-gis-2d/entity').IMapService[]) => void;
13
14
  features: {
@@ -142,7 +143,9 @@ export declare const Select: import('../../utils').WithInstall<import('vue').Def
142
143
  cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
143
144
  selectLayers?: import('ym-gis-2d/entity').IMapService[];
144
145
  showLoading?: boolean;
146
+ selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
145
147
  }> & Readonly<{}>, {
146
148
  showLoading: boolean;
149
+ selectType: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
147
150
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
148
151
  export default Select;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,6 +10,6 @@
10
10
  "element-plus": "^2.9.0",
11
11
  "jszip": "^3.10.1",
12
12
  "ol": "^9.2.4",
13
- "ym-gis-2d": "1.0.5"
13
+ "ym-gis-2d": "1.0.7"
14
14
  }
15
15
  }