ym-giswidget-2d 1.0.81 → 1.0.82

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.
@@ -1,14 +1,15 @@
1
+ import { ColorRampType } from 'ym-gis-2d/controls/LegendControl';
1
2
  import { IMapService } from 'ym-gis-2d/entity';
2
3
  import { default as OLMap } from 'ym-gis-2d/mapView/Map';
3
- /**
4
- * showGeodetic 是否显示经纬度坐标,默认为false。如果是true,则显示经纬度坐标,否则根据地图坐标系显示坐标
5
- */
6
4
  type __VLS_Props = {
7
5
  map: OLMap;
8
6
  data: IMapService[];
9
7
  title?: string;
8
+ colorRampType?: ColorRampType;
10
9
  };
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, {
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ colorRampType: ColorRampType;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
13
  legendRef: HTMLDivElement;
13
14
  }, HTMLDivElement>;
14
15
  export default _default;
@@ -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-51b5f7d7"]]);
4
+ const _Legend = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d6cb883f"]]);
5
5
  export {
6
6
  _Legend as default
7
7
  };
@@ -5,7 +5,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
6
6
  map: {},
7
7
  data: {},
8
- title: {}
8
+ title: {},
9
+ colorRampType: { default: "segment" }
9
10
  },
10
11
  setup(__props) {
11
12
  const props = __props;
@@ -15,7 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  target: legendRef.value,
16
17
  className: "legend",
17
18
  layerInfos: props.data,
18
- title: props.title
19
+ title: props.title,
20
+ colorRampType: props.colorRampType
19
21
  });
20
22
  props.map.controlManager.addControl("legend", control);
21
23
  });
@@ -1,11 +1,11 @@
1
- .legend-container[data-v-51b5f7d7] {
1
+ .legend-container[data-v-d6cb883f] {
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-51b5f7d7] .legend {
8
+ .legend-container[data-v-d6cb883f] .legend {
9
9
  color: var(--system-primary-text-color);
10
10
  margin: 9px;
11
11
  }
@@ -2,11 +2,15 @@ export declare const Legend: import('../../utils').WithInstall<import('vue').Def
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
3
  data: import('ym-gis-2d/entity').IMapService[];
4
4
  title?: string;
5
+ colorRampType?: import('ym-gis-2d/controls/LegendControl').ColorRampType;
5
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
7
  map: import('ym-gis-2d/mapView/Map').default;
7
8
  data: import('ym-gis-2d/entity').IMapService[];
8
9
  title?: string;
9
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ colorRampType?: import('ym-gis-2d/controls/LegendControl').ColorRampType;
11
+ }> & Readonly<{}>, {
12
+ colorRampType: import('ym-gis-2d/controls/LegendControl').ColorRampType;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
14
  legendRef: HTMLDivElement;
11
15
  }, HTMLDivElement>>;
12
16
  export default Legend;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
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.51"
13
+ "ym-gis-2d": "1.0.52"
14
14
  }
15
15
  }