ym-giswidget-2d 1.0.63 → 1.0.65

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.
@@ -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[];