@spuermomonga/vue3-bmapgl 0.0.5 → 0.0.7
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 +435 -26
- package/dist/index.prod.js +1 -1
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.mjs +1 -0
- package/es/_mixins/index.mjs.map +1 -1
- package/es/_mixins/use-config.mjs +19 -8
- package/es/_mixins/use-config.mjs.map +1 -1
- package/es/_mixins/use-map-instance.d.ts +1 -0
- package/es/_mixins/use-map-instance.mjs +10 -0
- package/es/_mixins/use-map-instance.mjs.map +1 -0
- package/es/_utils/call.d.ts +7 -0
- package/es/_utils/call.mjs +10 -0
- package/es/_utils/call.mjs.map +1 -0
- package/es/_utils/index.d.ts +1 -0
- package/es/_utils/index.mjs +2 -1
- package/es/_utils/index.mjs.map +1 -1
- package/es/_utils/map.d.ts +1 -0
- package/es/_utils/map.mjs +14 -1
- package/es/_utils/map.mjs.map +1 -1
- package/es/components.d.ts +4 -0
- package/es/components.mjs +7 -0
- package/es/components.mjs.map +1 -1
- package/es/config-provider/src/config-provider-props.d.ts +10 -1
- package/es/config-provider/src/config-provider-props.mjs.map +1 -1
- package/es/index.mjs +7 -0
- package/es/index.mjs.map +1 -1
- package/es/layer/tile/index.d.ts +1 -0
- package/es/layer/tile/index.mjs +1 -1
- package/es/layer/tile/src/tile.mjs +1 -1
- package/es/layer/tile/src/tile.mjs.map +1 -1
- package/es/layer/xyz/index.d.ts +3 -0
- package/es/layer/xyz/index.mjs +2 -1
- package/es/layer/xyz/index.mjs.map +1 -1
- package/es/layer/xyz/src/xyz-props.d.ts +62 -0
- package/es/layer/xyz/src/xyz-props.mjs +58 -0
- package/es/layer/xyz/src/xyz-props.mjs.map +1 -0
- package/es/layer/xyz/src/xyz.d.ts +118 -1
- package/es/layer/xyz/src/xyz.mjs +96 -4
- package/es/layer/xyz/src/xyz.mjs.map +1 -1
- package/es/map/index.d.ts +1 -0
- package/es/map/index.mjs +1 -0
- package/es/map/index.mjs.map +1 -1
- package/es/map/src/constants.d.ts +3 -0
- package/es/map/src/constants.mjs +4 -0
- package/es/map/src/constants.mjs.map +1 -0
- package/es/map/src/interface.d.ts +6 -0
- package/es/map/src/interface.mjs +2 -0
- package/es/map/src/interface.mjs.map +1 -0
- package/es/map/src/map-props.d.ts +42 -0
- package/es/map/src/map-props.mjs +42 -1
- package/es/map/src/map-props.mjs.map +1 -1
- package/es/map/src/map.d.ts +91 -0
- package/es/map/src/map.mjs +76 -17
- package/es/map/src/map.mjs.map +1 -1
- package/es/map/src/style/map.module.css.mjs +2 -2
- package/es/overlay/polygon/index.d.ts +3 -0
- package/es/overlay/polygon/index.mjs +2 -1
- package/es/overlay/polygon/index.mjs.map +1 -1
- package/es/overlay/polygon/src/polygon-props.d.ts +51 -0
- package/es/overlay/polygon/src/polygon-props.mjs +51 -0
- package/es/overlay/polygon/src/polygon-props.mjs.map +1 -0
- package/es/overlay/polygon/src/polygon.d.ts +108 -0
- package/es/overlay/polygon/src/polygon.mjs +63 -0
- package/es/overlay/polygon/src/polygon.mjs.map +1 -0
- package/es/overlay/sector/index.d.ts +1 -0
- package/es/overlay/sector/index.mjs +2 -0
- package/es/overlay/sector/index.mjs.map +1 -0
- package/es/overlay/sector/src/sector-props.mjs +2 -0
- package/es/overlay/sector/src/sector-props.mjs.map +1 -0
- package/es/overlay/sector/src/sector.d.ts +2 -0
- package/es/overlay/sector/src/sector.mjs +11 -0
- package/es/overlay/sector/src/sector.mjs.map +1 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +2 -0
- package/lib/_mixins/index.js.map +1 -1
- package/lib/_mixins/use-config.js +19 -8
- package/lib/_mixins/use-config.js.map +1 -1
- package/lib/_mixins/use-map-instance.d.ts +1 -0
- package/lib/_mixins/use-map-instance.js +12 -0
- package/lib/_mixins/use-map-instance.js.map +1 -0
- package/lib/_utils/call.d.ts +7 -0
- package/lib/_utils/call.js +12 -0
- package/lib/_utils/call.js.map +1 -0
- package/lib/_utils/index.d.ts +1 -0
- package/lib/_utils/index.js +3 -0
- package/lib/_utils/index.js.map +1 -1
- package/lib/_utils/map.d.ts +1 -0
- package/lib/_utils/map.js +14 -0
- package/lib/_utils/map.js.map +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/components.js +14 -0
- package/lib/components.js.map +1 -1
- package/lib/config-provider/src/config-provider-props.d.ts +10 -1
- package/lib/config-provider/src/config-provider-props.js.map +1 -1
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -1
- package/lib/layer/tile/index.d.ts +1 -0
- package/lib/layer/tile/index.js +5 -0
- package/lib/layer/tile/index.js.map +1 -1
- package/lib/layer/tile/src/tile.js +1 -1
- package/lib/layer/tile/src/tile.js.map +1 -1
- package/lib/layer/xyz/index.d.ts +3 -0
- package/lib/layer/xyz/index.js +7 -0
- package/lib/layer/xyz/index.js.map +1 -1
- package/lib/layer/xyz/src/xyz-props.d.ts +62 -0
- package/lib/layer/xyz/src/xyz-props.js +60 -0
- package/lib/layer/xyz/src/xyz-props.js.map +1 -0
- package/lib/layer/xyz/src/xyz.d.ts +118 -1
- package/lib/layer/xyz/src/xyz.js +95 -3
- package/lib/layer/xyz/src/xyz.js.map +1 -1
- package/lib/map/index.d.ts +1 -0
- package/lib/map/index.js +2 -0
- package/lib/map/index.js.map +1 -1
- package/lib/map/src/constants.d.ts +3 -0
- package/lib/map/src/constants.js +6 -0
- package/lib/map/src/constants.js.map +1 -0
- package/lib/map/src/interface.d.ts +6 -0
- package/lib/map/src/interface.js +3 -0
- package/lib/map/src/interface.js.map +1 -0
- package/lib/map/src/map-props.d.ts +42 -0
- package/lib/map/src/map-props.js +42 -1
- package/lib/map/src/map-props.js.map +1 -1
- package/lib/map/src/map.d.ts +91 -0
- package/lib/map/src/map.js +75 -16
- package/lib/map/src/map.js.map +1 -1
- package/lib/map/src/style/map.module.css.js +2 -2
- package/lib/overlay/polygon/index.d.ts +3 -0
- package/lib/overlay/polygon/index.js +7 -0
- package/lib/overlay/polygon/index.js.map +1 -1
- package/lib/overlay/polygon/src/polygon-props.d.ts +51 -0
- package/lib/overlay/polygon/src/polygon-props.js +53 -0
- package/lib/overlay/polygon/src/polygon-props.js.map +1 -0
- package/lib/overlay/polygon/src/polygon.d.ts +108 -0
- package/lib/overlay/polygon/src/polygon.js +65 -0
- package/lib/overlay/polygon/src/polygon.js.map +1 -0
- package/lib/overlay/sector/index.d.ts +1 -0
- package/lib/overlay/sector/index.js +8 -0
- package/lib/overlay/sector/index.js.map +1 -0
- package/lib/overlay/sector/src/sector-props.js +3 -0
- package/lib/overlay/sector/src/sector-props.js.map +1 -0
- package/lib/overlay/sector/src/sector.d.ts +2 -0
- package/lib/overlay/sector/src/sector.js +13 -0
- package/lib/overlay/sector/src/sector.js.map +1 -0
- package/package.json +2 -2
- package/es/overlay/polygon/src/Polygon.vue.mjs +0 -11
- package/es/overlay/polygon/src/Polygon.vue.mjs.map +0 -1
- package/lib/overlay/polygon/src/Polygon.vue.js +0 -13
- package/lib/overlay/polygon/src/Polygon.vue.js.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from '../../../_utils';
|
|
3
|
+
type TemplateFn = (x: number, y: number, z: number) => number;
|
|
4
|
+
type BTemplateFn = (x: number, y: number, z: number) => string;
|
|
5
|
+
type GetTile = (info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void;
|
|
6
|
+
export declare const xyzLayerProps: {
|
|
7
|
+
readonly visible: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: true;
|
|
10
|
+
};
|
|
11
|
+
readonly getTile: {
|
|
12
|
+
readonly type: PropType<GetTile>;
|
|
13
|
+
};
|
|
14
|
+
readonly useThumbData: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly xTemplate: {
|
|
19
|
+
readonly type: PropType<TemplateFn>;
|
|
20
|
+
};
|
|
21
|
+
readonly yTemplate: {
|
|
22
|
+
readonly type: PropType<TemplateFn>;
|
|
23
|
+
};
|
|
24
|
+
readonly zTemplate: {
|
|
25
|
+
readonly type: PropType<TemplateFn>;
|
|
26
|
+
};
|
|
27
|
+
readonly bTemplate: {
|
|
28
|
+
readonly type: PropType<BTemplateFn>;
|
|
29
|
+
};
|
|
30
|
+
readonly minZoom: {
|
|
31
|
+
readonly type: NumberConstructor;
|
|
32
|
+
readonly default: 3;
|
|
33
|
+
};
|
|
34
|
+
readonly maxZoom: {
|
|
35
|
+
readonly type: NumberConstructor;
|
|
36
|
+
readonly default: 23;
|
|
37
|
+
};
|
|
38
|
+
readonly extent: {
|
|
39
|
+
readonly type: PropType<number[]>;
|
|
40
|
+
};
|
|
41
|
+
readonly extentCRSIsWGS84: {
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
readonly boundary: {
|
|
46
|
+
readonly type: PropType<string[]>;
|
|
47
|
+
};
|
|
48
|
+
readonly zIndex: {
|
|
49
|
+
readonly type: NumberConstructor;
|
|
50
|
+
readonly default: 1;
|
|
51
|
+
};
|
|
52
|
+
readonly zIndexTop: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: false;
|
|
55
|
+
};
|
|
56
|
+
readonly tms: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type XyzLayerProps = ExtractPublicPropTypes<typeof xyzLayerProps>;
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const xyzLayerProps = {
|
|
4
|
+
visible: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: true
|
|
7
|
+
},
|
|
8
|
+
getTile: {
|
|
9
|
+
type: Function
|
|
10
|
+
},
|
|
11
|
+
useThumbData: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
xTemplate: {
|
|
16
|
+
type: Function
|
|
17
|
+
},
|
|
18
|
+
yTemplate: {
|
|
19
|
+
type: Function
|
|
20
|
+
},
|
|
21
|
+
zTemplate: {
|
|
22
|
+
type: Function
|
|
23
|
+
},
|
|
24
|
+
bTemplate: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
minZoom: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 3
|
|
30
|
+
},
|
|
31
|
+
maxZoom: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 23
|
|
34
|
+
},
|
|
35
|
+
extent: {
|
|
36
|
+
type: Array
|
|
37
|
+
},
|
|
38
|
+
extentCRSIsWGS84: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
boundary: {
|
|
43
|
+
type: Array
|
|
44
|
+
},
|
|
45
|
+
zIndex: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 1
|
|
48
|
+
},
|
|
49
|
+
zIndexTop: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false
|
|
52
|
+
},
|
|
53
|
+
tms: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
exports.xyzLayerProps = xyzLayerProps;
|
|
60
|
+
//# sourceMappingURL=xyz-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xyz-props.js","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz-props.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { ExtractPublicPropTypes } from '../../../_utils'\r\n\r\ntype TemplateFn = (x: number, y: number, z: number) => number\r\ntype BTemplateFn = (x: number, y: number, z: number) => string\r\ntype GetTile = (info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void\r\n\r\nexport const xyzLayerProps = {\r\n visible: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n getTile: {\r\n type: Function as PropType<GetTile>,\r\n },\r\n useThumbData: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n xTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n yTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n zTemplate: {\r\n type: Function as PropType<TemplateFn>,\r\n },\r\n bTemplate: {\r\n type: Function as PropType<BTemplateFn>,\r\n },\r\n minZoom: {\r\n type: Number,\r\n default: 3,\r\n },\r\n maxZoom: {\r\n type: Number,\r\n default: 23,\r\n },\r\n extent: {\r\n type: Array as PropType<number[]>,\r\n },\r\n extentCRSIsWGS84: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n boundary: {\r\n type: Array as PropType<string[]>,\r\n },\r\n zIndex: {\r\n type: Number,\r\n default: 1,\r\n },\r\n zIndexTop: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n tms: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n} as const\r\n\r\nexport type XyzLayerProps = ExtractPublicPropTypes<typeof xyzLayerProps>\r\n"],"names":[],"mappings":";;AAOO,MAAM,aAAA,GAAgB;AAAA,EAC3B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACP;AAAA,EACD,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACP;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACP;AAAA,EACD,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,GACP;AAAA,EACD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;;;;;"}
|
|
@@ -1,2 +1,119 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly visible: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly default: true;
|
|
5
|
+
};
|
|
6
|
+
readonly getTile: {
|
|
7
|
+
readonly type: import("vue").PropType<(info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void>;
|
|
8
|
+
};
|
|
9
|
+
readonly useThumbData: {
|
|
10
|
+
readonly type: BooleanConstructor;
|
|
11
|
+
readonly default: false;
|
|
12
|
+
};
|
|
13
|
+
readonly xTemplate: {
|
|
14
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
15
|
+
};
|
|
16
|
+
readonly yTemplate: {
|
|
17
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
18
|
+
};
|
|
19
|
+
readonly zTemplate: {
|
|
20
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
21
|
+
};
|
|
22
|
+
readonly bTemplate: {
|
|
23
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => string>;
|
|
24
|
+
};
|
|
25
|
+
readonly minZoom: {
|
|
26
|
+
readonly type: NumberConstructor;
|
|
27
|
+
readonly default: 3;
|
|
28
|
+
};
|
|
29
|
+
readonly maxZoom: {
|
|
30
|
+
readonly type: NumberConstructor;
|
|
31
|
+
readonly default: 23;
|
|
32
|
+
};
|
|
33
|
+
readonly extent: {
|
|
34
|
+
readonly type: import("vue").PropType<number[]>;
|
|
35
|
+
};
|
|
36
|
+
readonly extentCRSIsWGS84: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly boundary: {
|
|
41
|
+
readonly type: import("vue").PropType<string[]>;
|
|
42
|
+
};
|
|
43
|
+
readonly zIndex: {
|
|
44
|
+
readonly type: NumberConstructor;
|
|
45
|
+
readonly default: 1;
|
|
46
|
+
};
|
|
47
|
+
readonly zIndexTop: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
readonly tms: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
55
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
readonly visible: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
readonly getTile: {
|
|
61
|
+
readonly type: import("vue").PropType<(info: any, cb: (image: string | HTMLImageElement | HTMLCanvasElement) => void) => void>;
|
|
62
|
+
};
|
|
63
|
+
readonly useThumbData: {
|
|
64
|
+
readonly type: BooleanConstructor;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly xTemplate: {
|
|
68
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
69
|
+
};
|
|
70
|
+
readonly yTemplate: {
|
|
71
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
72
|
+
};
|
|
73
|
+
readonly zTemplate: {
|
|
74
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => number>;
|
|
75
|
+
};
|
|
76
|
+
readonly bTemplate: {
|
|
77
|
+
readonly type: import("vue").PropType<(x: number, y: number, z: number) => string>;
|
|
78
|
+
};
|
|
79
|
+
readonly minZoom: {
|
|
80
|
+
readonly type: NumberConstructor;
|
|
81
|
+
readonly default: 3;
|
|
82
|
+
};
|
|
83
|
+
readonly maxZoom: {
|
|
84
|
+
readonly type: NumberConstructor;
|
|
85
|
+
readonly default: 23;
|
|
86
|
+
};
|
|
87
|
+
readonly extent: {
|
|
88
|
+
readonly type: import("vue").PropType<number[]>;
|
|
89
|
+
};
|
|
90
|
+
readonly extentCRSIsWGS84: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly default: false;
|
|
93
|
+
};
|
|
94
|
+
readonly boundary: {
|
|
95
|
+
readonly type: import("vue").PropType<string[]>;
|
|
96
|
+
};
|
|
97
|
+
readonly zIndex: {
|
|
98
|
+
readonly type: NumberConstructor;
|
|
99
|
+
readonly default: 1;
|
|
100
|
+
};
|
|
101
|
+
readonly zIndexTop: {
|
|
102
|
+
readonly type: BooleanConstructor;
|
|
103
|
+
readonly default: false;
|
|
104
|
+
};
|
|
105
|
+
readonly tms: {
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly default: false;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{}>, {
|
|
110
|
+
readonly minZoom: number;
|
|
111
|
+
readonly maxZoom: number;
|
|
112
|
+
readonly visible: boolean;
|
|
113
|
+
readonly useThumbData: boolean;
|
|
114
|
+
readonly extentCRSIsWGS84: boolean;
|
|
115
|
+
readonly zIndex: number;
|
|
116
|
+
readonly zIndexTop: boolean;
|
|
117
|
+
readonly tms: boolean;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
119
|
export default _default;
|
package/lib/layer/xyz/src/xyz.js
CHANGED
|
@@ -1,11 +1,103 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
+
var xyzProps = require('./xyz-props.js');
|
|
5
|
+
var useMapInstance = require('../../../_mixins/use-map-instance.js');
|
|
4
6
|
|
|
5
7
|
var xyz = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
name: "
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
name: "XyzLayer",
|
|
9
|
+
props: xyzProps.xyzLayerProps,
|
|
10
|
+
setup(props) {
|
|
11
|
+
const mapInstance = useMapInstance();
|
|
12
|
+
let layer = null;
|
|
13
|
+
const setZIndex = (zIndex) => {
|
|
14
|
+
layer === null || layer === void 0 ? void 0 : layer.setZIndex(zIndex);
|
|
15
|
+
};
|
|
16
|
+
const setBoundary = (boundary) => {
|
|
17
|
+
boundary && !boundary.length ? layer === null || layer === void 0 ? void 0 : layer.addBoundary(boundary) : layer === null || layer === void 0 ? void 0 : layer.clearBoundary();
|
|
18
|
+
};
|
|
19
|
+
const setZIndexTop = (zIndexTop) => {
|
|
20
|
+
zIndexTop && (layer === null || layer === void 0 ? void 0 : layer.setZIndexTop());
|
|
21
|
+
};
|
|
22
|
+
const initLayerOptions = () => {
|
|
23
|
+
const {
|
|
24
|
+
zIndex,
|
|
25
|
+
zIndexTop
|
|
26
|
+
} = props;
|
|
27
|
+
setZIndex(zIndex);
|
|
28
|
+
setZIndexTop(zIndexTop);
|
|
29
|
+
};
|
|
30
|
+
const startWatchProps = () => {
|
|
31
|
+
vue.watch(() => props.zIndex, setZIndex);
|
|
32
|
+
vue.watch(() => props.boundary, setBoundary);
|
|
33
|
+
};
|
|
34
|
+
const init = () => {
|
|
35
|
+
const {
|
|
36
|
+
visible,
|
|
37
|
+
getTile,
|
|
38
|
+
xTemplate,
|
|
39
|
+
yTemplate,
|
|
40
|
+
zTemplate,
|
|
41
|
+
bTemplate,
|
|
42
|
+
minZoom,
|
|
43
|
+
maxZoom,
|
|
44
|
+
extent,
|
|
45
|
+
extentCRSIsWGS84,
|
|
46
|
+
boundary,
|
|
47
|
+
useThumbData,
|
|
48
|
+
tms
|
|
49
|
+
} = props;
|
|
50
|
+
layer = new BMapGL.XYZLayer({
|
|
51
|
+
xTemplate,
|
|
52
|
+
yTemplate,
|
|
53
|
+
zTemplate,
|
|
54
|
+
bTemplate,
|
|
55
|
+
minZoom,
|
|
56
|
+
maxZoom,
|
|
57
|
+
extent,
|
|
58
|
+
extentCRSIsWGS84,
|
|
59
|
+
boundary,
|
|
60
|
+
useThumbData,
|
|
61
|
+
tms
|
|
62
|
+
});
|
|
63
|
+
initLayerOptions();
|
|
64
|
+
if (visible) {
|
|
65
|
+
if (getTile) {
|
|
66
|
+
mapInstance().addTileLayer(layer);
|
|
67
|
+
layer.loadRasterTileData = function(tileInfo, callback) {
|
|
68
|
+
const key = this.getTileKey(tileInfo);
|
|
69
|
+
const handleImageLoad = (image) => {
|
|
70
|
+
image.tileInfo = tileInfo;
|
|
71
|
+
callback && callback(image, key);
|
|
72
|
+
};
|
|
73
|
+
const handleError = () => callback && callback(null, key);
|
|
74
|
+
getTile(tileInfo, (img) => {
|
|
75
|
+
if (typeof img === "string" || img instanceof HTMLCanvasElement) {
|
|
76
|
+
const image = new Image();
|
|
77
|
+
image.crossOrigin = "anonymous";
|
|
78
|
+
image.onload = () => handleImageLoad(image);
|
|
79
|
+
image.onerror = handleError;
|
|
80
|
+
image.src = typeof img === "string" ? img : img.toDataURL();
|
|
81
|
+
} else if (img instanceof HTMLImageElement) {
|
|
82
|
+
handleImageLoad(img);
|
|
83
|
+
} else {
|
|
84
|
+
handleError();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
} else {
|
|
89
|
+
mapInstance().addTileLayer(layer);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
startWatchProps();
|
|
93
|
+
};
|
|
94
|
+
init();
|
|
95
|
+
vue.onUnmounted(() => {
|
|
96
|
+
if (layer) {
|
|
97
|
+
mapInstance().removeTileLayer(layer);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return () => vue.createVNode(vue.Fragment, null, null);
|
|
9
101
|
}
|
|
10
102
|
});
|
|
11
103
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xyz.js","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz.tsx"],"sourcesContent":["import { defineComponent } from
|
|
1
|
+
{"version":3,"file":"xyz.js","sources":["../../../../src/layer/xyz/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/layer/xyz/src/xyz.tsx"],"sourcesContent":["import { defineComponent, onUnmounted, watch } from 'vue'\r\nimport { useMapInstance } from '../../../_mixins'\r\nimport { xyzLayerProps } from './xyz-props'\r\n\r\nexport default defineComponent({\r\n name: 'XyzLayer',\r\n props: xyzLayerProps,\r\n setup(props) {\r\n const mapInstance = useMapInstance()\r\n\r\n let layer: BMapGL.XYZLayer | null = null\r\n\r\n const setZIndex = (zIndex: number) => {\r\n layer?.setZIndex(zIndex)\r\n }\r\n\r\n const setBoundary = (boundary?: string[]) => {\r\n boundary && !boundary.length ? layer?.addBoundary(boundary) : layer?.clearBoundary()\r\n }\r\n\r\n const setZIndexTop = (zIndexTop?: boolean) => {\r\n zIndexTop && layer?.setZIndexTop()\r\n }\r\n\r\n const initLayerOptions = () => {\r\n const { zIndex, zIndexTop } = props\r\n setZIndex(zIndex)\r\n setZIndexTop(zIndexTop)\r\n }\r\n\r\n const startWatchProps = () => {\r\n watch(() => props.zIndex, setZIndex)\r\n watch(() => props.boundary, setBoundary)\r\n }\r\n\r\n const init = () => {\r\n const { visible, getTile, xTemplate, yTemplate, zTemplate, bTemplate, minZoom, maxZoom, extent, extentCRSIsWGS84, boundary, useThumbData, tms } = props\r\n layer = new BMapGL.XYZLayer({\r\n xTemplate,\r\n yTemplate,\r\n zTemplate,\r\n bTemplate,\r\n minZoom,\r\n maxZoom,\r\n extent: extent as any,\r\n extentCRSIsWGS84,\r\n boundary,\r\n useThumbData,\r\n tms,\r\n })\r\n initLayerOptions()\r\n if (visible) {\r\n if (getTile) {\r\n mapInstance().addTileLayer(layer)\r\n ;(layer as any).loadRasterTileData = function (tileInfo: any, callback: any) {\r\n const key = this.getTileKey(tileInfo)\r\n\r\n const handleImageLoad = (image: HTMLImageElement) => {\r\n (image as any).tileInfo = tileInfo\r\n callback && callback(image, key)\r\n }\r\n\r\n const handleError = () => callback && callback(null, key)\r\n\r\n getTile(tileInfo, (img) => {\r\n if (typeof img === 'string' || img instanceof HTMLCanvasElement) {\r\n const image = new Image()\r\n image.crossOrigin = 'anonymous'\r\n\r\n image.onload = () => handleImageLoad(image)\r\n image.onerror = handleError\r\n\r\n image.src = typeof img === 'string' ? img : img.toDataURL()\r\n } else if (img instanceof HTMLImageElement) {\r\n handleImageLoad(img)\r\n } else {\r\n handleError()\r\n }\r\n })\r\n }\r\n } else {\r\n mapInstance().addTileLayer(layer)\r\n }\r\n }\r\n startWatchProps()\r\n }\r\n\r\n init()\r\n\r\n // const addTileLayer = (layer: BMapGL.XYZLayer) => {\r\n // const { getTile } = props.options\r\n // if (getTile) {\r\n // mapInstance().addTileLayer(layer)\r\n // ;(layer as any).loadRasterTileData = function (tileInfo: any, callback: any) {\r\n // const key = this.getTileKey(tileInfo)\r\n\r\n // const handleImageLoad = (image: HTMLImageElement) => {\r\n // (image as any).tileInfo = tileInfo\r\n // callback && callback(image, key)\r\n // }\r\n\r\n // const handleError = () => callback && callback(null, key)\r\n\r\n // getTile(tileInfo, (img) => {\r\n // if (typeof img === 'string' || img instanceof HTMLCanvasElement) {\r\n // const image = new Image()\r\n // image.crossOrigin = 'anonymous'\r\n\r\n // image.onload = () => handleImageLoad(image)\r\n // image.onerror = handleError\r\n\r\n // image.src = typeof img === 'string' ? img : img.toDataURL()\r\n // } else if (img instanceof HTMLImageElement) {\r\n // handleImageLoad(img)\r\n // } else {\r\n // handleError()\r\n // }\r\n // })\r\n // }\r\n // } else {\r\n // mapInstance().addTileLayer(layer)\r\n // }\r\n // }\r\n\r\n // const removeTileLayer = (layer: BMapGL.XYZLayer) => {\r\n // mapInstance().removeTileLayer(layer)\r\n // }\r\n\r\n // const createLayer = () => {\r\n // if (layer) {\r\n // removeTileLayer(layer)\r\n // }\r\n // const { getTile, ...retProps } = props\r\n // layer = new BMapGL.XYZLayer(retProps)\r\n // addTileLayer(layer)\r\n // }\r\n\r\n // props.visible && createLayer()\r\n\r\n // watch(() => props.visible, n => layer && (n ? addTileLayer(layer) : removeTileLayer(layer)))\r\n // watch(() => props.options, () => createLayer())\r\n\r\n onUnmounted(() => {\r\n if (layer) {\r\n mapInstance().removeTileLayer(layer)\r\n }\r\n })\r\n\r\n return () => <></>\r\n },\r\n})\r\n"],"names":["name","props","xyzLayerProps","setup","mapInstance","useMapInstance","layer","setZIndex","zIndex","setBoundary","boundary","length","addBoundary","clearBoundary","setZIndexTop","zIndexTop","initLayerOptions","startWatchProps","watch","init","visible","getTile","xTemplate","yTemplate","zTemplate","bTemplate","minZoom","maxZoom","extent","extentCRSIsWGS84","useThumbData","tms","BMapGL","XYZLayer","addTileLayer","loadRasterTileData","tileInfo","callback","key","getTileKey","handleImageLoad","image","handleError","img","HTMLCanvasElement","Image","crossOrigin","onload","onerror","src","toDataURL","HTMLImageElement","onUnmounted","removeTileLayer","_createVNode","_Fragment"],"m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require('./src/map.js');
|
|
4
5
|
var mapProps = require('./src/map-props.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
9
|
+
exports.mapInjectionKey = constants.mapInjectionKey;
|
|
8
10
|
exports.BMap = map;
|
|
9
11
|
exports.mapProps = mapProps.mapProps;
|
|
10
12
|
//# sourceMappingURL=index.js.map
|
package/lib/map/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/map/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/map/src/constants.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { MapInjection } from './interface'\r\n\r\nexport const mapInjectionKey: InjectionKey<MapInjection> = Symbol('b-map')\r\n"],"names":[],"mappings":";;AAGO,MAAM,eAAA,0BAAqD,OAAO;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import type { onInitd } from './interface';
|
|
3
4
|
export declare const mapProps: {
|
|
4
5
|
readonly maxZoom: {
|
|
5
6
|
readonly type: NumberConstructor;
|
|
@@ -9,6 +10,10 @@ export declare const mapProps: {
|
|
|
9
10
|
readonly type: NumberConstructor;
|
|
10
11
|
readonly default: 0;
|
|
11
12
|
};
|
|
13
|
+
readonly heading: {
|
|
14
|
+
readonly type: NumberConstructor;
|
|
15
|
+
readonly default: 0;
|
|
16
|
+
};
|
|
12
17
|
readonly center: {
|
|
13
18
|
readonly type: PropType<BMapGL.Point | string | [number, number]>;
|
|
14
19
|
readonly default: readonly [116.403901, 39.915185];
|
|
@@ -18,9 +23,46 @@ export declare const mapProps: {
|
|
|
18
23
|
readonly default: 14;
|
|
19
24
|
};
|
|
20
25
|
readonly class: StringConstructor;
|
|
26
|
+
readonly contentClass: StringConstructor;
|
|
21
27
|
readonly enableScrollWheelZoom: {
|
|
22
28
|
readonly type: BooleanConstructor;
|
|
23
29
|
readonly default: false;
|
|
24
30
|
};
|
|
31
|
+
readonly enableDragging: {
|
|
32
|
+
readonly type: BooleanConstructor;
|
|
33
|
+
readonly default: true;
|
|
34
|
+
};
|
|
35
|
+
readonly tilt: {
|
|
36
|
+
readonly type: NumberConstructor;
|
|
37
|
+
readonly default: 0;
|
|
38
|
+
};
|
|
39
|
+
readonly enableTilt: {
|
|
40
|
+
readonly type: BooleanConstructor;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly mapType: {
|
|
44
|
+
readonly type: PropType<BMapGL.MapTypeId>;
|
|
45
|
+
readonly default: "BMAP_NORMAL_MAP";
|
|
46
|
+
};
|
|
47
|
+
readonly enableAutoResize: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: true;
|
|
50
|
+
};
|
|
51
|
+
readonly enableTiltGestures: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
55
|
+
readonly enableRotate: {
|
|
56
|
+
readonly type: BooleanConstructor;
|
|
57
|
+
readonly default: false;
|
|
58
|
+
};
|
|
59
|
+
readonly enableRotateGestures: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: false;
|
|
62
|
+
};
|
|
63
|
+
readonly displayOptions: {
|
|
64
|
+
readonly type: PropType<BMapGL.displayOptions>;
|
|
65
|
+
};
|
|
66
|
+
readonly onInitd: PropType<onInitd>;
|
|
25
67
|
};
|
|
26
68
|
export type MapProps = ExtractPublicPropTypes<typeof mapProps>;
|
package/lib/map/src/map-props.js
CHANGED
|
@@ -9,6 +9,10 @@ const mapProps = {
|
|
|
9
9
|
type: Number,
|
|
10
10
|
default: 0
|
|
11
11
|
},
|
|
12
|
+
heading: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
12
16
|
center: {
|
|
13
17
|
type: Object,
|
|
14
18
|
default: [116.403901, 39.915185]
|
|
@@ -18,10 +22,47 @@ const mapProps = {
|
|
|
18
22
|
default: 14
|
|
19
23
|
},
|
|
20
24
|
class: String,
|
|
25
|
+
contentClass: String,
|
|
21
26
|
enableScrollWheelZoom: {
|
|
22
27
|
type: Boolean,
|
|
23
28
|
default: false
|
|
24
|
-
}
|
|
29
|
+
},
|
|
30
|
+
enableDragging: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
tilt: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 0
|
|
37
|
+
},
|
|
38
|
+
enableTilt: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
mapType: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "BMAP_NORMAL_MAP"
|
|
45
|
+
},
|
|
46
|
+
enableAutoResize: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
},
|
|
50
|
+
enableTiltGestures: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
enableRotate: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
enableRotateGestures: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
displayOptions: {
|
|
63
|
+
type: Object
|
|
64
|
+
},
|
|
65
|
+
onInitd: Function
|
|
25
66
|
};
|
|
26
67
|
|
|
27
68
|
exports.mapProps = mapProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-props.js","sources":["../../../src/map/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/map/src/map-props.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { ExtractPublicPropTypes } from '../../_utils'\r\n\r\nexport const mapProps = {\r\n maxZoom: {\r\n type: Number,\r\n default: 21,\r\n },\r\n minZoom: {\r\n type: Number,\r\n default: 0,\r\n },\r\n center: {\r\n type: Object as PropType<BMapGL.Point | string | [number, number]>,\r\n default: [116.403901, 39.915185],\r\n },\r\n zoom: {\r\n type: Number,\r\n default: 14,\r\n },\r\n class: String,\r\n enableScrollWheelZoom: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n} as const\r\n\r\nexport type MapProps = ExtractPublicPropTypes<typeof mapProps>\r\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"map-props.js","sources":["../../../src/map/src/file:/D:/workspaces/personal-project/vue3-bmapgl/packages/vue3-bmapgl/src/map/src/map-props.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { ExtractPublicPropTypes } from '../../_utils'\r\nimport type { onInitd } from './interface'\r\n\r\nexport const mapProps = {\r\n maxZoom: {\r\n type: Number,\r\n default: 21,\r\n },\r\n minZoom: {\r\n type: Number,\r\n default: 0,\r\n },\r\n heading: {\r\n type: Number,\r\n default: 0,\r\n },\r\n center: {\r\n type: Object as PropType<BMapGL.Point | string | [number, number]>,\r\n default: [116.403901, 39.915185],\r\n },\r\n zoom: {\r\n type: Number,\r\n default: 14,\r\n },\r\n class: String,\r\n contentClass: String,\r\n enableScrollWheelZoom: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n enableDragging: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n tilt: {\r\n type: Number,\r\n default: 0,\r\n },\r\n enableTilt: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n mapType: {\r\n type: String as PropType<BMapGL.MapTypeId>,\r\n default: 'BMAP_NORMAL_MAP',\r\n },\r\n enableAutoResize: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n enableTiltGestures: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n enableRotate: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n enableRotateGestures: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n displayOptions: {\r\n type: Object as PropType<BMapGL.displayOptions>,\r\n },\r\n onInitd: Function as PropType<onInitd>,\r\n} as const\r\n\r\nexport type MapProps = ExtractPublicPropTypes<typeof mapProps>\r\n"],"names":[],"mappings":";;AAIO,MAAM,QAAA,GAAW;AAAA,EACtB,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,CAAC,UAAA,EAAY,SAAS;AAAA,GAChC;AAAA,EACD,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,KAAA,EAAO,MAAA;AAAA,EACP,YAAA,EAAc,MAAA;AAAA,EACd,qBAAA,EAAuB;AAAA,IACrB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACV;AAAA,EACD,OAAA,EAAS;AAA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