ry-vue-mapv3 0.1.1 → 0.1.2
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/dist/index.js +18 -6
- package/dist/index.mjs +18 -6
- package/dist/ryKMLs/src/index.d.ts +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21346,8 +21346,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
21346
21346
|
props: {
|
|
21347
21347
|
...new RyKMLDtoArr()
|
|
21348
21348
|
},
|
|
21349
|
-
|
|
21349
|
+
emits: ["clickEvent"],
|
|
21350
|
+
setup(__props, { emit: __emit }) {
|
|
21350
21351
|
const props = __props;
|
|
21352
|
+
const emit = __emit;
|
|
21351
21353
|
const bbox = vue.ref([]);
|
|
21352
21354
|
const bboxMap = vue.ref(/* @__PURE__ */ new Map());
|
|
21353
21355
|
const bboxGCJ02 = vue.ref([]);
|
|
@@ -21379,12 +21381,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
21379
21381
|
);
|
|
21380
21382
|
vue.watch(
|
|
21381
21383
|
() => props.insert,
|
|
21382
|
-
(val) => {
|
|
21383
|
-
|
|
21384
|
+
async (val) => {
|
|
21385
|
+
if (props.isFit) {
|
|
21386
|
+
emit("loadingEvent", true);
|
|
21387
|
+
}
|
|
21388
|
+
await _insert(val);
|
|
21384
21389
|
if (props.isFit) {
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
}, 50);
|
|
21390
|
+
setFit();
|
|
21391
|
+
emit("loadingEvent", true);
|
|
21388
21392
|
}
|
|
21389
21393
|
}
|
|
21390
21394
|
);
|
|
@@ -21420,21 +21424,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
21420
21424
|
}
|
|
21421
21425
|
);
|
|
21422
21426
|
const init = async (arr) => {
|
|
21427
|
+
if (props.isFit) {
|
|
21428
|
+
emit("loadingEvent", true);
|
|
21429
|
+
}
|
|
21423
21430
|
if (!arr || !arr.length) return;
|
|
21424
21431
|
for (let i = 0; i < arr.length; i++) {
|
|
21425
21432
|
await _insert(arr[0]);
|
|
21426
21433
|
}
|
|
21427
21434
|
if (props.isFit) {
|
|
21428
21435
|
setFit();
|
|
21436
|
+
emit("loadingEvent", false);
|
|
21429
21437
|
}
|
|
21430
21438
|
};
|
|
21431
21439
|
const _inserts = async (arr) => {
|
|
21440
|
+
if (props.isFit) {
|
|
21441
|
+
emit("loadingEvent", true);
|
|
21442
|
+
}
|
|
21432
21443
|
lastType.value = props.gpsType;
|
|
21433
21444
|
for (let i = 0; i < arr.length; i++) {
|
|
21434
21445
|
await _insert(arr[0]);
|
|
21435
21446
|
}
|
|
21436
21447
|
if (props.isFit) {
|
|
21437
21448
|
setFit();
|
|
21449
|
+
emit("loadingEvent", false);
|
|
21438
21450
|
}
|
|
21439
21451
|
};
|
|
21440
21452
|
const _insert = async (dto) => {
|
package/dist/index.mjs
CHANGED
|
@@ -21345,8 +21345,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
21345
21345
|
props: {
|
|
21346
21346
|
...new RyKMLDtoArr()
|
|
21347
21347
|
},
|
|
21348
|
-
|
|
21348
|
+
emits: ["clickEvent"],
|
|
21349
|
+
setup(__props, { emit: __emit }) {
|
|
21349
21350
|
const props = __props;
|
|
21351
|
+
const emit = __emit;
|
|
21350
21352
|
const bbox = ref([]);
|
|
21351
21353
|
const bboxMap = ref(/* @__PURE__ */ new Map());
|
|
21352
21354
|
const bboxGCJ02 = ref([]);
|
|
@@ -21378,12 +21380,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
21378
21380
|
);
|
|
21379
21381
|
watch(
|
|
21380
21382
|
() => props.insert,
|
|
21381
|
-
(val) => {
|
|
21382
|
-
|
|
21383
|
+
async (val) => {
|
|
21384
|
+
if (props.isFit) {
|
|
21385
|
+
emit("loadingEvent", true);
|
|
21386
|
+
}
|
|
21387
|
+
await _insert(val);
|
|
21383
21388
|
if (props.isFit) {
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
}, 50);
|
|
21389
|
+
setFit();
|
|
21390
|
+
emit("loadingEvent", true);
|
|
21387
21391
|
}
|
|
21388
21392
|
}
|
|
21389
21393
|
);
|
|
@@ -21419,21 +21423,29 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
21419
21423
|
}
|
|
21420
21424
|
);
|
|
21421
21425
|
const init = async (arr) => {
|
|
21426
|
+
if (props.isFit) {
|
|
21427
|
+
emit("loadingEvent", true);
|
|
21428
|
+
}
|
|
21422
21429
|
if (!arr || !arr.length) return;
|
|
21423
21430
|
for (let i = 0; i < arr.length; i++) {
|
|
21424
21431
|
await _insert(arr[0]);
|
|
21425
21432
|
}
|
|
21426
21433
|
if (props.isFit) {
|
|
21427
21434
|
setFit();
|
|
21435
|
+
emit("loadingEvent", false);
|
|
21428
21436
|
}
|
|
21429
21437
|
};
|
|
21430
21438
|
const _inserts = async (arr) => {
|
|
21439
|
+
if (props.isFit) {
|
|
21440
|
+
emit("loadingEvent", true);
|
|
21441
|
+
}
|
|
21431
21442
|
lastType.value = props.gpsType;
|
|
21432
21443
|
for (let i = 0; i < arr.length; i++) {
|
|
21433
21444
|
await _insert(arr[0]);
|
|
21434
21445
|
}
|
|
21435
21446
|
if (props.isFit) {
|
|
21436
21447
|
setFit();
|
|
21448
|
+
emit("loadingEvent", false);
|
|
21437
21449
|
}
|
|
21438
21450
|
};
|
|
21439
21451
|
const _insert = async (dto) => {
|
|
@@ -40,7 +40,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
40
40
|
type: NumberConstructor;
|
|
41
41
|
default: number;
|
|
42
42
|
};
|
|
43
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
43
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
44
|
+
clickEvent: (...args: any[]) => void;
|
|
45
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
44
46
|
modelArr: {
|
|
45
47
|
type: ArrayConstructor;
|
|
46
48
|
default: () => never[];
|
|
@@ -81,7 +83,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
81
83
|
type: NumberConstructor;
|
|
82
84
|
default: number;
|
|
83
85
|
};
|
|
84
|
-
}>> & Readonly<{
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onClickEvent?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
}>, {
|
|
85
89
|
map: Record<string, any>;
|
|
86
90
|
clear: boolean;
|
|
87
91
|
time: number;
|