ym-giswidget-2d 1.0.62 → 1.0.64

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.md CHANGED
@@ -1,33 +1,33 @@
1
- # olComponents
2
-
3
- This template should help get you started developing with Vue 3 in Vite.
4
-
5
- ## Recommended IDE Setup
6
-
7
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
-
9
- ## Type Support for `.vue` Imports in TS
10
-
11
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
12
-
13
- ## Customize configuration
14
-
15
- See [Vite Configuration Reference](https://vitejs.dev/config/).
16
-
17
- ## Project Setup
18
-
19
- ```sh
20
- pnpm install
21
- ```
22
-
23
- ### Compile and Hot-Reload for Development
24
-
25
- ```sh
26
- pnpm dev
27
- ```
28
-
29
- ### Type-Check, Compile and Minify for Production
30
-
31
- ```sh
32
- pnpm build
33
- ```
1
+ # olComponents
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
+
9
+ ## Type Support for `.vue` Imports in TS
10
+
11
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
12
+
13
+ ## Customize configuration
14
+
15
+ See [Vite Configuration Reference](https://vitejs.dev/config/).
16
+
17
+ ## Project Setup
18
+
19
+ ```sh
20
+ pnpm install
21
+ ```
22
+
23
+ ### Compile and Hot-Reload for Development
24
+
25
+ ```sh
26
+ pnpm dev
27
+ ```
28
+
29
+ ### Type-Check, Compile and Minify for Production
30
+
31
+ ```sh
32
+ pnpm build
33
+ ```
@@ -1,39 +1,39 @@
1
- @font-face {
2
- font-family: "iconfont"; /* Project id 4810358 */
3
- src: url('iconfont.woff2?t=1736821977689') format('woff2'),
4
- url('iconfont.woff?t=1736821977689') format('woff'),
5
- url('iconfont.ttf?t=1736821977689') format('truetype');
6
- }
7
-
8
- .iconfont {
9
- font-family: "iconfont" !important;
10
- font-size: 16px;
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- .icon-undock:before {
17
- content: "\e718";
18
- }
19
-
20
- .icon-dock:before {
21
- content: "\e601";
22
- }
23
-
24
- .icon-minimize:before {
25
- content: "\e646";
26
- }
27
-
28
- .icon-restore:before {
29
- content: "\e600";
30
- }
31
-
32
- .icon-close:before {
33
- content: "\e70f";
34
- }
35
-
36
- .icon-maximize:before {
37
- content: "\e651";
38
- }
39
-
1
+ @font-face {
2
+ font-family: "iconfont"; /* Project id 4810358 */
3
+ src: url('iconfont.woff2?t=1736821977689') format('woff2'),
4
+ url('iconfont.woff?t=1736821977689') format('woff'),
5
+ url('iconfont.ttf?t=1736821977689') format('truetype');
6
+ }
7
+
8
+ .iconfont {
9
+ font-family: "iconfont" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .icon-undock:before {
17
+ content: "\e718";
18
+ }
19
+
20
+ .icon-dock:before {
21
+ content: "\e601";
22
+ }
23
+
24
+ .icon-minimize:before {
25
+ content: "\e646";
26
+ }
27
+
28
+ .icon-restore:before {
29
+ content: "\e600";
30
+ }
31
+
32
+ .icon-close:before {
33
+ content: "\e70f";
34
+ }
35
+
36
+ .icon-maximize:before {
37
+ content: "\e651";
38
+ }
39
+
@@ -1,51 +1,51 @@
1
- {
2
- "id": "4810358",
3
- "name": "print-map",
4
- "font_family": "iconfont",
5
- "css_prefix_text": "icon-",
6
- "description": "",
7
- "glyphs": [
8
- {
9
- "icon_id": "21967058",
10
- "name": "未停靠",
11
- "font_class": "undock",
12
- "unicode": "e718",
13
- "unicode_decimal": 59160
14
- },
15
- {
16
- "icon_id": "39867073",
17
- "name": "停靠",
18
- "font_class": "dock",
19
- "unicode": "e601",
20
- "unicode_decimal": 58881
21
- },
22
- {
23
- "icon_id": "659177",
24
- "name": "最小化",
25
- "font_class": "minimize",
26
- "unicode": "e646",
27
- "unicode_decimal": 58950
28
- },
29
- {
30
- "icon_id": "4485682",
31
- "name": "还原窗体",
32
- "font_class": "restore",
33
- "unicode": "e600",
34
- "unicode_decimal": 58880
35
- },
36
- {
37
- "icon_id": "6705520",
38
- "name": "关闭",
39
- "font_class": "close",
40
- "unicode": "e70f",
41
- "unicode_decimal": 59151
42
- },
43
- {
44
- "icon_id": "11490920",
45
- "name": "最大化",
46
- "font_class": "maximize",
47
- "unicode": "e651",
48
- "unicode_decimal": 58961
49
- }
50
- ]
51
- }
1
+ {
2
+ "id": "4810358",
3
+ "name": "print-map",
4
+ "font_family": "iconfont",
5
+ "css_prefix_text": "icon-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "21967058",
10
+ "name": "未停靠",
11
+ "font_class": "undock",
12
+ "unicode": "e718",
13
+ "unicode_decimal": 59160
14
+ },
15
+ {
16
+ "icon_id": "39867073",
17
+ "name": "停靠",
18
+ "font_class": "dock",
19
+ "unicode": "e601",
20
+ "unicode_decimal": 58881
21
+ },
22
+ {
23
+ "icon_id": "659177",
24
+ "name": "最小化",
25
+ "font_class": "minimize",
26
+ "unicode": "e646",
27
+ "unicode_decimal": 58950
28
+ },
29
+ {
30
+ "icon_id": "4485682",
31
+ "name": "还原窗体",
32
+ "font_class": "restore",
33
+ "unicode": "e600",
34
+ "unicode_decimal": 58880
35
+ },
36
+ {
37
+ "icon_id": "6705520",
38
+ "name": "关闭",
39
+ "font_class": "close",
40
+ "unicode": "e70f",
41
+ "unicode_decimal": 59151
42
+ },
43
+ {
44
+ "icon_id": "11490920",
45
+ "name": "最大化",
46
+ "font_class": "maximize",
47
+ "unicode": "e651",
48
+ "unicode_decimal": 58961
49
+ }
50
+ ]
51
+ }
@@ -5,5 +5,9 @@ type __VLS_Props = {
5
5
  geometryType?: "polygon" | "point" | "polyline" | "rectangle" | "circle";
6
6
  style?: IStyle;
7
7
  };
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ drawEnd: (...args: any[]) => void;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onDrawEnd?: ((...args: any[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
13
  export default _default;
@@ -7,7 +7,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  geometryType: {},
8
8
  style: {}
9
9
  },
10
- setup(__props) {
10
+ emits: ["drawEnd"],
11
+ setup(__props, { emit: __emit }) {
12
+ const emit = __emit;
11
13
  const props = __props;
12
14
  onMounted(() => {
13
15
  const currentLayerInfo = props.map.currentEditLayer;
@@ -45,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
47
  features.tempLayer = tempLayer;
46
48
  features.fromType = "draw";
47
49
  }
50
+ emit("drawEnd", features);
48
51
  });
49
52
  });
50
53
  onUnmounted(() => {
@@ -2,9 +2,13 @@ export declare const Draw: import('../../utils').WithInstall<import('vue').Defin
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
3
  geometryType?: "polygon" | "point" | "polyline" | "rectangle" | "circle";
4
4
  style?: import('ym-gis-2d/entity/style/IStyle').default;
5
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ drawEnd: (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<{
6
8
  map: import('ym-gis-2d/mapView/Map').default;
7
9
  geometryType?: "polygon" | "point" | "polyline" | "rectangle" | "circle";
8
10
  style?: import('ym-gis-2d/entity/style/IStyle').default;
9
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
11
+ }> & Readonly<{
12
+ onDrawEnd?: ((...args: any[]) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
10
14
  export default Draw;
@@ -8,7 +8,10 @@ type __VLS_Props = {
8
8
  showOpacity?: boolean;
9
9
  showFilter?: boolean;
10
10
  };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ declare function setChecked(id: string, checked: boolean): void;
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
13
+ setChecked: typeof setChecked;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
15
  loaded: (...args: any[]) => void;
13
16
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
17
  onLoaded?: ((...args: any[]) => any) | undefined;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./LayerTree.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9b73a639"]]);
4
+ const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-657a915f"]]);
5
5
  export {
6
6
  _LayerTree as default
7
7
  };
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  showFilter: { type: Boolean, default: false }
28
28
  },
29
29
  emits: ["loaded"],
30
- setup(__props, { emit: __emit }) {
30
+ setup(__props, { expose: __expose, emit: __emit }) {
31
31
  const filterText = ref("");
32
32
  const tocTree = ref();
33
33
  const emit = __emit;
@@ -194,6 +194,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
194
194
  }
195
195
  return result;
196
196
  }
197
+ function setChecked(id, checked) {
198
+ var _a;
199
+ (_a = tocTree.value) == null ? void 0 : _a.setChecked(id, checked, true);
200
+ }
201
+ __expose({
202
+ setChecked
203
+ });
197
204
  return (_ctx, _cache) => {
198
205
  const _component_el_input = ElInput;
199
206
  const _component_el_tooltip = ElTooltip;
@@ -1,5 +1,5 @@
1
1
  @charset "UTF-8";
2
- .layer-btn[data-v-9b73a639] {
2
+ .layer-btn[data-v-657a915f] {
3
3
  background-color: var(--system-primary-color);
4
4
  color: var(--system-primary-text-color);
5
5
  font-size: var(--system-primary-text-size);
@@ -12,31 +12,31 @@
12
12
  cursor: pointer;
13
13
  border-radius: 3px;
14
14
  }
15
- .add-toc-tree[data-v-9b73a639] {
15
+ .add-toc-tree[data-v-657a915f] {
16
16
  color: var(--el-text-color-regular) !important;
17
17
  }
18
- .el-tree[data-v-9b73a639] {
18
+ .el-tree[data-v-657a915f] {
19
19
  background: unset;
20
20
  color: var(--system-primary-text-color);
21
21
  font-size: var(--system-primary-text-size);
22
22
  overflow: auto;
23
23
  max-height: 400px;
24
24
  }
25
- .el-tree[data-v-9b73a639] .el-tree-node :hover {
25
+ .el-tree[data-v-657a915f] .el-tree-node :hover {
26
26
  background: unset;
27
27
  }
28
- .el-tree[data-v-9b73a639] .el-tree-node :focus {
28
+ .el-tree[data-v-657a915f] .el-tree-node :focus {
29
29
  background: unset;
30
30
  }
31
- .el-tree[data-v-9b73a639] .el-tree-node .el-tree-node__content {
31
+ .el-tree[data-v-657a915f] .el-tree-node .el-tree-node__content {
32
32
  background: unset;
33
33
  align-items: unset;
34
34
  height: 100%;
35
35
  }
36
- .el-tree .active[data-v-9b73a639] {
36
+ .el-tree .active[data-v-657a915f] {
37
37
  color: var(--system-primary-text-active-color);
38
38
  }
39
- .el-tree .layer-span[data-v-9b73a639] .el-only-child__content {
39
+ .el-tree .layer-span[data-v-657a915f] .el-only-child__content {
40
40
  display: block;
41
41
  width: 95px;
42
42
  word-wrap: break-word;
@@ -48,45 +48,45 @@
48
48
  white-space: nowrap;
49
49
  /*强制不换行*/
50
50
  }
51
- .el-tree .custom-tree-node[data-v-9b73a639] {
51
+ .el-tree .custom-tree-node[data-v-657a915f] {
52
52
  min-width: 140px;
53
53
  }
54
- .el-tree .custom-tree-node .icontest[data-v-9b73a639] {
54
+ .el-tree .custom-tree-node .icontest[data-v-657a915f] {
55
55
  display: flex;
56
56
  font-size: var(--system-primary-text-size);
57
57
  }
58
- .el-tree .custom-tree-node .icontest .treeIconImg[data-v-9b73a639] {
58
+ .el-tree .custom-tree-node .icontest .treeIconImg[data-v-657a915f] {
59
59
  height: 17px;
60
60
  margin: 2px;
61
61
  }
62
- .el-tree .custom-tree-node .opacity-container[data-v-9b73a639] {
62
+ .el-tree .custom-tree-node .opacity-container[data-v-657a915f] {
63
63
  display: flex;
64
64
  }
65
- .el-tree .custom-tree-node .opacity-container .opacity-font[data-v-9b73a639] {
65
+ .el-tree .custom-tree-node .opacity-container .opacity-font[data-v-657a915f] {
66
66
  font-size: 12px;
67
67
  }
68
- .el-tree .custom-tree-node .opacity-container .opacity-label[data-v-9b73a639] {
68
+ .el-tree .custom-tree-node .opacity-container .opacity-label[data-v-657a915f] {
69
69
  margin-right: 13px;
70
70
  }
71
- .el-tree .custom-tree-node .opacity-container .opacity-text[data-v-9b73a639] {
71
+ .el-tree .custom-tree-node .opacity-container .opacity-text[data-v-657a915f] {
72
72
  margin-left: 13px;
73
73
  }
74
- .el-tree .el-slider[data-v-9b73a639] {
74
+ .el-tree .el-slider[data-v-657a915f] {
75
75
  height: 20px;
76
76
  margin-bottom: 8px;
77
77
  }
78
- .el-tree .el-slider[data-v-9b73a639] .el-slider__runway {
78
+ .el-tree .el-slider[data-v-657a915f] .el-slider__runway {
79
79
  background-color: var(--el-slider-runway-bg-color) !important;
80
80
  }
81
- .el-tree .el-slider[data-v-9b73a639] .el-slider__runway .el-slider__bar {
81
+ .el-tree .el-slider[data-v-657a915f] .el-slider__runway .el-slider__bar {
82
82
  background-color: var(--el-slider-main-bg-color) !important;
83
83
  }
84
- [data-v-9b73a639] .el-checkbox__label {
84
+ [data-v-657a915f] .el-checkbox__label {
85
85
  margin-left: 14px;
86
86
  }
87
- .el-input[data-v-9b73a639] .el-input__wrapper {
87
+ .el-input[data-v-657a915f] .el-input__wrapper {
88
88
  background-color: unset;
89
89
  }
90
- .el-input[data-v-9b73a639] .el-input__wrapper .el-input__inner {
90
+ .el-input[data-v-657a915f] .el-input__wrapper .el-input__inner {
91
91
  color: var(--system-primary-text-color);
92
92
  }
@@ -4,7 +4,9 @@ export declare const LayerTree: import('../../utils').WithInstall<import('vue').
4
4
  editLayerTag?: string;
5
5
  showOpacity?: boolean;
6
6
  showFilter?: boolean;
7
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ }, {
8
+ setChecked: (id: string, checked: boolean) => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
10
  loaded: (...args: any[]) => void;
9
11
  }, string, import('vue').PublicProps, Readonly<{
10
12
  data: import('ym-gis-2d/entity').IMapService[];