ym-giswidget-2d 1.0.41 → 1.0.42

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,7 +5,7 @@ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
5
5
  */
6
6
  type __VLS_Props = {
7
7
  map: OLMap;
8
- layers: IMapService[];
8
+ data: IMapService[];
9
9
  title?: string;
10
10
  };
11
11
  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, {
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Legend.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _Legend = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-83757dcb"]]);
4
+ const _Legend = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-51b5f7d7"]]);
5
5
  export {
6
6
  _Legend as default
7
7
  };
@@ -4,7 +4,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Legend",
5
5
  props: {
6
6
  map: {},
7
- layers: {},
7
+ data: {},
8
8
  title: {}
9
9
  },
10
10
  setup(__props) {
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  const control = new LegendControl({
15
15
  target: legendRef.value,
16
16
  className: "legend",
17
- layerInfos: props.layers,
17
+ layerInfos: props.data,
18
18
  title: props.title
19
19
  });
20
20
  props.map.controlManager.addControl("legend", control);
@@ -1,11 +1,11 @@
1
- .legend-container[data-v-83757dcb] {
1
+ .legend-container[data-v-51b5f7d7] {
2
2
  position: absolute;
3
3
  left: 10px;
4
4
  top: 10px;
5
5
  background-color: var(--system-primary-color);
6
6
  border: 1px solid var(--system-primary-border-color);
7
7
  }
8
- .legend-container[data-v-83757dcb] .legend {
8
+ .legend-container[data-v-51b5f7d7] .legend {
9
9
  color: var(--system-primary-text-color);
10
10
  margin: 9px;
11
11
  }
@@ -1,10 +1,10 @@
1
1
  export declare const Legend: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
- layers: import('ym-gis-2d/entity').IMapService[];
3
+ data: import('ym-gis-2d/entity').IMapService[];
4
4
  title?: string;
5
5
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
6
  map: import('ym-gis-2d/mapView/Map').default;
7
- layers: import('ym-gis-2d/entity').IMapService[];
7
+ data: import('ym-gis-2d/entity').IMapService[];
8
8
  title?: string;
9
9
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
10
  legendRef: HTMLDivElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
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.18"
13
+ "ym-gis-2d": "1.0.19"
14
14
  }
15
15
  }