gisviewer-vue3-arcgis 1.0.143 → 1.0.145

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.
Files changed (34) hide show
  1. package/es/src/gis-map/gis-map.vue.d.ts +5 -17
  2. package/es/src/gis-map/gis-map.vue.mjs +109 -106
  3. package/es/src/gis-map/index.d.ts +5 -17
  4. package/es/src/gis-map/stores/appData.d.ts +1 -0
  5. package/es/src/gis-map/stores/appData.mjs +2 -1
  6. package/es/src/gis-map/utils/open-drive-renderer/index.d.ts +3 -0
  7. package/es/src/gis-map/utils/open-drive-renderer/index.mjs +258 -138
  8. package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +19 -19
  9. package/es/src/gis-map/utils/sketchView.d.ts +1 -1
  10. package/es/src/gis-map/utils/sketchView.mjs +16 -11
  11. package/es/src/types/index.d.ts +2 -2
  12. package/es/style.css +1 -1
  13. package/lib/src/gis-map/gis-map.vue.d.ts +5 -17
  14. package/lib/src/gis-map/gis-map.vue.js +1 -1
  15. package/lib/src/gis-map/index.d.ts +5 -17
  16. package/lib/src/gis-map/stores/appData.d.ts +1 -0
  17. package/lib/src/gis-map/stores/appData.js +1 -1
  18. package/lib/src/gis-map/utils/open-drive-renderer/index.d.ts +3 -0
  19. package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
  20. package/lib/src/gis-map/utils/signal-control-area-controller/index.js +1 -1
  21. package/lib/src/gis-map/utils/sketchView.d.ts +1 -1
  22. package/lib/src/gis-map/utils/sketchView.js +1 -1
  23. package/lib/src/types/index.d.ts +2 -2
  24. package/package.json +2 -1
  25. package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
  26. package/es/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
  27. package/es/src/gis-map/utils/components/sketch-tool.vue.mjs +0 -7
  28. package/es/src/gis-map/utils/components/sketch-tool.vue2.mjs +0 -48
  29. package/es/src/gis-map/utils/components/sketch-tool.vue3.mjs +0 -4
  30. package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
  31. package/lib/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
  32. package/lib/src/gis-map/utils/components/sketch-tool.vue.js +0 -1
  33. package/lib/src/gis-map/utils/components/sketch-tool.vue2.js +0 -1
  34. package/lib/src/gis-map/utils/components/sketch-tool.vue3.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gisviewer-vue3-arcgis",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -30,6 +30,7 @@
30
30
  "@turf/helpers": "^6.5.0",
31
31
  "@turf/intersect": "^6.5.0",
32
32
  "@turf/line-intersect": "^7.0.0",
33
+ "@turf/line-slice-along": "^7.1.0",
33
34
  "@turf/turf": "6.5.0",
34
35
  "@types/pako": "^2.0.0",
35
36
  "@vitest/coverage-c8": "^0.29.2",
@@ -1,9 +0,0 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
7
- export {
8
- s as default
9
- };
@@ -1,18 +0,0 @@
1
- import SketchViewModel from '@arcgis/core/widgets/Sketch/SketchViewModel';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- view: {
4
- type: null;
5
- required: true;
6
- };
7
- }, {
8
- props: any;
9
- sketchVM: SketchViewModel;
10
- resetButtonHandler: () => void;
11
- geometrySelectionHandler: (event: any) => void;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
- view: {
14
- type: null;
15
- required: true;
16
- };
17
- }>>, {}, {}>;
18
- export default _sfc_main;
@@ -1,7 +0,0 @@
1
- import o from "./sketch-tool.vue2.mjs";
2
- import "./sketch-tool.vue3.mjs";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f302a42f"]]);
5
- export {
6
- m as default
7
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent as a, onMounted as m, onUnmounted as p, openBlock as u, createElementBlock as d, createElementVNode as n } from "vue";
2
- import g from "@arcgis/core/layers/GraphicsLayer";
3
- import y from "@arcgis/core/widgets/Sketch/SketchViewModel";
4
- const k = { class: "gisviewer-sketch-tool gisviewer-sketch-tool-position" }, _ = /* @__PURE__ */ a({
5
- __name: "sketch-tool",
6
- props: {
7
- view: {}
8
- },
9
- setup(l) {
10
- const c = l;
11
- let o;
12
- m(() => {
13
- const e = new g();
14
- c.view.map.add(e), o = new y({
15
- layer: e,
16
- view: c.view
17
- });
18
- }), p(() => {
19
- o.destroy();
20
- });
21
- const i = () => {
22
- }, r = (e) => {
23
- var s;
24
- console.log(e);
25
- const t = (s = e.target) == null ? void 0 : s.value;
26
- console.log(t), o.create(t);
27
- };
28
- return (e, t) => (u(), d("div", k, [
29
- n("button", {
30
- class: "esri-icon-pan geometry-button",
31
- onClick: i
32
- }),
33
- n("button", {
34
- class: "esri-icon-cursor geometry-button",
35
- value: "rectangle",
36
- onClick: r
37
- }),
38
- n("button", {
39
- class: "esri-icon-polygon geometry-button",
40
- value: "polygon",
41
- onClick: r
42
- })
43
- ]));
44
- }
45
- });
46
- export {
47
- _ as default
48
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t};exports.default=u;
@@ -1,18 +0,0 @@
1
- import SketchViewModel from '@arcgis/core/widgets/Sketch/SketchViewModel';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- view: {
4
- type: null;
5
- required: true;
6
- };
7
- }, {
8
- props: any;
9
- sketchVM: SketchViewModel;
10
- resetButtonHandler: () => void;
11
- geometrySelectionHandler: (event: any) => void;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
- view: {
14
- type: null;
15
- required: true;
16
- };
17
- }>>, {}, {}>;
18
- export default _sfc_main;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./sketch-tool.vue2.js");require("./sketch-tool.vue3.js");const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f302a42f"]]);exports.default=u;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@arcgis/core/layers/GraphicsLayer"),u=require("@arcgis/core/widgets/Sketch/SketchViewModel"),d={class:"gisviewer-sketch-tool gisviewer-sketch-tool-position"},g=e.defineComponent({__name:"sketch-tool",props:{view:{}},setup(l){const c=l;let t;e.onMounted(()=>{const o=new a;c.view.map.add(o),t=new u({layer:o,view:c.view})}),e.onUnmounted(()=>{t.destroy()});const i=()=>{},r=o=>{var s;console.log(o);const n=(s=o.target)==null?void 0:s.value;console.log(n),t.create(n)};return(o,n)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("button",{class:"esri-icon-pan geometry-button",onClick:i}),e.createElementVNode("button",{class:"esri-icon-cursor geometry-button",value:"rectangle",onClick:r}),e.createElementVNode("button",{class:"esri-icon-polygon geometry-button",value:"polygon",onClick:r})]))}});exports.default=g;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;