vue-openlayers-plugin 1.1.12 → 1.1.14
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/README.md +209 -0
- package/lib/{BasemapPanel-d34c9745.mjs → BasemapPanel-d022a31a.mjs} +1 -1
- package/lib/{CoordinateLocationDialog-75a15e82.mjs → CoordinateLocationDialog-6cdf239b.mjs} +1 -1
- package/lib/{MapPrintDialog-1dc333aa.mjs → FilterPanel-de00b336.mjs} +1 -1
- package/lib/{FilterPanel-e045d024.mjs → LayerPanel-1a0456a4.mjs} +1 -1
- package/lib/{LayerPanel-78fca227.mjs → MapPrintDialog-c65f685b.mjs} +1 -1
- package/lib/{MeasurementDialog-7938e1a6.mjs → MeasurementDialog-44599074.mjs} +1 -1
- package/lib/{MyMarkersDialog-3c2d2924.mjs → MyMarkersDialog-dd288574.mjs} +1 -1
- package/lib/{QuadCompareDialog-856464ee.mjs → QuadCompareDialog-2cd17881.mjs} +1 -1
- package/lib/{RegionNavigationDialog-e73d52d8.mjs → RegionNavigationDialog-b1cdc5f9.mjs} +1 -1
- package/lib/{SplitCompareDialog-d02daf25.mjs → SplitCompareDialog-6dd0fb71.mjs} +1 -1
- package/lib/{SwipeCompareDialog-aa16cffb.mjs → SwipeCompareDialog-dfae0afd.mjs} +1 -1
- package/lib/{ViewBookmarksDialog-70dc8e7b.mjs → ViewBookmarksDialog-2a6bc942.mjs} +1 -1
- package/lib/{index-cc29567b.mjs → index-199c60c9.mjs} +1 -1
- package/lib/{index-eb8bed87.mjs → index-e868c4e2.mjs} +1040 -445
- package/lib/{index.es-ea8eeb3c.mjs → index.es-560c236e.mjs} +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +1024 -429
- package/lib/style.css +20 -289
- package/package.json +2 -2
- package/types/components/CustomDialog/CustomDialog.vue.d.ts.map +1 -1
- package/types/components/OlControlPanel.vue.d.ts.map +1 -1
- package/types/components/OlDialogs/LayerPanel.vue.d.ts +188 -0
- package/types/components/OlDialogs/LayerPanel.vue.d.ts.map +1 -1
- package/types/components/OlDialogs/MapPrintDialog.vue.d.ts.map +1 -1
- package/types/components/OlDialogs/ViewBookmarksDialog.vue.d.ts.map +1 -1
- package/types/components/OlMap.vue.d.ts +381 -0
- package/types/components/OlMap.vue.d.ts.map +1 -1
- package/types/components/OlMapContainer.vue.d.ts +1 -0
- package/types/components/OlMapContainer.vue.d.ts.map +1 -1
- package/types/components/OlMapTooltip.vue.d.ts.map +1 -1
- package/types/core/LayerManager.d.ts +5 -0
- package/types/core/LayerManager.d.ts.map +1 -1
- package/types/core/configLoader.d.ts.map +1 -1
- package/types/core/layers/GeoJSONLayerHandler.d.ts +30 -2
- package/types/core/layers/GeoJSONLayerHandler.d.ts.map +1 -1
- package/types/core/layers/interfaces.d.ts +5 -0
- package/types/core/layers/interfaces.d.ts.map +1 -1
- package/types/lowcode-entry.d.ts +391 -0
- package/types/lowcode-entry.d.ts.map +1 -1
- package/types/types/map.d.ts +64 -0
- package/types/types/map.d.ts.map +1 -1
|
@@ -67657,13 +67657,17 @@ class GeoJSONLayerHandler extends BaseLayer2 {
|
|
|
67657
67657
|
constructor(config, map2) {
|
|
67658
67658
|
super(config);
|
|
67659
67659
|
__publicField(this, "styleConfig");
|
|
67660
|
-
// 新增:缓存启用的过滤器和原始要素集合
|
|
67661
|
-
__publicField(this, "currentFilters", []);
|
|
67662
67660
|
__publicField(this, "originalFeatures", []);
|
|
67661
|
+
__publicField(this, "vectorSource", null);
|
|
67662
|
+
__publicField(this, "refreshTimer", null);
|
|
67663
|
+
__publicField(this, "refreshDebounceTimer", null);
|
|
67664
|
+
__publicField(this, "moveEndListener", null);
|
|
67665
|
+
__publicField(this, "lastKnownZoom");
|
|
67666
|
+
__publicField(this, "isRefreshing", false);
|
|
67663
67667
|
if (map2)
|
|
67664
67668
|
this.setMap(map2);
|
|
67665
67669
|
}
|
|
67666
|
-
createLayer() {
|
|
67670
|
+
async createLayer() {
|
|
67667
67671
|
var _a2, _b2, _c2;
|
|
67668
67672
|
const vectorSource = this.createVectorSource();
|
|
67669
67673
|
const declutterOpt = (_c2 = (_b2 = (_a2 = this.config) == null ? void 0 : _a2.config) == null ? void 0 : _b2.vector) == null ? void 0 : _c2.declutter;
|
|
@@ -67671,42 +67675,379 @@ class GeoJSONLayerHandler extends BaseLayer2 {
|
|
|
67671
67675
|
className: this.config.className,
|
|
67672
67676
|
source: vectorSource,
|
|
67673
67677
|
style: this.createStyleFunction(),
|
|
67674
|
-
// 默认关闭 declutter;如需避免标签重叠,可在 config.vector.declutter 设为 true
|
|
67675
67678
|
declutter: declutterOpt !== void 0 ? !!declutterOpt : false
|
|
67676
67679
|
});
|
|
67680
|
+
this.vectorSource = vectorSource;
|
|
67681
|
+
await this.initializeSource();
|
|
67682
|
+
this.setupRefreshBehavior();
|
|
67677
67683
|
return vectorLayer;
|
|
67678
67684
|
}
|
|
67679
67685
|
/**
|
|
67680
67686
|
* 创建矢量数据源
|
|
67681
67687
|
*/
|
|
67682
67688
|
createVectorSource() {
|
|
67683
|
-
var _a2;
|
|
67684
67689
|
this.registerCustomProjection();
|
|
67690
|
+
return new VectorSource$1();
|
|
67691
|
+
}
|
|
67692
|
+
getGeoJSONConfig() {
|
|
67693
|
+
var _a2;
|
|
67694
|
+
const nestedConfig = this.config.geojsonConfig || ((_a2 = this.config.config) == null ? void 0 : _a2.geojson);
|
|
67695
|
+
const requestConfig = {
|
|
67696
|
+
url: this.config.url,
|
|
67697
|
+
method: this.config.method,
|
|
67698
|
+
headers: this.config.headers,
|
|
67699
|
+
params: this.config.params,
|
|
67700
|
+
body: this.config.body,
|
|
67701
|
+
dataPath: this.config.dataPath,
|
|
67702
|
+
...(nestedConfig == null ? void 0 : nestedConfig.request) || {}
|
|
67703
|
+
};
|
|
67704
|
+
return {
|
|
67705
|
+
data: (nestedConfig == null ? void 0 : nestedConfig.data) ?? this.config.data,
|
|
67706
|
+
dataPath: (nestedConfig == null ? void 0 : nestedConfig.dataPath) ?? this.config.dataPath,
|
|
67707
|
+
clearOnError: (nestedConfig == null ? void 0 : nestedConfig.clearOnError) ?? false,
|
|
67708
|
+
refresh: nestedConfig == null ? void 0 : nestedConfig.refresh,
|
|
67709
|
+
request: requestConfig.url || (nestedConfig == null ? void 0 : nestedConfig.request) ? requestConfig : void 0
|
|
67710
|
+
};
|
|
67711
|
+
}
|
|
67712
|
+
getDataProjection() {
|
|
67713
|
+
return this.config.projection || "EPSG:4326";
|
|
67714
|
+
}
|
|
67715
|
+
getMapProjection() {
|
|
67716
|
+
var _a2;
|
|
67717
|
+
return ((_a2 = this.map) == null ? void 0 : _a2.getView().getProjection().getCode()) || "EPSG:4326";
|
|
67718
|
+
}
|
|
67719
|
+
async initializeSource() {
|
|
67720
|
+
var _a2;
|
|
67721
|
+
const source = this.getVectorSource();
|
|
67722
|
+
if (!source)
|
|
67723
|
+
return;
|
|
67724
|
+
const geojsonConfig = this.getGeoJSONConfig();
|
|
67725
|
+
if (geojsonConfig.data) {
|
|
67726
|
+
this.applyGeoJSONData(geojsonConfig.data);
|
|
67727
|
+
return;
|
|
67728
|
+
}
|
|
67729
|
+
if (((_a2 = geojsonConfig.request) == null ? void 0 : _a2.url) || this.config.url) {
|
|
67730
|
+
await this.refresh();
|
|
67731
|
+
return;
|
|
67732
|
+
}
|
|
67733
|
+
source.clear();
|
|
67734
|
+
this.originalFeatures = [];
|
|
67735
|
+
}
|
|
67736
|
+
getVectorSource() {
|
|
67737
|
+
if (this.vectorSource) {
|
|
67738
|
+
return this.vectorSource;
|
|
67739
|
+
}
|
|
67740
|
+
if (!this.layer) {
|
|
67741
|
+
return null;
|
|
67742
|
+
}
|
|
67743
|
+
const source = this.layer.getSource();
|
|
67744
|
+
this.vectorSource = source || null;
|
|
67745
|
+
return this.vectorSource;
|
|
67746
|
+
}
|
|
67747
|
+
applyGeoJSONData(data) {
|
|
67748
|
+
const source = this.getVectorSource();
|
|
67749
|
+
if (!source)
|
|
67750
|
+
return;
|
|
67751
|
+
const features2 = this.readFeaturesFromData(data);
|
|
67752
|
+
source.clear();
|
|
67753
|
+
source.addFeatures(features2);
|
|
67754
|
+
this.originalFeatures = [...features2];
|
|
67755
|
+
if (this.getEnabledFilters().length > 0) {
|
|
67756
|
+
this.applyFilters();
|
|
67757
|
+
}
|
|
67758
|
+
}
|
|
67759
|
+
readFeaturesFromData(data) {
|
|
67685
67760
|
const format2 = new GeoJSON$2();
|
|
67686
|
-
|
|
67687
|
-
|
|
67688
|
-
|
|
67689
|
-
|
|
67690
|
-
|
|
67691
|
-
|
|
67692
|
-
|
|
67693
|
-
|
|
67694
|
-
|
|
67695
|
-
|
|
67696
|
-
|
|
67697
|
-
|
|
67698
|
-
|
|
67699
|
-
|
|
67700
|
-
|
|
67701
|
-
|
|
67702
|
-
|
|
67703
|
-
|
|
67704
|
-
|
|
67761
|
+
return format2.readFeatures(this.normalizeGeoJSONData(data), {
|
|
67762
|
+
dataProjection: this.getDataProjection(),
|
|
67763
|
+
featureProjection: this.getMapProjection()
|
|
67764
|
+
});
|
|
67765
|
+
}
|
|
67766
|
+
normalizeGeoJSONData(data) {
|
|
67767
|
+
if (typeof data === "string") {
|
|
67768
|
+
const trimmed = data.trim();
|
|
67769
|
+
if (!trimmed) {
|
|
67770
|
+
return { type: "FeatureCollection", features: [] };
|
|
67771
|
+
}
|
|
67772
|
+
try {
|
|
67773
|
+
return this.normalizeGeoJSONData(JSON.parse(trimmed));
|
|
67774
|
+
} catch (error2) {
|
|
67775
|
+
throw new Error("GeoJSON 字符串解析失败");
|
|
67776
|
+
}
|
|
67777
|
+
}
|
|
67778
|
+
if (Array.isArray(data)) {
|
|
67779
|
+
return {
|
|
67780
|
+
type: "FeatureCollection",
|
|
67781
|
+
features: data
|
|
67782
|
+
};
|
|
67783
|
+
}
|
|
67784
|
+
if (!data || typeof data !== "object") {
|
|
67785
|
+
return {
|
|
67786
|
+
type: "FeatureCollection",
|
|
67787
|
+
features: []
|
|
67788
|
+
};
|
|
67789
|
+
}
|
|
67790
|
+
if (data.type === "FeatureCollection") {
|
|
67791
|
+
return data;
|
|
67792
|
+
}
|
|
67793
|
+
if (data.type === "Feature") {
|
|
67794
|
+
return {
|
|
67795
|
+
type: "FeatureCollection",
|
|
67796
|
+
features: [data]
|
|
67797
|
+
};
|
|
67798
|
+
}
|
|
67799
|
+
if (Array.isArray(data.features)) {
|
|
67800
|
+
return {
|
|
67801
|
+
type: "FeatureCollection",
|
|
67802
|
+
features: data.features
|
|
67803
|
+
};
|
|
67804
|
+
}
|
|
67805
|
+
return data;
|
|
67806
|
+
}
|
|
67807
|
+
getNestedValue(target, path2) {
|
|
67808
|
+
if (!path2) {
|
|
67809
|
+
return target;
|
|
67810
|
+
}
|
|
67811
|
+
const keys2 = path2.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
67812
|
+
return keys2.reduce(
|
|
67813
|
+
(current, key) => current !== null && current !== void 0 ? current[key] : void 0,
|
|
67814
|
+
target
|
|
67815
|
+
);
|
|
67816
|
+
}
|
|
67817
|
+
buildRequestContext(overrides) {
|
|
67818
|
+
const requestConfig = this.getGeoJSONConfig().request;
|
|
67819
|
+
return {
|
|
67820
|
+
config: this.config,
|
|
67821
|
+
params: {
|
|
67822
|
+
...(requestConfig == null ? void 0 : requestConfig.params) || {},
|
|
67823
|
+
...(overrides == null ? void 0 : overrides.params) || {}
|
|
67824
|
+
},
|
|
67825
|
+
body: (overrides == null ? void 0 : overrides.body) ?? (requestConfig == null ? void 0 : requestConfig.body),
|
|
67826
|
+
map: this.map || void 0
|
|
67827
|
+
};
|
|
67828
|
+
}
|
|
67829
|
+
buildExtentPayload(refreshConfig) {
|
|
67830
|
+
if (!(refreshConfig == null ? void 0 : refreshConfig.useExtent) || !this.map) {
|
|
67831
|
+
return {};
|
|
67832
|
+
}
|
|
67833
|
+
const size2 = this.map.getSize();
|
|
67834
|
+
if (!size2) {
|
|
67835
|
+
return {};
|
|
67836
|
+
}
|
|
67837
|
+
const view = this.map.getView();
|
|
67838
|
+
const sourceProjection = view.getProjection().getCode();
|
|
67839
|
+
const targetProjection = refreshConfig.extentProjection || this.getDataProjection();
|
|
67840
|
+
const rawExtent = view.calculateExtent(size2);
|
|
67841
|
+
const extent3 = sourceProjection === targetProjection ? rawExtent : transformExtent(rawExtent, sourceProjection, targetProjection);
|
|
67842
|
+
const extentValue = extent3.join(",");
|
|
67843
|
+
const extentParamName = refreshConfig.extentParamName || "bbox";
|
|
67844
|
+
if (refreshConfig.extentTarget === "body") {
|
|
67845
|
+
return {
|
|
67846
|
+
body: {
|
|
67847
|
+
[extentParamName]: extentValue
|
|
67848
|
+
}
|
|
67849
|
+
};
|
|
67850
|
+
}
|
|
67851
|
+
return {
|
|
67852
|
+
params: {
|
|
67853
|
+
[extentParamName]: extentValue
|
|
67854
|
+
}
|
|
67855
|
+
};
|
|
67856
|
+
}
|
|
67857
|
+
createRequestUrl(url, params, method) {
|
|
67858
|
+
const requestUrl = new URL(url, window.location.origin);
|
|
67859
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
67860
|
+
if (value === void 0 || value === null || method !== "GET") {
|
|
67861
|
+
return;
|
|
67862
|
+
}
|
|
67863
|
+
if (Array.isArray(value)) {
|
|
67864
|
+
value.forEach(
|
|
67865
|
+
(item) => requestUrl.searchParams.append(key, String(item))
|
|
67866
|
+
);
|
|
67867
|
+
return;
|
|
67868
|
+
}
|
|
67869
|
+
requestUrl.searchParams.set(key, String(value));
|
|
67870
|
+
});
|
|
67871
|
+
return requestUrl.toString();
|
|
67872
|
+
}
|
|
67873
|
+
async refresh(overrides) {
|
|
67874
|
+
const geojsonConfig = this.getGeoJSONConfig();
|
|
67875
|
+
const requestConfig = geojsonConfig.request;
|
|
67876
|
+
if (!(requestConfig == null ? void 0 : requestConfig.url)) {
|
|
67877
|
+
if (geojsonConfig.data) {
|
|
67878
|
+
this.applyGeoJSONData(geojsonConfig.data);
|
|
67879
|
+
}
|
|
67880
|
+
return;
|
|
67881
|
+
}
|
|
67882
|
+
if (this.isRefreshing) {
|
|
67883
|
+
return;
|
|
67884
|
+
}
|
|
67885
|
+
this.isRefreshing = true;
|
|
67886
|
+
try {
|
|
67887
|
+
const refreshPayload = this.buildExtentPayload(geojsonConfig.refresh);
|
|
67888
|
+
const context = this.buildRequestContext({
|
|
67889
|
+
params: {
|
|
67890
|
+
...refreshPayload.params || {},
|
|
67891
|
+
...(overrides == null ? void 0 : overrides.params) || {}
|
|
67892
|
+
},
|
|
67893
|
+
body: typeof refreshPayload.body === "object" && !Array.isArray(refreshPayload.body) && typeof ((overrides == null ? void 0 : overrides.body) || requestConfig.body) === "object" && !Array.isArray((overrides == null ? void 0 : overrides.body) || requestConfig.body) ? {
|
|
67894
|
+
...requestConfig.body,
|
|
67895
|
+
...refreshPayload.body,
|
|
67896
|
+
...overrides == null ? void 0 : overrides.body
|
|
67897
|
+
} : (overrides == null ? void 0 : overrides.body) ?? refreshPayload.body ?? requestConfig.body
|
|
67898
|
+
});
|
|
67899
|
+
let request = {
|
|
67900
|
+
url: requestConfig.url,
|
|
67901
|
+
method: requestConfig.method || "GET",
|
|
67902
|
+
headers: { ...requestConfig.headers || {} },
|
|
67903
|
+
params: { ...context.params },
|
|
67904
|
+
body: context.body
|
|
67905
|
+
};
|
|
67906
|
+
if (requestConfig.requestInterceptor) {
|
|
67907
|
+
const intercepted = await requestConfig.requestInterceptor(
|
|
67908
|
+
request,
|
|
67909
|
+
context
|
|
67910
|
+
);
|
|
67911
|
+
request = {
|
|
67912
|
+
...request,
|
|
67913
|
+
...intercepted || {},
|
|
67914
|
+
headers: {
|
|
67915
|
+
...request.headers,
|
|
67916
|
+
...(intercepted == null ? void 0 : intercepted.headers) || {}
|
|
67917
|
+
},
|
|
67918
|
+
params: {
|
|
67919
|
+
...request.params,
|
|
67920
|
+
...(intercepted == null ? void 0 : intercepted.params) || {}
|
|
67921
|
+
}
|
|
67922
|
+
};
|
|
67923
|
+
}
|
|
67924
|
+
const requestUrl = this.createRequestUrl(
|
|
67925
|
+
request.url,
|
|
67926
|
+
request.params,
|
|
67927
|
+
request.method
|
|
67928
|
+
);
|
|
67929
|
+
const response = await fetch(requestUrl, {
|
|
67930
|
+
method: request.method,
|
|
67931
|
+
headers: {
|
|
67932
|
+
"Content-Type": request.method === "GET" ? void 0 : "application/json;charset=UTF-8",
|
|
67933
|
+
...request.headers
|
|
67934
|
+
},
|
|
67935
|
+
body: request.method === "GET" || request.body === void 0 ? void 0 : typeof request.body === "string" ? request.body : JSON.stringify(request.body)
|
|
67705
67936
|
});
|
|
67706
|
-
|
|
67707
|
-
|
|
67708
|
-
|
|
67937
|
+
if (!response.ok) {
|
|
67938
|
+
throw new Error(`GeoJSON 请求失败: ${response.status}`);
|
|
67939
|
+
}
|
|
67940
|
+
let responseData;
|
|
67941
|
+
const contentType = response.headers.get("content-type") || "";
|
|
67942
|
+
if (contentType.includes("application/json")) {
|
|
67943
|
+
responseData = await response.json();
|
|
67944
|
+
} else {
|
|
67945
|
+
responseData = await response.text();
|
|
67946
|
+
}
|
|
67947
|
+
if (requestConfig.responseInterceptor) {
|
|
67948
|
+
responseData = await requestConfig.responseInterceptor(
|
|
67949
|
+
responseData,
|
|
67950
|
+
context
|
|
67951
|
+
);
|
|
67952
|
+
}
|
|
67953
|
+
if (requestConfig.responseParser) {
|
|
67954
|
+
responseData = await requestConfig.responseParser(
|
|
67955
|
+
responseData,
|
|
67956
|
+
context
|
|
67957
|
+
);
|
|
67958
|
+
} else {
|
|
67959
|
+
responseData = this.getNestedValue(
|
|
67960
|
+
responseData,
|
|
67961
|
+
requestConfig.dataPath || geojsonConfig.dataPath
|
|
67962
|
+
);
|
|
67963
|
+
}
|
|
67964
|
+
this.applyGeoJSONData(responseData);
|
|
67965
|
+
} catch (error2) {
|
|
67966
|
+
if (geojsonConfig.clearOnError) {
|
|
67967
|
+
const source = this.getVectorSource();
|
|
67968
|
+
source == null ? void 0 : source.clear();
|
|
67969
|
+
this.originalFeatures = [];
|
|
67970
|
+
}
|
|
67971
|
+
throw error2;
|
|
67972
|
+
} finally {
|
|
67973
|
+
this.isRefreshing = false;
|
|
67974
|
+
}
|
|
67975
|
+
}
|
|
67976
|
+
updateRequestParams(params) {
|
|
67977
|
+
var _a2;
|
|
67978
|
+
const currentGeoJSONConfig = this.getGeoJSONConfig();
|
|
67979
|
+
this.config.geojsonConfig = {
|
|
67980
|
+
...currentGeoJSONConfig,
|
|
67981
|
+
request: {
|
|
67982
|
+
...currentGeoJSONConfig.request || {},
|
|
67983
|
+
params: {
|
|
67984
|
+
...((_a2 = currentGeoJSONConfig.request) == null ? void 0 : _a2.params) || {},
|
|
67985
|
+
...params
|
|
67986
|
+
}
|
|
67987
|
+
}
|
|
67988
|
+
};
|
|
67989
|
+
void this.refresh();
|
|
67990
|
+
}
|
|
67991
|
+
scheduleRefresh() {
|
|
67992
|
+
const refreshConfig = this.getGeoJSONConfig().refresh;
|
|
67993
|
+
const debounce2 = (refreshConfig == null ? void 0 : refreshConfig.debounce) ?? 300;
|
|
67994
|
+
if (this.refreshDebounceTimer) {
|
|
67995
|
+
clearTimeout(this.refreshDebounceTimer);
|
|
67996
|
+
}
|
|
67997
|
+
this.refreshDebounceTimer = setTimeout(() => {
|
|
67998
|
+
void this.refresh();
|
|
67999
|
+
}, debounce2);
|
|
68000
|
+
}
|
|
68001
|
+
setupRefreshBehavior() {
|
|
68002
|
+
this.clearRefreshBehavior();
|
|
68003
|
+
const refreshConfig = this.getGeoJSONConfig().refresh;
|
|
68004
|
+
if (!refreshConfig) {
|
|
68005
|
+
return;
|
|
68006
|
+
}
|
|
68007
|
+
const enabled = refreshConfig.enabled ?? true;
|
|
68008
|
+
if (!enabled) {
|
|
68009
|
+
return;
|
|
68010
|
+
}
|
|
68011
|
+
if (refreshConfig.interval && refreshConfig.interval > 0) {
|
|
68012
|
+
this.refreshTimer = setInterval(() => {
|
|
68013
|
+
void this.refresh();
|
|
68014
|
+
}, refreshConfig.interval);
|
|
68015
|
+
}
|
|
68016
|
+
if (this.map && (refreshConfig.onMoveEnd || refreshConfig.onZoomEnd)) {
|
|
68017
|
+
this.lastKnownZoom = this.map.getView().getZoom();
|
|
68018
|
+
this.moveEndListener = () => {
|
|
68019
|
+
var _a2;
|
|
68020
|
+
const currentZoom = (_a2 = this.map) == null ? void 0 : _a2.getView().getZoom();
|
|
68021
|
+
const zoomChanged = currentZoom !== this.lastKnownZoom;
|
|
68022
|
+
this.lastKnownZoom = currentZoom;
|
|
68023
|
+
if (zoomChanged && refreshConfig.onZoomEnd) {
|
|
68024
|
+
this.scheduleRefresh();
|
|
68025
|
+
return;
|
|
68026
|
+
}
|
|
68027
|
+
if (!zoomChanged && refreshConfig.onMoveEnd) {
|
|
68028
|
+
this.scheduleRefresh();
|
|
68029
|
+
return;
|
|
68030
|
+
}
|
|
68031
|
+
if (refreshConfig.onMoveEnd && refreshConfig.onZoomEnd) {
|
|
68032
|
+
this.scheduleRefresh();
|
|
68033
|
+
}
|
|
68034
|
+
};
|
|
68035
|
+
this.map.on("moveend", this.moveEndListener);
|
|
68036
|
+
}
|
|
68037
|
+
}
|
|
68038
|
+
clearRefreshBehavior() {
|
|
68039
|
+
if (this.refreshTimer) {
|
|
68040
|
+
clearInterval(this.refreshTimer);
|
|
68041
|
+
this.refreshTimer = null;
|
|
67709
68042
|
}
|
|
68043
|
+
if (this.refreshDebounceTimer) {
|
|
68044
|
+
clearTimeout(this.refreshDebounceTimer);
|
|
68045
|
+
this.refreshDebounceTimer = null;
|
|
68046
|
+
}
|
|
68047
|
+
if (this.map && this.moveEndListener) {
|
|
68048
|
+
this.map.un("moveend", this.moveEndListener);
|
|
68049
|
+
}
|
|
68050
|
+
this.moveEndListener = null;
|
|
67710
68051
|
}
|
|
67711
68052
|
/**
|
|
67712
68053
|
* 创建样式函数
|
|
@@ -68110,7 +68451,6 @@ class GeoJSONLayerHandler extends BaseLayer2 {
|
|
|
68110
68451
|
* 应用过滤器(实现基类的抽象方法)
|
|
68111
68452
|
*/
|
|
68112
68453
|
applyFilters() {
|
|
68113
|
-
debugger;
|
|
68114
68454
|
const layer2 = this.getLayer();
|
|
68115
68455
|
const source = layer2.getSource();
|
|
68116
68456
|
if (!source)
|
|
@@ -68366,6 +68706,29 @@ class GeoJSONLayerHandler extends BaseLayer2 {
|
|
|
68366
68706
|
clearAllFeatureFilters() {
|
|
68367
68707
|
this.clearAllFilters();
|
|
68368
68708
|
}
|
|
68709
|
+
updateConfig(newConfig) {
|
|
68710
|
+
super.updateConfig(newConfig);
|
|
68711
|
+
if (this.layer) {
|
|
68712
|
+
this.layer.setStyle(
|
|
68713
|
+
this.createStyleFunction()
|
|
68714
|
+
);
|
|
68715
|
+
}
|
|
68716
|
+
this.setupRefreshBehavior();
|
|
68717
|
+
if (newConfig.url !== void 0 || newConfig.data !== void 0 || newConfig.method !== void 0 || newConfig.headers !== void 0 || newConfig.params !== void 0 || newConfig.body !== void 0 || newConfig.dataPath !== void 0 || newConfig.geojsonConfig !== void 0 || newConfig.config !== void 0 || newConfig.projection !== void 0) {
|
|
68718
|
+
void this.initializeSource();
|
|
68719
|
+
}
|
|
68720
|
+
}
|
|
68721
|
+
setMap(map2) {
|
|
68722
|
+
super.setMap(map2);
|
|
68723
|
+
if (this.layer) {
|
|
68724
|
+
this.setupRefreshBehavior();
|
|
68725
|
+
}
|
|
68726
|
+
}
|
|
68727
|
+
destroy() {
|
|
68728
|
+
this.clearRefreshBehavior();
|
|
68729
|
+
this.vectorSource = null;
|
|
68730
|
+
super.destroy();
|
|
68731
|
+
}
|
|
68369
68732
|
}
|
|
68370
68733
|
class KMLLayerHandler extends BaseLayer2 {
|
|
68371
68734
|
constructor(config, map2) {
|
|
@@ -283244,7 +283607,7 @@ var ee$1 = function(e8, n2) {
|
|
|
283244
283607
|
};
|
|
283245
283608
|
var ne$1 = ee$1(k$1, "Map");
|
|
283246
283609
|
var te$1 = ee$1(Object, "create");
|
|
283247
|
-
var re$
|
|
283610
|
+
var re$1 = function() {
|
|
283248
283611
|
this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
|
|
283249
283612
|
};
|
|
283250
283613
|
var oe$1 = function(e8) {
|
|
@@ -283261,7 +283624,7 @@ var ae$1 = function(e8) {
|
|
|
283261
283624
|
return ie$1.call(n2, e8) ? n2[e8] : void 0;
|
|
283262
283625
|
};
|
|
283263
283626
|
var ue$2 = Object.prototype.hasOwnProperty;
|
|
283264
|
-
var ce$
|
|
283627
|
+
var ce$1 = function(e8) {
|
|
283265
283628
|
var n2 = this.__data__;
|
|
283266
283629
|
return te$1 ? void 0 !== n2[e8] : ue$2.call(n2, e8);
|
|
283267
283630
|
};
|
|
@@ -283276,7 +283639,7 @@ function de$2(e8) {
|
|
|
283276
283639
|
this.set(r2[0], r2[1]);
|
|
283277
283640
|
}
|
|
283278
283641
|
}
|
|
283279
|
-
de$2.prototype.clear = re$
|
|
283642
|
+
de$2.prototype.clear = re$1, de$2.prototype.delete = oe$1, de$2.prototype.get = ae$1, de$2.prototype.has = ce$1, de$2.prototype.set = se$1;
|
|
283280
283643
|
var fe$2 = de$2;
|
|
283281
283644
|
var he$2 = function() {
|
|
283282
283645
|
this.size = 0, this.__data__ = { hash: new fe$2(), map: new (ne$1 || w$1)(), string: new fe$2() };
|
|
@@ -283285,22 +283648,22 @@ var le$1 = function(e8) {
|
|
|
283285
283648
|
var n2 = typeof e8;
|
|
283286
283649
|
return "string" == n2 || "number" == n2 || "symbol" == n2 || "boolean" == n2 ? "__proto__" !== e8 : null === e8;
|
|
283287
283650
|
};
|
|
283288
|
-
var ve$
|
|
283651
|
+
var ve$2 = function(e8, n2) {
|
|
283289
283652
|
var t3 = e8.__data__;
|
|
283290
283653
|
return le$1(n2) ? t3["string" == typeof n2 ? "string" : "hash"] : t3.map;
|
|
283291
283654
|
};
|
|
283292
283655
|
var pe$2 = function(e8) {
|
|
283293
|
-
var n2 = ve$
|
|
283656
|
+
var n2 = ve$2(this, e8).delete(e8);
|
|
283294
283657
|
return this.size -= n2 ? 1 : 0, n2;
|
|
283295
283658
|
};
|
|
283296
283659
|
var ge$2 = function(e8) {
|
|
283297
|
-
return ve$
|
|
283660
|
+
return ve$2(this, e8).get(e8);
|
|
283298
283661
|
};
|
|
283299
|
-
var ye$
|
|
283300
|
-
return ve$
|
|
283662
|
+
var ye$2 = function(e8) {
|
|
283663
|
+
return ve$2(this, e8).has(e8);
|
|
283301
283664
|
};
|
|
283302
283665
|
var be$1 = function(e8, n2) {
|
|
283303
|
-
var t3 = ve$
|
|
283666
|
+
var t3 = ve$2(this, e8), r2 = t3.size;
|
|
283304
283667
|
return t3.set(e8, n2), this.size += t3.size == r2 ? 0 : 1, this;
|
|
283305
283668
|
};
|
|
283306
283669
|
function me$2(e8) {
|
|
@@ -283310,7 +283673,7 @@ function me$2(e8) {
|
|
|
283310
283673
|
this.set(r2[0], r2[1]);
|
|
283311
283674
|
}
|
|
283312
283675
|
}
|
|
283313
|
-
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$2, me$2.prototype.has = ye$
|
|
283676
|
+
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$2, me$2.prototype.has = ye$2, me$2.prototype.set = be$1;
|
|
283314
283677
|
var we$1 = me$2;
|
|
283315
283678
|
var Ee = function(e8, n2) {
|
|
283316
283679
|
var t3 = this.__data__;
|
|
@@ -333369,6 +333732,72 @@ class LayerManager {
|
|
|
333369
333732
|
getLayerHandler(layerId) {
|
|
333370
333733
|
return this.layerHandlers.get(layerId);
|
|
333371
333734
|
}
|
|
333735
|
+
async refreshLayer(layerId, options) {
|
|
333736
|
+
try {
|
|
333737
|
+
const config = this.getLayerConfig(layerId);
|
|
333738
|
+
if (!config) {
|
|
333739
|
+
return false;
|
|
333740
|
+
}
|
|
333741
|
+
if (!this.layerHandlers.has(layerId) && config.visible) {
|
|
333742
|
+
const loaded = await this.loadLayerOnDemand(layerId);
|
|
333743
|
+
if (!loaded) {
|
|
333744
|
+
return false;
|
|
333745
|
+
}
|
|
333746
|
+
}
|
|
333747
|
+
const handler = this.layerHandlers.get(layerId);
|
|
333748
|
+
if (!(handler == null ? void 0 : handler.refresh)) {
|
|
333749
|
+
return false;
|
|
333750
|
+
}
|
|
333751
|
+
await handler.refresh(options);
|
|
333752
|
+
return true;
|
|
333753
|
+
} catch (error2) {
|
|
333754
|
+
console.error("刷新图层失败:", error2);
|
|
333755
|
+
return false;
|
|
333756
|
+
}
|
|
333757
|
+
}
|
|
333758
|
+
updateLayerRequestParams(layerId, params) {
|
|
333759
|
+
var _a2, _b2, _c2, _d, _e2, _f, _g;
|
|
333760
|
+
try {
|
|
333761
|
+
const config = this.getLayerConfig(layerId);
|
|
333762
|
+
if (!config) {
|
|
333763
|
+
return false;
|
|
333764
|
+
}
|
|
333765
|
+
const nextConfig = {
|
|
333766
|
+
...config,
|
|
333767
|
+
params: {
|
|
333768
|
+
...config.params || {},
|
|
333769
|
+
...params
|
|
333770
|
+
},
|
|
333771
|
+
geojsonConfig: {
|
|
333772
|
+
...config.geojsonConfig || ((_a2 = config.config) == null ? void 0 : _a2.geojson) || {},
|
|
333773
|
+
request: {
|
|
333774
|
+
...((_c2 = config.geojsonConfig || ((_b2 = config.config) == null ? void 0 : _b2.geojson)) == null ? void 0 : _c2.request) || {},
|
|
333775
|
+
params: {
|
|
333776
|
+
...((_f = (_e2 = config.geojsonConfig || ((_d = config.config) == null ? void 0 : _d.geojson)) == null ? void 0 : _e2.request) == null ? void 0 : _f.params) || {},
|
|
333777
|
+
...params
|
|
333778
|
+
}
|
|
333779
|
+
}
|
|
333780
|
+
}
|
|
333781
|
+
};
|
|
333782
|
+
if (this.layerConfigs.has(layerId)) {
|
|
333783
|
+
this.layerConfigs.set(layerId, nextConfig);
|
|
333784
|
+
}
|
|
333785
|
+
if (this.pendingLayerConfigs.has(layerId)) {
|
|
333786
|
+
this.pendingLayerConfigs.set(layerId, nextConfig);
|
|
333787
|
+
}
|
|
333788
|
+
const handler = this.layerHandlers.get(layerId);
|
|
333789
|
+
(_g = handler == null ? void 0 : handler.updateRequestParams) == null ? void 0 : _g.call(handler, params);
|
|
333790
|
+
this.saveLayerConfigs();
|
|
333791
|
+
this.eventBus.emit("layer-config-updated", {
|
|
333792
|
+
layerId,
|
|
333793
|
+
config: nextConfig
|
|
333794
|
+
});
|
|
333795
|
+
return true;
|
|
333796
|
+
} catch (error2) {
|
|
333797
|
+
console.error("更新图层请求参数失败:", error2);
|
|
333798
|
+
return false;
|
|
333799
|
+
}
|
|
333800
|
+
}
|
|
333372
333801
|
/**
|
|
333373
333802
|
* 设置底图图层ID列表(用于底图互斥判断)
|
|
333374
333803
|
*/
|
|
@@ -333692,12 +334121,19 @@ class LayerManager {
|
|
|
333692
334121
|
updateLayerConfig(layerId, newConfig) {
|
|
333693
334122
|
try {
|
|
333694
334123
|
const handler = this.layerHandlers.get(layerId);
|
|
333695
|
-
const config = this.layerConfigs.get(layerId);
|
|
333696
|
-
if (
|
|
334124
|
+
const config = this.layerConfigs.get(layerId) || this.pendingLayerConfigs.get(layerId);
|
|
334125
|
+
if (config) {
|
|
333697
334126
|
const updatedConfig = { ...config, ...newConfig };
|
|
333698
|
-
this.layerConfigs.
|
|
333699
|
-
|
|
333700
|
-
|
|
334127
|
+
if (this.layerConfigs.has(layerId)) {
|
|
334128
|
+
this.layerConfigs.set(layerId, updatedConfig);
|
|
334129
|
+
}
|
|
334130
|
+
if (this.pendingLayerConfigs.has(layerId)) {
|
|
334131
|
+
this.pendingLayerConfigs.set(layerId, updatedConfig);
|
|
334132
|
+
}
|
|
334133
|
+
if (handler) {
|
|
334134
|
+
handler.updateConfig(newConfig);
|
|
334135
|
+
}
|
|
334136
|
+
if (handler && (newConfig.style || newConfig.customCss !== void 0)) {
|
|
333701
334137
|
if ("updateLayerStyles" in handler) {
|
|
333702
334138
|
handler.updateLayerStyles(
|
|
333703
334139
|
updatedConfig.style,
|
|
@@ -334210,15 +334646,15 @@ const _hoisted_8$b = {
|
|
|
334210
334646
|
key: 1,
|
|
334211
334647
|
class: "image-error"
|
|
334212
334648
|
};
|
|
334213
|
-
const _hoisted_9$
|
|
334649
|
+
const _hoisted_9$b = {
|
|
334214
334650
|
key: 2,
|
|
334215
334651
|
class: "image-navigation"
|
|
334216
334652
|
};
|
|
334217
|
-
const _hoisted_10$
|
|
334653
|
+
const _hoisted_10$b = {
|
|
334218
334654
|
key: 3,
|
|
334219
334655
|
class: "image-counter"
|
|
334220
334656
|
};
|
|
334221
|
-
const _hoisted_11$
|
|
334657
|
+
const _hoisted_11$9 = {
|
|
334222
334658
|
key: 2,
|
|
334223
334659
|
class: "image-thumbnails"
|
|
334224
334660
|
};
|
|
@@ -334397,7 +334833,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
334397
334833
|
imageError.value ? (openBlock(), createElementBlock("div", _hoisted_8$b, [..._cache[5] || (_cache[5] = [
|
|
334398
334834
|
createElementVNode("span", null, "图片加载失败", -1)
|
|
334399
334835
|
])])) : createCommentVNode("", true),
|
|
334400
|
-
imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
334836
|
+
imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$b, [
|
|
334401
334837
|
createVNode$1(unref(ElButton), {
|
|
334402
334838
|
class: "nav-btn prev-btn",
|
|
334403
334839
|
disabled: currentIndex.value === 0,
|
|
@@ -334423,10 +334859,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
334423
334859
|
_: 1
|
|
334424
334860
|
}, 8, ["disabled"])
|
|
334425
334861
|
])) : createCommentVNode("", true),
|
|
334426
|
-
imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
334862
|
+
imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$b, toDisplayString(currentIndex.value + 1) + " / " + toDisplayString(imageList.value.length), 1)) : createCommentVNode("", true)
|
|
334427
334863
|
])
|
|
334428
334864
|
]),
|
|
334429
|
-
_ctx.config.showThumbnails && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
334865
|
+
_ctx.config.showThumbnails && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_11$9, [
|
|
334430
334866
|
(openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (image2, index2) => {
|
|
334431
334867
|
return openBlock(), createElementBlock("div", {
|
|
334432
334868
|
key: index2,
|
|
@@ -334513,9 +334949,9 @@ const _hoisted_8$a = {
|
|
|
334513
334949
|
key: 5,
|
|
334514
334950
|
class: "table-view"
|
|
334515
334951
|
};
|
|
334516
|
-
const _hoisted_9$
|
|
334517
|
-
const _hoisted_10$
|
|
334518
|
-
const _hoisted_11$
|
|
334952
|
+
const _hoisted_9$a = { class: "table-container" };
|
|
334953
|
+
const _hoisted_10$a = { class: "data-table" };
|
|
334954
|
+
const _hoisted_11$8 = ["onClick"];
|
|
334519
334955
|
const _hoisted_12$6 = {
|
|
334520
334956
|
key: 0,
|
|
334521
334957
|
class: "sort-indicator"
|
|
@@ -334778,8 +335214,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
334778
335214
|
searchQuery.value ? (openBlock(), createElementBlock("span", _hoisted_7$b, "(已过滤 " + toDisplayString(arrayData.value.length - filteredData.value.length) + " 条)", 1)) : createCommentVNode("", true)
|
|
334779
335215
|
])) : createCommentVNode("", true),
|
|
334780
335216
|
currentView.value === "table" ? (openBlock(), createElementBlock("div", _hoisted_8$a, [
|
|
334781
|
-
createElementVNode("div", _hoisted_9$
|
|
334782
|
-
createElementVNode("table", _hoisted_10$
|
|
335217
|
+
createElementVNode("div", _hoisted_9$a, [
|
|
335218
|
+
createElementVNode("table", _hoisted_10$a, [
|
|
334783
335219
|
createElementVNode("thead", null, [
|
|
334784
335220
|
createElementVNode("tr", null, [
|
|
334785
335221
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayFields.value, (field) => {
|
|
@@ -334790,7 +335226,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
334790
335226
|
}, [
|
|
334791
335227
|
createTextVNode(toDisplayString(field.label) + " ", 1),
|
|
334792
335228
|
field.sortable && sortField.value === field.key ? (openBlock(), createElementBlock("span", _hoisted_12$6, toDisplayString(sortOrder.value === "asc" ? "↑" : "↓"), 1)) : createCommentVNode("", true)
|
|
334793
|
-
], 10, _hoisted_11$
|
|
335229
|
+
], 10, _hoisted_11$8);
|
|
334794
335230
|
}), 128))
|
|
334795
335231
|
])
|
|
334796
335232
|
]),
|
|
@@ -336901,6 +337337,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
336901
337337
|
var _a2;
|
|
336902
337338
|
return (_a2 = mapManager.value) == null ? void 0 : _a2.getEventManager();
|
|
336903
337339
|
},
|
|
337340
|
+
clearAll: () => {
|
|
337341
|
+
var _a2;
|
|
337342
|
+
(_a2 = mapManager.value) == null ? void 0 : _a2.clearAll();
|
|
337343
|
+
},
|
|
336904
337344
|
updateMapConfig,
|
|
336905
337345
|
startCoordinatePick,
|
|
336906
337346
|
stopCoordinatePick,
|
|
@@ -336914,12 +337354,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
336914
337354
|
return openBlock(), createElementBlock("div", {
|
|
336915
337355
|
ref_key: "mapContainerRef",
|
|
336916
337356
|
ref: mapContainerRef,
|
|
336917
|
-
class: "relative w-full h-full overflow-hidden
|
|
337357
|
+
class: "relative w-full h-full overflow-hidden",
|
|
336918
337358
|
style: normalizeStyle$1(mapStyle.value)
|
|
336919
337359
|
}, [
|
|
336920
337360
|
createElementVNode("div", {
|
|
336921
337361
|
id: mapId.value,
|
|
336922
|
-
class: "w-full h-full
|
|
337362
|
+
class: "w-full h-full"
|
|
336923
337363
|
}, null, 8, _hoisted_1$m),
|
|
336924
337364
|
withDirectives(createElementVNode("div", _hoisted_2$l, null, 512), [
|
|
336925
337365
|
[vShow, _ctx.loading],
|
|
@@ -336930,19 +337370,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
336930
337370
|
}
|
|
336931
337371
|
});
|
|
336932
337372
|
const defaultComponents = {
|
|
336933
|
-
measurement: () => import("./MeasurementDialog-
|
|
336934
|
-
basemap: () => import("./BasemapPanel-
|
|
336935
|
-
print: () => import("./MapPrintDialog-
|
|
336936
|
-
"layer-panel": () => import("./LayerPanel-
|
|
336937
|
-
coordinate: () => import("./CoordinateLocationDialog-
|
|
336938
|
-
"region-navigation": () => import("./RegionNavigationDialog-
|
|
336939
|
-
"my-markers": () => import("./MyMarkersDialog-
|
|
336940
|
-
"view-bookmarks": () => import("./ViewBookmarksDialog-
|
|
336941
|
-
"map-drawing": () => import("./index-
|
|
336942
|
-
"filter-panel": () => import("./FilterPanel-
|
|
336943
|
-
"swipe-compare": () => import("./SwipeCompareDialog-
|
|
336944
|
-
"split-compare": () => import("./SplitCompareDialog-
|
|
336945
|
-
"quad-compare": () => import("./QuadCompareDialog-
|
|
337373
|
+
measurement: () => import("./MeasurementDialog-44599074.mjs"),
|
|
337374
|
+
basemap: () => import("./BasemapPanel-d022a31a.mjs"),
|
|
337375
|
+
print: () => import("./MapPrintDialog-c65f685b.mjs"),
|
|
337376
|
+
"layer-panel": () => import("./LayerPanel-1a0456a4.mjs"),
|
|
337377
|
+
coordinate: () => import("./CoordinateLocationDialog-6cdf239b.mjs"),
|
|
337378
|
+
"region-navigation": () => import("./RegionNavigationDialog-b1cdc5f9.mjs"),
|
|
337379
|
+
"my-markers": () => import("./MyMarkersDialog-dd288574.mjs"),
|
|
337380
|
+
"view-bookmarks": () => import("./ViewBookmarksDialog-2a6bc942.mjs"),
|
|
337381
|
+
"map-drawing": () => import("./index-199c60c9.mjs"),
|
|
337382
|
+
"filter-panel": () => import("./FilterPanel-de00b336.mjs"),
|
|
337383
|
+
"swipe-compare": () => import("./SwipeCompareDialog-dfae0afd.mjs"),
|
|
337384
|
+
"split-compare": () => import("./SplitCompareDialog-6dd0fb71.mjs"),
|
|
337385
|
+
"quad-compare": () => import("./QuadCompareDialog-2cd17881.mjs")
|
|
336946
337386
|
};
|
|
336947
337387
|
const _DialogRegistry = class _DialogRegistry {
|
|
336948
337388
|
constructor() {
|
|
@@ -338153,15 +338593,15 @@ const _hoisted_5$f = ["onClick"];
|
|
|
338153
338593
|
const _hoisted_6$b = { class: "item-content" };
|
|
338154
338594
|
const _hoisted_7$a = { class: "item-name" };
|
|
338155
338595
|
const _hoisted_8$9 = { class: "item-address" };
|
|
338156
|
-
const _hoisted_9$
|
|
338596
|
+
const _hoisted_9$9 = {
|
|
338157
338597
|
key: 1,
|
|
338158
338598
|
class: "search-section"
|
|
338159
338599
|
};
|
|
338160
|
-
const _hoisted_10$
|
|
338600
|
+
const _hoisted_10$9 = {
|
|
338161
338601
|
key: 0,
|
|
338162
338602
|
class: "section-title"
|
|
338163
338603
|
};
|
|
338164
|
-
const _hoisted_11$
|
|
338604
|
+
const _hoisted_11$7 = { class: "result-count" };
|
|
338165
338605
|
const _hoisted_12$5 = ["onClick"];
|
|
338166
338606
|
const _hoisted_13$5 = { class: "item-content" };
|
|
338167
338607
|
const _hoisted_14$3 = ["innerHTML"];
|
|
@@ -338537,14 +338977,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
338537
338977
|
]);
|
|
338538
338978
|
}), 128))
|
|
338539
338979
|
])) : createCommentVNode("", true),
|
|
338540
|
-
searchResults.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
338980
|
+
searchResults.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$9, [
|
|
338541
338981
|
renderSlot(_ctx.$slots, "results-title", {
|
|
338542
338982
|
searchQuery: searchQuery.value,
|
|
338543
338983
|
resultsCount: searchResults.value.length
|
|
338544
338984
|
}, () => [
|
|
338545
|
-
searchQuery.value ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
338985
|
+
searchQuery.value ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
|
|
338546
338986
|
_cache[3] || (_cache[3] = createElementVNode("span", null, "搜索结果", -1)),
|
|
338547
|
-
createElementVNode("span", _hoisted_11$
|
|
338987
|
+
createElementVNode("span", _hoisted_11$7, "(" + toDisplayString(searchResults.value.length) + ")", 1)
|
|
338548
338988
|
])) : createCommentVNode("", true)
|
|
338549
338989
|
]),
|
|
338550
338990
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayResults.value, (result, index2) => {
|
|
@@ -339149,7 +339589,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
339149
339589
|
}, null, 8, ["modelValue", "vertical", "height", "width", "min", "max", "step", "show-tooltip", "style"]),
|
|
339150
339590
|
sliderConfig.value.showValue ? (openBlock(), createElementBlock("span", {
|
|
339151
339591
|
key: 0,
|
|
339152
|
-
class: normalizeClass(["text-xs
|
|
339592
|
+
class: normalizeClass(["text-xs font-medium min-w-5 text-center", {
|
|
339153
339593
|
"mt-2": props.direction === "vertical",
|
|
339154
339594
|
"ml-2": props.direction === "horizontal"
|
|
339155
339595
|
}])
|
|
@@ -339369,7 +339809,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
339369
339809
|
};
|
|
339370
339810
|
}
|
|
339371
339811
|
});
|
|
339372
|
-
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
339812
|
+
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-fdbbb5b4"]]);
|
|
339373
339813
|
const _hoisted_1$i = {
|
|
339374
339814
|
key: 0,
|
|
339375
339815
|
class: "ol-legend-header"
|
|
@@ -339390,9 +339830,9 @@ const _hoisted_8$8 = {
|
|
|
339390
339830
|
key: 0,
|
|
339391
339831
|
class: "gradient-unit"
|
|
339392
339832
|
};
|
|
339393
|
-
const _hoisted_9$
|
|
339394
|
-
const _hoisted_10$
|
|
339395
|
-
const _hoisted_11$
|
|
339833
|
+
const _hoisted_9$8 = ["innerHTML"];
|
|
339834
|
+
const _hoisted_10$8 = ["src"];
|
|
339835
|
+
const _hoisted_11$6 = ["title"];
|
|
339396
339836
|
const _hoisted_12$4 = {
|
|
339397
339837
|
key: 3,
|
|
339398
339838
|
class: "legend-desc"
|
|
@@ -339677,7 +340117,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
339677
340117
|
key: 1,
|
|
339678
340118
|
class: "legend-custom",
|
|
339679
340119
|
innerHTML: legend.content
|
|
339680
|
-
}, null, 8, _hoisted_9$
|
|
340120
|
+
}, null, 8, _hoisted_9$8)) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(legend.items, (item, idx) => {
|
|
339681
340121
|
return openBlock(), createElementBlock("div", {
|
|
339682
340122
|
key: idx,
|
|
339683
340123
|
class: "legend-row"
|
|
@@ -339691,7 +340131,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
339691
340131
|
src: item.image,
|
|
339692
340132
|
class: "icon-img",
|
|
339693
340133
|
onError: handleImageError
|
|
339694
|
-
}, null, 40, _hoisted_10$
|
|
340134
|
+
}, null, 40, _hoisted_10$8)) : (openBlock(), createElementBlock("div", {
|
|
339695
340135
|
key: 1,
|
|
339696
340136
|
class: "symbol-shape",
|
|
339697
340137
|
style: normalizeStyle$1(getSymbolInnerStyle(legend.type, item))
|
|
@@ -339700,7 +340140,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
339700
340140
|
createElementVNode("span", {
|
|
339701
340141
|
class: "legend-label",
|
|
339702
340142
|
title: item.label
|
|
339703
|
-
}, toDisplayString(item.label), 9, _hoisted_11$
|
|
340143
|
+
}, toDisplayString(item.label), 9, _hoisted_11$6)
|
|
339704
340144
|
]);
|
|
339705
340145
|
}), 128)),
|
|
339706
340146
|
legend.description ? (openBlock(), createElementBlock("div", _hoisted_12$4, toDisplayString(legend.description), 1)) : createCommentVNode("", true)
|
|
@@ -340681,9 +341121,9 @@ const _hoisted_5$c = { class: "config-item" };
|
|
|
340681
341121
|
const _hoisted_6$8 = { class: "value-text" };
|
|
340682
341122
|
const _hoisted_7$7 = { class: "config-item" };
|
|
340683
341123
|
const _hoisted_8$7 = { class: "value-text" };
|
|
340684
|
-
const _hoisted_9$
|
|
340685
|
-
const _hoisted_10$
|
|
340686
|
-
const _hoisted_11$
|
|
341124
|
+
const _hoisted_9$7 = { class: "config-item" };
|
|
341125
|
+
const _hoisted_10$7 = { class: "value-text" };
|
|
341126
|
+
const _hoisted_11$5 = { class: "config-section" };
|
|
340687
341127
|
const _hoisted_12$3 = { class: "config-item" };
|
|
340688
341128
|
const _hoisted_13$3 = { class: "value-text" };
|
|
340689
341129
|
const _hoisted_14$2 = { class: "config-item" };
|
|
@@ -340753,7 +341193,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
340753
341193
|
}, null, 8, ["modelValue"]),
|
|
340754
341194
|
createElementVNode("span", _hoisted_8$7, toDisplayString(_ctx.filters.brightness) + "%", 1)
|
|
340755
341195
|
]),
|
|
340756
|
-
createElementVNode("div", _hoisted_9$
|
|
341196
|
+
createElementVNode("div", _hoisted_9$7, [
|
|
340757
341197
|
_cache[14] || (_cache[14] = createElementVNode("label", null, "对比度:", -1)),
|
|
340758
341198
|
createVNode$1(_component_el_slider, {
|
|
340759
341199
|
modelValue: _ctx.filters.contrast,
|
|
@@ -340763,10 +341203,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
340763
341203
|
step: 1,
|
|
340764
341204
|
onInput: handleFilterChange
|
|
340765
341205
|
}, null, 8, ["modelValue"]),
|
|
340766
|
-
createElementVNode("span", _hoisted_10$
|
|
341206
|
+
createElementVNode("span", _hoisted_10$7, toDisplayString(_ctx.filters.contrast) + "%", 1)
|
|
340767
341207
|
])
|
|
340768
341208
|
]),
|
|
340769
|
-
createElementVNode("div", _hoisted_11$
|
|
341209
|
+
createElementVNode("div", _hoisted_11$5, [
|
|
340770
341210
|
_cache[20] || (_cache[20] = createElementVNode("h5", null, "特殊效果", -1)),
|
|
340771
341211
|
createElementVNode("div", _hoisted_12$3, [
|
|
340772
341212
|
_cache[16] || (_cache[16] = createElementVNode("label", null, "模糊:", -1)),
|
|
@@ -340878,9 +341318,9 @@ const _hoisted_8$6 = {
|
|
|
340878
341318
|
key: 1,
|
|
340879
341319
|
class: "config-section"
|
|
340880
341320
|
};
|
|
340881
|
-
const _hoisted_9$
|
|
340882
|
-
const _hoisted_10$
|
|
340883
|
-
const _hoisted_11$
|
|
341321
|
+
const _hoisted_9$6 = { class: "config-item" };
|
|
341322
|
+
const _hoisted_10$6 = { class: "config-item" };
|
|
341323
|
+
const _hoisted_11$4 = { class: "config-item" };
|
|
340884
341324
|
const _hoisted_12$2 = { class: "config-item" };
|
|
340885
341325
|
const _hoisted_13$2 = { class: "panel-actions" };
|
|
340886
341326
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -340945,7 +341385,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
340945
341385
|
])) : createCommentVNode("", true),
|
|
340946
341386
|
isSuperMapLayer.value ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
340947
341387
|
_cache[13] || (_cache[13] = createElementVNode("h5", null, "SuperMap配置", -1)),
|
|
340948
|
-
createElementVNode("div", _hoisted_9$
|
|
341388
|
+
createElementVNode("div", _hoisted_9$6, [
|
|
340949
341389
|
_cache[9] || (_cache[9] = createElementVNode("label", null, "图片格式:", -1)),
|
|
340950
341390
|
createVNode$1(_component_el_select, {
|
|
340951
341391
|
modelValue: _ctx.layerData.format,
|
|
@@ -340970,7 +341410,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
340970
341410
|
_: 1
|
|
340971
341411
|
}, 8, ["modelValue"])
|
|
340972
341412
|
]),
|
|
340973
|
-
createElementVNode("div", _hoisted_10$
|
|
341413
|
+
createElementVNode("div", _hoisted_10$6, [
|
|
340974
341414
|
_cache[10] || (_cache[10] = createElementVNode("label", null, "透明度支持:", -1)),
|
|
340975
341415
|
createVNode$1(_component_el_switch, {
|
|
340976
341416
|
modelValue: _ctx.layerData.transparent,
|
|
@@ -340979,7 +341419,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
340979
341419
|
onChange: handleSuperMapConfigChange
|
|
340980
341420
|
}, null, 8, ["modelValue"])
|
|
340981
341421
|
]),
|
|
340982
|
-
createElementVNode("div", _hoisted_11$
|
|
341422
|
+
createElementVNode("div", _hoisted_11$4, [
|
|
340983
341423
|
_cache[11] || (_cache[11] = createElementVNode("label", null, "缓存启用:", -1)),
|
|
340984
341424
|
createVNode$1(_component_el_switch, {
|
|
340985
341425
|
modelValue: _ctx.layerData.cacheEnabled,
|
|
@@ -351970,7 +352410,7 @@ function(t3) {
|
|
|
351970
352410
|
*/
|
|
351971
352411
|
function(t3) {
|
|
351972
352412
|
function e8() {
|
|
351973
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
352413
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-560c236e.mjs")).catch(function(t4) {
|
|
351974
352414
|
return Promise.reject(new Error("Could not load canvg: " + t4));
|
|
351975
352415
|
}).then(function(t4) {
|
|
351976
352416
|
return t4.default ? t4.default : t4;
|
|
@@ -352394,7 +352834,7 @@ function(t3) {
|
|
|
352394
352834
|
return null == e8 && (e8 = false), r2 = e8 ? this.lineGap : 0, (this.ascender + r2 - this.decender) / 1e3 * t4;
|
|
352395
352835
|
}, t3;
|
|
352396
352836
|
}();
|
|
352397
|
-
var re
|
|
352837
|
+
var re;
|
|
352398
352838
|
var ne = function() {
|
|
352399
352839
|
function t3(t4) {
|
|
352400
352840
|
this.data = null != t4 ? t4 : [], this.pos = 0, this.length = this.data.length;
|
|
@@ -352472,7 +352912,7 @@ var ie = function() {
|
|
|
352472
352912
|
return n2.write(d2), r2 = 2981146554 - t3(n2.data), n2.pos = o2 + 8, n2.writeUInt32(r2), n2.data;
|
|
352473
352913
|
}, t3 = function(t4) {
|
|
352474
352914
|
var e9, r2, n2, i;
|
|
352475
|
-
for (t4 = ve.call(t4); t4.length % 4; )
|
|
352915
|
+
for (t4 = ve$1.call(t4); t4.length % 4; )
|
|
352476
352916
|
t4.push(0);
|
|
352477
352917
|
for (n2 = new ne(t4), r2 = 0, e9 = 0, i = t4.length; e9 < i; e9 = e9 += 4)
|
|
352478
352918
|
r2 += n2.readUInt32();
|
|
@@ -352488,7 +352928,7 @@ var oe = function(t3, e8) {
|
|
|
352488
352928
|
}
|
|
352489
352929
|
return n2.prototype = e8.prototype, t3.prototype = new n2(), t3.__super__ = e8.prototype, t3;
|
|
352490
352930
|
};
|
|
352491
|
-
re
|
|
352931
|
+
re = function() {
|
|
352492
352932
|
function t3(t4) {
|
|
352493
352933
|
var e8;
|
|
352494
352934
|
this.file = t4, e8 = this.file.directory.tables[this.tag], this.exists = !!e8, e8 && (this.offset = e8.offset, this.length = e8.length, this.parse(this.file.contents));
|
|
@@ -352503,14 +352943,14 @@ var se = function(t3) {
|
|
|
352503
352943
|
function e8() {
|
|
352504
352944
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352505
352945
|
}
|
|
352506
|
-
return oe(e8, re
|
|
352946
|
+
return oe(e8, re), e8.prototype.tag = "head", e8.prototype.parse = function(t4) {
|
|
352507
352947
|
return t4.pos = this.offset, this.version = t4.readInt(), this.revision = t4.readInt(), this.checkSumAdjustment = t4.readInt(), this.magicNumber = t4.readInt(), this.flags = t4.readShort(), this.unitsPerEm = t4.readShort(), this.created = t4.readLongLong(), this.modified = t4.readLongLong(), this.xMin = t4.readShort(), this.yMin = t4.readShort(), this.xMax = t4.readShort(), this.yMax = t4.readShort(), this.macStyle = t4.readShort(), this.lowestRecPPEM = t4.readShort(), this.fontDirectionHint = t4.readShort(), this.indexToLocFormat = t4.readShort(), this.glyphDataFormat = t4.readShort();
|
|
352508
352948
|
}, e8.prototype.encode = function(t4) {
|
|
352509
352949
|
var e9;
|
|
352510
352950
|
return (e9 = new ne()).writeInt(this.version), e9.writeInt(this.revision), e9.writeInt(this.checkSumAdjustment), e9.writeInt(this.magicNumber), e9.writeShort(this.flags), e9.writeShort(this.unitsPerEm), e9.writeLongLong(this.created), e9.writeLongLong(this.modified), e9.writeShort(this.xMin), e9.writeShort(this.yMin), e9.writeShort(this.xMax), e9.writeShort(this.yMax), e9.writeShort(this.macStyle), e9.writeShort(this.lowestRecPPEM), e9.writeShort(this.fontDirectionHint), e9.writeShort(t4), e9.writeShort(this.glyphDataFormat), e9.data;
|
|
352511
352951
|
}, e8;
|
|
352512
352952
|
}();
|
|
352513
|
-
var ce
|
|
352953
|
+
var ce = function() {
|
|
352514
352954
|
function t3(t4, e8) {
|
|
352515
352955
|
var r2, n2, i, a3, o2, s2, c2, u2, h2, l2, f2, d2, p5, g2, m2, v4, b10;
|
|
352516
352956
|
switch (this.platformID = t4.readUInt16(), this.encodingID = t4.readShort(), this.offset = e8 + t4.readInt(), h2 = t4.pos, t4.pos = this.offset, this.format = t4.readUInt16(), this.length = t4.readUInt16(), this.language = t4.readUInt16(), this.isUnicode = 3 === this.platformID && 1 === this.encodingID && 4 === this.format || 0 === this.platformID && 4 === this.format, this.codeMap = {}, this.format) {
|
|
@@ -352596,21 +353036,21 @@ var ue$1 = function(t3) {
|
|
|
352596
353036
|
function e8() {
|
|
352597
353037
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352598
353038
|
}
|
|
352599
|
-
return oe(e8, re
|
|
353039
|
+
return oe(e8, re), e8.prototype.tag = "cmap", e8.prototype.parse = function(t4) {
|
|
352600
353040
|
var e9, r2, n2;
|
|
352601
353041
|
for (t4.pos = this.offset, this.version = t4.readUInt16(), n2 = t4.readUInt16(), this.tables = [], this.unicode = null, r2 = 0; 0 <= n2 ? r2 < n2 : r2 > n2; r2 = 0 <= n2 ? ++r2 : --r2)
|
|
352602
|
-
e9 = new ce
|
|
353042
|
+
e9 = new ce(t4, this.offset), this.tables.push(e9), e9.isUnicode && null == this.unicode && (this.unicode = e9);
|
|
352603
353043
|
return true;
|
|
352604
353044
|
}, e8.encode = function(t4, e9) {
|
|
352605
353045
|
var r2, n2;
|
|
352606
|
-
return null == e9 && (e9 = "macroman"), r2 = ce
|
|
353046
|
+
return null == e9 && (e9 = "macroman"), r2 = ce.encode(t4, e9), (n2 = new ne()).writeUInt16(0), n2.writeUInt16(1), r2.table = n2.data.concat(r2.subtable), r2;
|
|
352607
353047
|
}, e8;
|
|
352608
353048
|
}();
|
|
352609
353049
|
var he$1 = function(t3) {
|
|
352610
353050
|
function e8() {
|
|
352611
353051
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352612
353052
|
}
|
|
352613
|
-
return oe(e8, re
|
|
353053
|
+
return oe(e8, re), e8.prototype.tag = "hhea", e8.prototype.parse = function(t4) {
|
|
352614
353054
|
return t4.pos = this.offset, this.version = t4.readInt(), this.ascender = t4.readShort(), this.decender = t4.readShort(), this.lineGap = t4.readShort(), this.advanceWidthMax = t4.readShort(), this.minLeftSideBearing = t4.readShort(), this.minRightSideBearing = t4.readShort(), this.xMaxExtent = t4.readShort(), this.caretSlopeRise = t4.readShort(), this.caretSlopeRun = t4.readShort(), this.caretOffset = t4.readShort(), t4.pos += 8, this.metricDataFormat = t4.readShort(), this.numberOfMetrics = t4.readUInt16();
|
|
352615
353055
|
}, e8;
|
|
352616
353056
|
}();
|
|
@@ -352618,7 +353058,7 @@ var le = function(t3) {
|
|
|
352618
353058
|
function e8() {
|
|
352619
353059
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352620
353060
|
}
|
|
352621
|
-
return oe(e8, re
|
|
353061
|
+
return oe(e8, re), e8.prototype.tag = "OS/2", e8.prototype.parse = function(t4) {
|
|
352622
353062
|
if (t4.pos = this.offset, this.version = t4.readUInt16(), this.averageCharWidth = t4.readShort(), this.weightClass = t4.readUInt16(), this.widthClass = t4.readUInt16(), this.type = t4.readShort(), this.ySubscriptXSize = t4.readShort(), this.ySubscriptYSize = t4.readShort(), this.ySubscriptXOffset = t4.readShort(), this.ySubscriptYOffset = t4.readShort(), this.ySuperscriptXSize = t4.readShort(), this.ySuperscriptYSize = t4.readShort(), this.ySuperscriptXOffset = t4.readShort(), this.ySuperscriptYOffset = t4.readShort(), this.yStrikeoutSize = t4.readShort(), this.yStrikeoutPosition = t4.readShort(), this.familyClass = t4.readShort(), this.panose = function() {
|
|
352623
353063
|
var e9, r2;
|
|
352624
353064
|
for (r2 = [], e9 = 0; e9 < 10; ++e9)
|
|
@@ -352642,7 +353082,7 @@ var fe$1 = function(t3) {
|
|
|
352642
353082
|
function e8() {
|
|
352643
353083
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352644
353084
|
}
|
|
352645
|
-
return oe(e8, re
|
|
353085
|
+
return oe(e8, re), e8.prototype.tag = "post", e8.prototype.parse = function(t4) {
|
|
352646
353086
|
var e9, r2, n2;
|
|
352647
353087
|
switch (t4.pos = this.offset, this.format = t4.readInt(), this.italicAngle = t4.readInt(), this.underlinePosition = t4.readShort(), this.underlineThickness = t4.readShort(), this.isFixedPitch = t4.readInt(), this.minMemType42 = t4.readInt(), this.maxMemType42 = t4.readInt(), this.minMemType1 = t4.readInt(), this.maxMemType1 = t4.readInt(), this.format) {
|
|
352648
353088
|
case 65536:
|
|
@@ -352675,7 +353115,7 @@ var pe$1 = function(t3) {
|
|
|
352675
353115
|
function e8() {
|
|
352676
353116
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352677
353117
|
}
|
|
352678
|
-
return oe(e8, re
|
|
353118
|
+
return oe(e8, re), e8.prototype.tag = "name", e8.prototype.parse = function(t4) {
|
|
352679
353119
|
var e9, r2, n2, i, a3, o2, s2, c2, u2, h2, l2;
|
|
352680
353120
|
for (t4.pos = this.offset, t4.readShort(), e9 = t4.readShort(), o2 = t4.readShort(), r2 = [], i = 0; 0 <= e9 ? i < e9 : i > e9; i = 0 <= e9 ? ++i : --i)
|
|
352681
353121
|
r2.push({ platformID: t4.readShort(), encodingID: t4.readShort(), languageID: t4.readShort(), nameID: t4.readShort(), length: t4.readShort(), offset: this.offset + o2 + t4.readShort() });
|
|
@@ -352694,7 +353134,7 @@ var ge$1 = function(t3) {
|
|
|
352694
353134
|
function e8() {
|
|
352695
353135
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352696
353136
|
}
|
|
352697
|
-
return oe(e8, re
|
|
353137
|
+
return oe(e8, re), e8.prototype.tag = "maxp", e8.prototype.parse = function(t4) {
|
|
352698
353138
|
return t4.pos = this.offset, this.version = t4.readInt(), this.numGlyphs = t4.readUInt16(), this.maxPoints = t4.readUInt16(), this.maxContours = t4.readUInt16(), this.maxCompositePoints = t4.readUInt16(), this.maxComponentContours = t4.readUInt16(), this.maxZones = t4.readUInt16(), this.maxTwilightPoints = t4.readUInt16(), this.maxStorage = t4.readUInt16(), this.maxFunctionDefs = t4.readUInt16(), this.maxInstructionDefs = t4.readUInt16(), this.maxStackElements = t4.readUInt16(), this.maxSizeOfInstructions = t4.readUInt16(), this.maxComponentElements = t4.readUInt16(), this.maxComponentDepth = t4.readUInt16();
|
|
352699
353139
|
}, e8;
|
|
352700
353140
|
}();
|
|
@@ -352702,7 +353142,7 @@ var me$1 = function(t3) {
|
|
|
352702
353142
|
function e8() {
|
|
352703
353143
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352704
353144
|
}
|
|
352705
|
-
return oe(e8, re
|
|
353145
|
+
return oe(e8, re), e8.prototype.tag = "hmtx", e8.prototype.parse = function(t4) {
|
|
352706
353146
|
var e9, r2, n2, i, a3, o2, s2;
|
|
352707
353147
|
for (t4.pos = this.offset, this.metrics = [], e9 = 0, o2 = this.file.hhea.numberOfMetrics; 0 <= o2 ? e9 < o2 : e9 > o2; e9 = 0 <= o2 ? ++e9 : --e9)
|
|
352708
353148
|
this.metrics.push({ advance: t4.readUInt16(), lsb: t4.readInt16() });
|
|
@@ -352723,16 +353163,16 @@ var me$1 = function(t3) {
|
|
|
352723
353163
|
return t4 in this.metrics ? this.metrics[t4] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[t4 - this.metrics.length] };
|
|
352724
353164
|
}, e8;
|
|
352725
353165
|
}();
|
|
352726
|
-
var ve = [].slice;
|
|
353166
|
+
var ve$1 = [].slice;
|
|
352727
353167
|
var be = function(t3) {
|
|
352728
353168
|
function e8() {
|
|
352729
353169
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352730
353170
|
}
|
|
352731
|
-
return oe(e8, re
|
|
353171
|
+
return oe(e8, re), e8.prototype.tag = "glyf", e8.prototype.parse = function() {
|
|
352732
353172
|
return this.cache = {};
|
|
352733
353173
|
}, e8.prototype.glyphFor = function(t4) {
|
|
352734
353174
|
var e9, r2, n2, i, a3, o2, s2, c2, u2, h2;
|
|
352735
|
-
return t4 in this.cache ? this.cache[t4] : (i = this.file.loca, e9 = this.file.contents, r2 = i.indexOf(t4), 0 === (n2 = i.lengthOf(t4)) ? this.cache[t4] = null : (e9.pos = this.offset + r2, a3 = (o2 = new ne(e9.read(n2))).readShort(), c2 = o2.readShort(), h2 = o2.readShort(), s2 = o2.readShort(), u2 = o2.readShort(), this.cache[t4] = -1 === a3 ? new we(o2, c2, h2, s2, u2) : new ye(o2, a3, c2, h2, s2, u2), this.cache[t4]));
|
|
353175
|
+
return t4 in this.cache ? this.cache[t4] : (i = this.file.loca, e9 = this.file.contents, r2 = i.indexOf(t4), 0 === (n2 = i.lengthOf(t4)) ? this.cache[t4] = null : (e9.pos = this.offset + r2, a3 = (o2 = new ne(e9.read(n2))).readShort(), c2 = o2.readShort(), h2 = o2.readShort(), s2 = o2.readShort(), u2 = o2.readShort(), this.cache[t4] = -1 === a3 ? new we(o2, c2, h2, s2, u2) : new ye$1(o2, a3, c2, h2, s2, u2), this.cache[t4]));
|
|
352736
353176
|
}, e8.prototype.encode = function(t4, e9, r2) {
|
|
352737
353177
|
var n2, i, a3, o2, s2;
|
|
352738
353178
|
for (a3 = [], i = [], o2 = 0, s2 = e9.length; o2 < s2; o2++)
|
|
@@ -352740,7 +353180,7 @@ var be = function(t3) {
|
|
|
352740
353180
|
return i.push(a3.length), { table: a3, offsets: i };
|
|
352741
353181
|
}, e8;
|
|
352742
353182
|
}();
|
|
352743
|
-
var ye = function() {
|
|
353183
|
+
var ye$1 = function() {
|
|
352744
353184
|
function t3(t4, e8, r2, n2, i, a3) {
|
|
352745
353185
|
this.raw = t4, this.numberOfContours = e8, this.xMin = r2, this.yMin = n2, this.xMax = i, this.yMax = a3, this.compound = false;
|
|
352746
353186
|
}
|
|
@@ -352756,7 +353196,7 @@ var we = function() {
|
|
|
352756
353196
|
}
|
|
352757
353197
|
return t3.prototype.encode = function() {
|
|
352758
353198
|
var t4, e8, r2;
|
|
352759
|
-
for (e8 = new ne(ve.call(this.raw.data)), t4 = 0, r2 = this.glyphIDs.length; t4 < r2; ++t4)
|
|
353199
|
+
for (e8 = new ne(ve$1.call(this.raw.data)), t4 = 0, r2 = this.glyphIDs.length; t4 < r2; ++t4)
|
|
352760
353200
|
e8.pos = this.glyphOffsets[t4];
|
|
352761
353201
|
return e8.data;
|
|
352762
353202
|
}, t3;
|
|
@@ -352765,7 +353205,7 @@ var Ne = function(t3) {
|
|
|
352765
353205
|
function e8() {
|
|
352766
353206
|
return e8.__super__.constructor.apply(this, arguments);
|
|
352767
353207
|
}
|
|
352768
|
-
return oe(e8, re
|
|
353208
|
+
return oe(e8, re), e8.prototype.tag = "loca", e8.prototype.parse = function(t4) {
|
|
352769
353209
|
var e9, r2;
|
|
352770
353210
|
return t4.pos = this.offset, e9 = this.file.head.indexToLocFormat, this.offsets = 0 === e9 ? (function() {
|
|
352771
353211
|
var e11, n2;
|
|
@@ -361160,11 +361600,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
361160
361600
|
}
|
|
361161
361601
|
});
|
|
361162
361602
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
361163
|
-
var
|
|
361603
|
+
var ue = /* @__PURE__ */ defineComponent({
|
|
361164
361604
|
name: "Close",
|
|
361165
361605
|
__name: "close",
|
|
361166
|
-
setup(
|
|
361167
|
-
return (
|
|
361606
|
+
setup(d2) {
|
|
361607
|
+
return (V2, f2) => (openBlock(), createElementBlock("svg", {
|
|
361168
361608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
361169
361609
|
viewBox: "0 0 1024 1024"
|
|
361170
361610
|
}, [
|
|
@@ -361175,12 +361615,12 @@ var re = /* @__PURE__ */ defineComponent({
|
|
|
361175
361615
|
]));
|
|
361176
361616
|
}
|
|
361177
361617
|
});
|
|
361178
|
-
var
|
|
361179
|
-
var
|
|
361618
|
+
var de = ue;
|
|
361619
|
+
var fe = /* @__PURE__ */ defineComponent({
|
|
361180
361620
|
name: "FullScreen",
|
|
361181
361621
|
__name: "full-screen",
|
|
361182
|
-
setup(
|
|
361183
|
-
return (
|
|
361622
|
+
setup(d2) {
|
|
361623
|
+
return (V2, f2) => (openBlock(), createElementBlock("svg", {
|
|
361184
361624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
361185
361625
|
viewBox: "0 0 1024 1024"
|
|
361186
361626
|
}, [
|
|
@@ -361191,11 +361631,11 @@ var de = /* @__PURE__ */ defineComponent({
|
|
|
361191
361631
|
]));
|
|
361192
361632
|
}
|
|
361193
361633
|
});
|
|
361194
|
-
var
|
|
361195
|
-
const
|
|
361196
|
-
const
|
|
361197
|
-
const
|
|
361198
|
-
const
|
|
361634
|
+
var me = fe;
|
|
361635
|
+
const he = { class: "custom-dialog-header" };
|
|
361636
|
+
const pe = ["id"];
|
|
361637
|
+
const ge = { class: "custom-dialog-actions" };
|
|
361638
|
+
const ye = {
|
|
361199
361639
|
key: 1,
|
|
361200
361640
|
class: "icon",
|
|
361201
361641
|
viewBox: "0 0 1025 1024",
|
|
@@ -361204,7 +361644,7 @@ const pe = {
|
|
|
361204
361644
|
width: "1em",
|
|
361205
361645
|
height: "1em"
|
|
361206
361646
|
};
|
|
361207
|
-
const
|
|
361647
|
+
const ve = ["onClick"];
|
|
361208
361648
|
const X = /* @__PURE__ */ defineComponent({
|
|
361209
361649
|
__name: "EPlusResizeDialog",
|
|
361210
361650
|
props: {
|
|
@@ -361216,11 +361656,11 @@ const X = /* @__PURE__ */ defineComponent({
|
|
|
361216
361656
|
modalPenetrable: { type: Boolean, default: true },
|
|
361217
361657
|
closeOnClickModal: { type: Boolean, default: false }
|
|
361218
361658
|
},
|
|
361219
|
-
setup(
|
|
361220
|
-
const
|
|
361221
|
-
const l2 =
|
|
361222
|
-
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !
|
|
361223
|
-
}),
|
|
361659
|
+
setup(d2, { expose: V2 }) {
|
|
361660
|
+
const f2 = d2, Y2 = computed(() => f2.showFullscreen !== false), r2 = ref(), L2 = useAttrs(), j2 = useSlots(), m2 = ref(false), x2 = computed(() => {
|
|
361661
|
+
const l2 = L2.modal;
|
|
361662
|
+
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !f2.modalPenetrable;
|
|
361663
|
+
}), i = {
|
|
361224
361664
|
width: "",
|
|
361225
361665
|
height: "",
|
|
361226
361666
|
left: "",
|
|
@@ -361228,122 +361668,134 @@ const X = /* @__PURE__ */ defineComponent({
|
|
|
361228
361668
|
transform: "",
|
|
361229
361669
|
marginTop: "",
|
|
361230
361670
|
marginBottom: ""
|
|
361231
|
-
},
|
|
361232
|
-
|
|
361233
|
-
|
|
361234
|
-
})) : (
|
|
361235
|
-
|
|
361236
|
-
});
|
|
361237
|
-
};
|
|
361238
|
-
|
|
361239
|
-
dialogRef:
|
|
361240
|
-
toggleFullscreen:
|
|
361241
|
-
isFullscreen:
|
|
361242
|
-
});
|
|
361243
|
-
let
|
|
361244
|
-
const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"],
|
|
361245
|
-
var
|
|
361246
|
-
if (
|
|
361247
|
-
|
|
361671
|
+
}, H4 = () => {
|
|
361672
|
+
m2.value ? (m2.value = false, nextTick(() => {
|
|
361673
|
+
t3 && (t3.style.width = i.width, t3.style.height = i.height, t3.style.left = i.left, t3.style.top = i.top, t3.style.transform = i.transform, t3.style.marginTop = i.marginTop, t3.style.marginBottom = i.marginBottom);
|
|
361674
|
+
})) : (t3 && (i.width = t3.style.width, i.height = t3.style.height, i.left = t3.style.left, i.top = t3.style.top, i.transform = t3.style.transform, i.marginTop = t3.style.marginTop, i.marginBottom = t3.style.marginBottom, t3.style.width = "", t3.style.height = "", t3.style.transform = "", t3.style.left = "", t3.style.top = "", t3.style.marginTop = "", t3.style.marginBottom = ""), m2.value = true), nextTick(() => {
|
|
361675
|
+
B3();
|
|
361676
|
+
});
|
|
361677
|
+
};
|
|
361678
|
+
V2({
|
|
361679
|
+
dialogRef: r2,
|
|
361680
|
+
toggleFullscreen: H4,
|
|
361681
|
+
isFullscreen: m2
|
|
361682
|
+
});
|
|
361683
|
+
let P6 = 0, D2 = 0, C2 = 0, S2 = 0, v4 = 0, w2 = 0, h2 = "", t3 = null;
|
|
361684
|
+
const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], B3 = () => {
|
|
361685
|
+
var o2;
|
|
361686
|
+
if (f2.resizable === false || m2.value) {
|
|
361687
|
+
t3 && t3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
|
|
361248
361688
|
return;
|
|
361249
361689
|
}
|
|
361250
|
-
if (
|
|
361690
|
+
if (t3 && t3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !r2.value)
|
|
361251
361691
|
return;
|
|
361252
|
-
const l2 = ((
|
|
361253
|
-
!l2 || (
|
|
361692
|
+
const l2 = ((o2 = r2.value.dialogContentRef) == null ? void 0 : o2.$el) || r2.value.$el;
|
|
361693
|
+
!l2 || (t3 = l2.querySelector(".el-dialog") || l2, (!t3 || !t3.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? t3 = l2 : t3 = document.querySelector(".el-dialog")), !t3) || (getComputedStyle(t3).position === "static" && (t3.style.position = "relative"), t3.querySelector(".resize-handle")) || U2.forEach((e8) => {
|
|
361254
361694
|
const n2 = document.createElement("div");
|
|
361255
|
-
n2.className = `resize-handle resize-handle-${
|
|
361695
|
+
n2.className = `resize-handle resize-handle-${e8}`, n2.dataset.dir = e8, Object.assign(n2.style, G2(e8)), n2.addEventListener("mousedown", (a3) => J2(a3, e8)), t3.appendChild(n2);
|
|
361256
361696
|
});
|
|
361257
361697
|
}, G2 = (l2) => {
|
|
361258
|
-
const
|
|
361698
|
+
const s2 = "10px", o2 = "-5px", e8 = {
|
|
361259
361699
|
position: "absolute",
|
|
361260
361700
|
zIndex: "100",
|
|
361261
|
-
width: ["n", "s"].includes(l2) ? "100%" :
|
|
361262
|
-
height: ["e", "w"].includes(l2) ? "100%" :
|
|
361701
|
+
width: ["n", "s"].includes(l2) ? "100%" : s2,
|
|
361702
|
+
height: ["e", "w"].includes(l2) ? "100%" : s2,
|
|
361263
361703
|
cursor: `${l2}-resize`
|
|
361264
361704
|
};
|
|
361265
|
-
return l2.includes("n") && (
|
|
361266
|
-
}, J2 = (l2,
|
|
361267
|
-
if (l2.preventDefault(), l2.stopPropagation(), !
|
|
361705
|
+
return l2.includes("n") && (e8.top = o2), l2.includes("s") && (e8.bottom = o2), l2.includes("w") && (e8.left = o2), l2.includes("e") && (e8.right = o2), l2 === "ne" && (e8.top = o2, e8.right = o2, e8.width = s2, e8.height = s2, e8.cursor = "ne-resize"), l2 === "nw" && (e8.top = o2, e8.left = o2, e8.width = s2, e8.height = s2, e8.cursor = "nw-resize"), l2 === "se" && (e8.bottom = o2, e8.right = o2, e8.width = s2, e8.height = s2, e8.cursor = "se-resize"), l2 === "sw" && (e8.bottom = o2, e8.left = o2, e8.width = s2, e8.height = s2, e8.cursor = "sw-resize"), e8;
|
|
361706
|
+
}, J2 = (l2, s2) => {
|
|
361707
|
+
if (l2.preventDefault(), l2.stopPropagation(), !t3)
|
|
361268
361708
|
return;
|
|
361269
|
-
|
|
361270
|
-
const
|
|
361271
|
-
|
|
361272
|
-
const
|
|
361273
|
-
if (
|
|
361274
|
-
const n2 =
|
|
361275
|
-
|
|
361709
|
+
h2 = s2, P6 = l2.clientX, D2 = l2.clientY;
|
|
361710
|
+
const o2 = window.getComputedStyle(t3);
|
|
361711
|
+
C2 = parseInt(o2.width), S2 = parseInt(o2.height), v4 = parseInt(o2.left) || 0, w2 = parseInt(o2.top) || 0;
|
|
361712
|
+
const e8 = t3.getBoundingClientRect();
|
|
361713
|
+
if (o2.position !== "absolute" && o2.position !== "fixed") {
|
|
361714
|
+
const n2 = t3.offsetParent, a3 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, u2 = e8.left - a3.left, c2 = e8.top - a3.top;
|
|
361715
|
+
t3.style.position = "absolute", t3.style.margin = "0", t3.style.left = `${u2}px`, t3.style.top = `${c2}px`, v4 = u2, w2 = c2;
|
|
361276
361716
|
} else
|
|
361277
|
-
|
|
361278
|
-
document.addEventListener("mousemove",
|
|
361279
|
-
},
|
|
361280
|
-
if (!
|
|
361717
|
+
v4 = parseInt(o2.left), w2 = parseInt(o2.top);
|
|
361718
|
+
document.addEventListener("mousemove", q2), document.addEventListener("mouseup", T2);
|
|
361719
|
+
}, q2 = (l2) => {
|
|
361720
|
+
if (!t3)
|
|
361281
361721
|
return;
|
|
361282
|
-
const
|
|
361283
|
-
let
|
|
361284
|
-
const
|
|
361285
|
-
if (
|
|
361286
|
-
const _2 = B3 - o2;
|
|
361287
|
-
_2 >= w2 && (t3 = _2, f2 = g2 + o2);
|
|
361288
|
-
}
|
|
361289
|
-
if (u2.includes("n")) {
|
|
361722
|
+
const s2 = l2.clientX - P6, o2 = l2.clientY - D2;
|
|
361723
|
+
let e8 = C2, n2 = S2, a3 = v4, u2 = w2;
|
|
361724
|
+
const c2 = f2.minWidth || 200, k2 = f2.minHeight || 150;
|
|
361725
|
+
if (h2.includes("e") && (e8 = Math.max(c2, C2 + s2)), h2.includes("s") && (n2 = Math.max(k2, S2 + o2)), h2.includes("w")) {
|
|
361290
361726
|
const _2 = C2 - s2;
|
|
361291
|
-
_2 >=
|
|
361727
|
+
_2 >= c2 && (e8 = _2, a3 = v4 + s2);
|
|
361292
361728
|
}
|
|
361293
|
-
|
|
361729
|
+
if (h2.includes("n")) {
|
|
361730
|
+
const _2 = S2 - o2;
|
|
361731
|
+
_2 >= k2 && (n2 = _2, u2 = w2 + o2);
|
|
361732
|
+
}
|
|
361733
|
+
t3.style.width = `${e8}px`, t3.style.height = `${n2}px`, (h2.includes("w") || h2.includes("n")) && (t3.style.left = `${a3}px`, t3.style.top = `${u2}px`);
|
|
361294
361734
|
}, T2 = () => {
|
|
361295
|
-
document.removeEventListener("mousemove",
|
|
361735
|
+
document.removeEventListener("mousemove", q2), document.removeEventListener("mouseup", T2);
|
|
361296
361736
|
};
|
|
361297
|
-
watch(() =>
|
|
361737
|
+
watch(() => L2.modelValue, (l2) => {
|
|
361298
361738
|
l2 && nextTick(() => {
|
|
361299
|
-
|
|
361739
|
+
B3(), b10();
|
|
361300
361740
|
});
|
|
361301
361741
|
}), watch(() => x2.value, () => {
|
|
361302
361742
|
nextTick(() => {
|
|
361303
|
-
|
|
361743
|
+
b10();
|
|
361304
361744
|
});
|
|
361305
361745
|
});
|
|
361306
|
-
const
|
|
361307
|
-
var
|
|
361308
|
-
if (!
|
|
361746
|
+
const b10 = () => {
|
|
361747
|
+
var a3, u2;
|
|
361748
|
+
if (!r2.value)
|
|
361309
361749
|
return;
|
|
361310
|
-
const l2 = ((
|
|
361750
|
+
const l2 = ((a3 = r2.value.dialogContentRef) == null ? void 0 : a3.$el) || r2.value.$el;
|
|
361311
361751
|
if (!l2)
|
|
361312
361752
|
return;
|
|
361313
|
-
let
|
|
361314
|
-
|
|
361753
|
+
let s2 = l2.querySelector(".el-dialog");
|
|
361754
|
+
if (!s2 && ((u2 = l2.classList) != null && u2.contains("el-dialog")) && (s2 = l2), !s2) {
|
|
361755
|
+
const c2 = r2.value.$el;
|
|
361756
|
+
c2 && (s2 = c2.querySelector(".el-dialog"));
|
|
361757
|
+
}
|
|
361758
|
+
let o2 = null, e8 = null, n2 = null;
|
|
361759
|
+
s2 && (o2 = s2.closest(".el-overlay-dialog"), e8 = s2.closest(".el-overlay"), n2 = s2.closest(".el-modal-dialog")), o2 || (o2 = l2.closest(".el-overlay-dialog")), e8 || (e8 = l2.closest(".el-overlay")), !e8 && s2 && (e8 = Array.from(document.querySelectorAll(".el-overlay")).find((k2) => k2.contains(s2)) || null), !o2 && e8 && (o2 = e8.querySelector(".el-overlay-dialog")), !n2 && e8 && (n2 = e8.querySelector(".el-modal-dialog")), x2.value ? (e8 && (e8.style.pointerEvents = "auto", e8.style.backgroundColor = ""), o2 && (o2.style.pointerEvents = "auto"), n2 && (n2.style.pointerEvents = "auto"), s2 && (s2.style.pointerEvents = "")) : (e8 && (e8.style.pointerEvents = "none", e8.style.backgroundColor = "transparent"), o2 && (o2.style.pointerEvents = "none"), n2 && (n2.style.pointerEvents = "none"), s2 && (s2.style.pointerEvents = "auto"));
|
|
361760
|
+
}, K2 = () => {
|
|
361761
|
+
B3(), b10();
|
|
361315
361762
|
};
|
|
361316
|
-
return (
|
|
361763
|
+
return onMounted(() => {
|
|
361764
|
+
L2.modelValue && nextTick(() => {
|
|
361765
|
+
B3(), b10();
|
|
361766
|
+
});
|
|
361767
|
+
}), (l2, s2) => (openBlock(), createBlock(unref(ElDialog), mergeProps({
|
|
361317
361768
|
ref_key: "dialogRef",
|
|
361318
|
-
ref:
|
|
361769
|
+
ref: r2,
|
|
361319
361770
|
class: ["e-plus-resize-dialog", { "is-modal-hidden": !x2.value }]
|
|
361320
361771
|
}, l2.$attrs, {
|
|
361321
361772
|
modal: x2.value,
|
|
361322
|
-
"close-on-click-modal":
|
|
361323
|
-
draggable:
|
|
361324
|
-
fullscreen:
|
|
361325
|
-
"show-close": false
|
|
361773
|
+
"close-on-click-modal": d2.closeOnClickModal,
|
|
361774
|
+
draggable: d2.draggable,
|
|
361775
|
+
fullscreen: m2.value,
|
|
361776
|
+
"show-close": false,
|
|
361777
|
+
onOpened: K2
|
|
361326
361778
|
}), createSlots({
|
|
361327
|
-
header: withCtx(({ close:
|
|
361328
|
-
createElementVNode("div",
|
|
361779
|
+
header: withCtx(({ close: o2, titleId: e8, titleClass: n2 }) => [
|
|
361780
|
+
createElementVNode("div", he, [
|
|
361329
361781
|
createElementVNode("span", {
|
|
361330
|
-
id:
|
|
361782
|
+
id: e8,
|
|
361331
361783
|
class: normalizeClass(n2)
|
|
361332
|
-
}, toDisplayString(l2.$attrs.title), 11,
|
|
361333
|
-
createElementVNode("div",
|
|
361784
|
+
}, toDisplayString(l2.$attrs.title), 11, pe),
|
|
361785
|
+
createElementVNode("div", ge, [
|
|
361334
361786
|
Y2.value ? (openBlock(), createElementBlock("div", {
|
|
361335
361787
|
key: 0,
|
|
361336
361788
|
class: "custom-header-btn",
|
|
361337
|
-
onClick:
|
|
361789
|
+
onClick: H4
|
|
361338
361790
|
}, [
|
|
361339
361791
|
createVNode$1(unref(ElIcon), { size: "18" }, {
|
|
361340
361792
|
default: withCtx(() => [
|
|
361341
|
-
|
|
361793
|
+
m2.value ? (openBlock(), createElementBlock("svg", ye, [...s2[0] || (s2[0] = [
|
|
361342
361794
|
createElementVNode("path", {
|
|
361343
361795
|
d: "M222.392033 1024V801.607967H0v-60.262562h282.654595v282.654595z m521.502942 0V741.345405H1025.622454v60.262562H804.041648v222.392033z m-743.431417-741.693074v-60.262562h222.392033V0.463558h60.262562v281.843368z m743.431417 0V0.463558h60.262562v221.580806H1025.622454v60.262562z",
|
|
361344
361796
|
fill: "currentColor"
|
|
361345
361797
|
}, null, -1)
|
|
361346
|
-
])])) : (openBlock(), createBlock(unref(
|
|
361798
|
+
])])) : (openBlock(), createBlock(unref(me), { key: 0 }))
|
|
361347
361799
|
]),
|
|
361348
361800
|
_: 1
|
|
361349
361801
|
})
|
|
@@ -361351,40 +361803,52 @@ const X = /* @__PURE__ */ defineComponent({
|
|
|
361351
361803
|
l2.$attrs["show-close"] !== false ? (openBlock(), createElementBlock("div", {
|
|
361352
361804
|
key: 1,
|
|
361353
361805
|
class: "custom-header-btn",
|
|
361354
|
-
onClick:
|
|
361806
|
+
onClick: o2
|
|
361355
361807
|
}, [
|
|
361356
361808
|
createVNode$1(unref(ElIcon), { size: "20" }, {
|
|
361357
361809
|
default: withCtx(() => [
|
|
361358
|
-
createVNode$1(unref(
|
|
361810
|
+
createVNode$1(unref(de))
|
|
361359
361811
|
]),
|
|
361360
361812
|
_: 1
|
|
361361
361813
|
})
|
|
361362
|
-
], 8,
|
|
361814
|
+
], 8, ve)) : createCommentVNode("", true)
|
|
361363
361815
|
])
|
|
361364
361816
|
])
|
|
361365
361817
|
]),
|
|
361366
361818
|
_: 2
|
|
361367
361819
|
}, [
|
|
361368
|
-
renderList(unref(j2), (
|
|
361369
|
-
name:
|
|
361820
|
+
renderList(unref(j2), (o2, e8) => ({
|
|
361821
|
+
name: e8,
|
|
361370
361822
|
fn: withCtx((n2) => [
|
|
361371
|
-
renderSlot(l2.$slots,
|
|
361823
|
+
renderSlot(l2.$slots, e8, normalizeProps(guardReactiveProps(n2 || {})))
|
|
361372
361824
|
])
|
|
361373
361825
|
}))
|
|
361374
361826
|
]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
361375
361827
|
}
|
|
361376
361828
|
});
|
|
361377
|
-
X.install = (
|
|
361378
|
-
|
|
361829
|
+
X.install = (d2) => {
|
|
361830
|
+
d2.component("EPlusResizeDialog", X);
|
|
361379
361831
|
};
|
|
361380
361832
|
const _hoisted_1$e = { class: "flex-1 overflow-y-auto p-4" };
|
|
361381
|
-
const _hoisted_2$d = {
|
|
361382
|
-
|
|
361833
|
+
const _hoisted_2$d = {
|
|
361834
|
+
key: 0,
|
|
361835
|
+
class: "pb-2 flex items-center justify-between"
|
|
361836
|
+
};
|
|
361837
|
+
const _hoisted_3$d = { class: "text-xs font-semibold px-1 py-1 border-b mb-2" };
|
|
361383
361838
|
const _hoisted_4$b = { class: "global-style-panel" };
|
|
361384
361839
|
const _hoisted_5$9 = { class: "config-section" };
|
|
361385
361840
|
const _hoisted_6$5 = { class: "config-item" };
|
|
361386
361841
|
const _hoisted_7$5 = { class: "current-style-display" };
|
|
361387
361842
|
const _hoisted_8$5 = { class: "style-preview" };
|
|
361843
|
+
const _hoisted_9$5 = {
|
|
361844
|
+
key: 1,
|
|
361845
|
+
class: "flex-1 overflow-y-auto p-4"
|
|
361846
|
+
};
|
|
361847
|
+
const _hoisted_10$5 = {
|
|
361848
|
+
key: 0,
|
|
361849
|
+
class: "pb-2 flex items-center justify-between"
|
|
361850
|
+
};
|
|
361851
|
+
const _hoisted_11$3 = { class: "text-xs font-semibold px-1 py-1 border-b mb-2" };
|
|
361388
361852
|
const dialogType = "layer-panel";
|
|
361389
361853
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
361390
361854
|
__name: "LayerPanel",
|
|
@@ -361450,6 +361914,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
361450
361914
|
Object.entries(props2).filter(([, v4]) => v4 !== void 0)
|
|
361451
361915
|
);
|
|
361452
361916
|
});
|
|
361917
|
+
const showGlobalStyleTab = computed(
|
|
361918
|
+
() => {
|
|
361919
|
+
var _a2, _b2;
|
|
361920
|
+
return ((_b2 = (_a2 = config == null ? void 0 : config.value) == null ? void 0 : _a2.ui) == null ? void 0 : _b2.showGlobalStyleTab) ?? false;
|
|
361921
|
+
}
|
|
361922
|
+
);
|
|
361923
|
+
const showTreeViewToggle = computed(
|
|
361924
|
+
() => {
|
|
361925
|
+
var _a2, _b2;
|
|
361926
|
+
return ((_b2 = (_a2 = config == null ? void 0 : config.value) == null ? void 0 : _a2.ui) == null ? void 0 : _b2.showTreeViewToggle) ?? false;
|
|
361927
|
+
}
|
|
361928
|
+
);
|
|
361453
361929
|
const handleLayerDoubleClick = (data) => {
|
|
361454
361930
|
layerTreeManager.handleLayerDoubleClick(data);
|
|
361455
361931
|
};
|
|
@@ -362280,7 +362756,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362280
362756
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
362281
362757
|
return openBlock(), createBlock(unref(EPlusDialog), mergeProps({
|
|
362282
362758
|
modelValue: visible.value,
|
|
362283
|
-
"onUpdate:modelValue": _cache[
|
|
362759
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => visible.value = $event)
|
|
362284
362760
|
}, dialogProps.value, {
|
|
362285
362761
|
"modal-class": "pointer-events-none",
|
|
362286
362762
|
"append-to-body": "",
|
|
@@ -362308,182 +362784,283 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
362308
362784
|
syncTreeCheckedState,
|
|
362309
362785
|
getAllTreeNodes,
|
|
362310
362786
|
onNodeExpand
|
|
362311
|
-
}) : (openBlock(),
|
|
362312
|
-
|
|
362313
|
-
|
|
362314
|
-
|
|
362315
|
-
|
|
362316
|
-
|
|
362317
|
-
|
|
362318
|
-
|
|
362319
|
-
|
|
362320
|
-
|
|
362321
|
-
|
|
362322
|
-
|
|
362323
|
-
|
|
362324
|
-
createElementVNode("div",
|
|
362325
|
-
|
|
362326
|
-
|
|
362327
|
-
|
|
362328
|
-
|
|
362329
|
-
|
|
362787
|
+
}) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
362788
|
+
showGlobalStyleTab.value ? (openBlock(), createBlock(_component_el_tabs, {
|
|
362789
|
+
key: 0,
|
|
362790
|
+
modelValue: activeMainTab.value,
|
|
362791
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => activeMainTab.value = $event),
|
|
362792
|
+
class: "main-tabs"
|
|
362793
|
+
}, {
|
|
362794
|
+
default: withCtx(() => [
|
|
362795
|
+
createVNode$1(_component_el_tab_pane, {
|
|
362796
|
+
label: "图层管理",
|
|
362797
|
+
name: "layers"
|
|
362798
|
+
}, {
|
|
362799
|
+
default: withCtx(() => [
|
|
362800
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
362801
|
+
showTreeViewToggle.value ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
362802
|
+
_cache[8] || (_cache[8] = createElementVNode("div", { class: "text-sm" }, "树形视图", -1)),
|
|
362803
|
+
createVNode$1(_component_el_radio_group, {
|
|
362804
|
+
modelValue: activeTreeType.value,
|
|
362805
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTreeType.value = $event),
|
|
362806
|
+
size: "small"
|
|
362807
|
+
}, {
|
|
362808
|
+
default: withCtx(() => [
|
|
362809
|
+
createVNode$1(_component_el_radio_button, { label: "default" }, {
|
|
362810
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
362811
|
+
createTextVNode("按配置分组", -1)
|
|
362812
|
+
])]),
|
|
362813
|
+
_: 1
|
|
362814
|
+
}),
|
|
362815
|
+
createVNode$1(_component_el_radio_button, { label: "classification" }, {
|
|
362816
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
362817
|
+
createTextVNode("按分类分组", -1)
|
|
362818
|
+
])]),
|
|
362819
|
+
_: 1
|
|
362820
|
+
})
|
|
362821
|
+
]),
|
|
362822
|
+
_: 1
|
|
362823
|
+
}, 8, ["modelValue"])
|
|
362824
|
+
])) : createCommentVNode("", true),
|
|
362825
|
+
activeTreeType.value === "default" ? (openBlock(), createBlock(_component_el_tree, {
|
|
362826
|
+
key: 1,
|
|
362827
|
+
ref_key: "treeRef",
|
|
362828
|
+
ref: treeRef,
|
|
362829
|
+
data: treeData.value,
|
|
362830
|
+
props: treeProps,
|
|
362831
|
+
"node-key": "id",
|
|
362832
|
+
"default-expanded-keys": defaultExpandedKeys.value,
|
|
362833
|
+
"default-checked-keys": defaultCheckedKeys.value,
|
|
362834
|
+
"show-checkbox": true,
|
|
362835
|
+
"check-strictly": false,
|
|
362836
|
+
"expand-on-click-node": false,
|
|
362837
|
+
draggable: true,
|
|
362838
|
+
"allow-drop": allowDrop,
|
|
362839
|
+
"allow-drag": allowDrag3,
|
|
362840
|
+
class: "layer-tree",
|
|
362841
|
+
onCheck: onTreeCheck,
|
|
362842
|
+
onNodeDrop: onNodeDrop2,
|
|
362843
|
+
onNodeExpand,
|
|
362844
|
+
onNodeCollapse
|
|
362845
|
+
}, {
|
|
362846
|
+
default: withCtx(({ node, data }) => [
|
|
362847
|
+
createVNode$1(_sfc_main$g, {
|
|
362848
|
+
data,
|
|
362849
|
+
"layer-tree-manager": unref(layerTreeManager),
|
|
362850
|
+
onDoubleClick: handleLayerDoubleClick,
|
|
362851
|
+
onOpacityChange: updateLayerOpacity,
|
|
362852
|
+
onClusterDistanceChange: updateClusterDistance,
|
|
362853
|
+
onSuperMapConfigChange: updateSuperMapConfig,
|
|
362854
|
+
onStyleReset: resetLayerStyle
|
|
362855
|
+
}, null, 8, ["data", "layer-tree-manager"])
|
|
362856
|
+
]),
|
|
362857
|
+
_: 1
|
|
362858
|
+
}, 8, ["data", "default-expanded-keys", "default-checked-keys"])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(classificationGroups.value, (group2) => {
|
|
362859
|
+
return openBlock(), createElementBlock("div", {
|
|
362860
|
+
key: group2.id,
|
|
362861
|
+
class: "mb-3"
|
|
362862
|
+
}, [
|
|
362863
|
+
createElementVNode("div", _hoisted_3$d, toDisplayString(group2.name), 1),
|
|
362864
|
+
createVNode$1(_component_el_tree, {
|
|
362865
|
+
ref_for: true,
|
|
362866
|
+
ref: (el) => classificationTreeRefs.value[group2.id] = el,
|
|
362867
|
+
data: getGroupTreeData(group2),
|
|
362868
|
+
props: treeProps,
|
|
362869
|
+
"node-key": "id",
|
|
362870
|
+
"default-expanded-keys": defaultExpandedKeys.value,
|
|
362871
|
+
"default-checked-keys": defaultCheckedKeys.value,
|
|
362872
|
+
"show-checkbox": true,
|
|
362873
|
+
"check-strictly": false,
|
|
362874
|
+
"expand-on-click-node": false,
|
|
362875
|
+
draggable: true,
|
|
362876
|
+
"allow-drop": allowDrop,
|
|
362877
|
+
"allow-drag": allowDrag3,
|
|
362878
|
+
class: "layer-tree",
|
|
362879
|
+
onCheck: onTreeCheck,
|
|
362880
|
+
onNodeDrop: onNodeDrop2,
|
|
362881
|
+
onNodeExpand,
|
|
362882
|
+
onNodeCollapse
|
|
362883
|
+
}, {
|
|
362884
|
+
default: withCtx(({ node, data }) => [
|
|
362885
|
+
createVNode$1(_sfc_main$g, {
|
|
362886
|
+
data,
|
|
362887
|
+
"layer-tree-manager": unref(layerTreeManager),
|
|
362888
|
+
onDoubleClick: handleLayerDoubleClick,
|
|
362889
|
+
onOpacityChange: updateLayerOpacity,
|
|
362890
|
+
onClusterDistanceChange: updateClusterDistance,
|
|
362891
|
+
onSuperMapConfigChange: updateSuperMapConfig,
|
|
362892
|
+
onStyleReset: resetLayerStyle
|
|
362893
|
+
}, null, 8, ["data", "layer-tree-manager"])
|
|
362894
|
+
]),
|
|
362895
|
+
_: 2
|
|
362896
|
+
}, 1032, ["data", "default-expanded-keys", "default-checked-keys"])
|
|
362897
|
+
]);
|
|
362898
|
+
}), 128))
|
|
362899
|
+
])
|
|
362900
|
+
]),
|
|
362901
|
+
_: 1
|
|
362902
|
+
}),
|
|
362903
|
+
createVNode$1(_component_el_tab_pane, {
|
|
362904
|
+
label: "整体样式调整",
|
|
362905
|
+
name: "style"
|
|
362906
|
+
}, {
|
|
362907
|
+
default: withCtx(() => [
|
|
362908
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
362909
|
+
createVNode$1(_component_el_tabs, {
|
|
362910
|
+
modelValue: activeStyleTab.value,
|
|
362911
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => activeStyleTab.value = $event),
|
|
362912
|
+
class: "style-tabs"
|
|
362330
362913
|
}, {
|
|
362331
362914
|
default: withCtx(() => [
|
|
362332
|
-
createVNode$1(
|
|
362333
|
-
|
|
362334
|
-
|
|
362335
|
-
|
|
362915
|
+
createVNode$1(_component_el_tab_pane, {
|
|
362916
|
+
label: "滤镜效果",
|
|
362917
|
+
name: "filters"
|
|
362918
|
+
}, {
|
|
362919
|
+
default: withCtx(() => [
|
|
362920
|
+
createVNode$1(_sfc_main$i, {
|
|
362921
|
+
filters: unref(globalFilters),
|
|
362922
|
+
onFilterChange: applyFilterEffect,
|
|
362923
|
+
onReset: resetFilters,
|
|
362924
|
+
onPresetFilter: applyPresetFilter
|
|
362925
|
+
}, null, 8, ["filters"])
|
|
362926
|
+
]),
|
|
362336
362927
|
_: 1
|
|
362337
362928
|
}),
|
|
362338
|
-
createVNode$1(
|
|
362339
|
-
|
|
362340
|
-
|
|
362341
|
-
|
|
362929
|
+
createVNode$1(_component_el_tab_pane, {
|
|
362930
|
+
label: "自定义CSS",
|
|
362931
|
+
name: "custom"
|
|
362932
|
+
}, {
|
|
362933
|
+
default: withCtx(() => [
|
|
362934
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
362935
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
362936
|
+
createVNode$1(_component_el_input, {
|
|
362937
|
+
modelValue: unref(globalCustomCss),
|
|
362938
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(globalCustomCss) ? globalCustomCss.value = $event : null),
|
|
362939
|
+
type: "textarea",
|
|
362940
|
+
rows: 6,
|
|
362941
|
+
class: "custom-css-input",
|
|
362942
|
+
placeholder: "输入CSS样式,例如: filter: sepia(50%); transform: rotate(10deg);",
|
|
362943
|
+
onInput: updateGlobalStyle
|
|
362944
|
+
}, null, 8, ["modelValue"])
|
|
362945
|
+
]),
|
|
362946
|
+
createElementVNode("div", _hoisted_7$5, [
|
|
362947
|
+
_cache[9] || (_cache[9] = createElementVNode("h6", null, "当前应用的样式:", -1)),
|
|
362948
|
+
createElementVNode("div", _hoisted_8$5, toDisplayString(currentAppliedStyle.value), 1)
|
|
362949
|
+
])
|
|
362950
|
+
])
|
|
362951
|
+
]),
|
|
362342
362952
|
_: 1
|
|
362343
362953
|
})
|
|
362344
362954
|
]),
|
|
362345
362955
|
_: 1
|
|
362346
362956
|
}, 8, ["modelValue"])
|
|
362347
|
-
])
|
|
362348
|
-
|
|
362349
|
-
|
|
362350
|
-
|
|
362351
|
-
|
|
362352
|
-
|
|
362353
|
-
|
|
362354
|
-
|
|
362355
|
-
|
|
362356
|
-
|
|
362357
|
-
|
|
362358
|
-
|
|
362359
|
-
|
|
362360
|
-
|
|
362361
|
-
|
|
362362
|
-
|
|
362363
|
-
|
|
362364
|
-
|
|
362365
|
-
|
|
362366
|
-
onNodeExpand,
|
|
362367
|
-
onNodeCollapse
|
|
362368
|
-
}, {
|
|
362369
|
-
default: withCtx(({ node, data }) => [
|
|
362370
|
-
createVNode$1(_sfc_main$g, {
|
|
362371
|
-
data,
|
|
362372
|
-
"layer-tree-manager": unref(layerTreeManager),
|
|
362373
|
-
onDoubleClick: handleLayerDoubleClick,
|
|
362374
|
-
onOpacityChange: updateLayerOpacity,
|
|
362375
|
-
onClusterDistanceChange: updateClusterDistance,
|
|
362376
|
-
onSuperMapConfigChange: updateSuperMapConfig,
|
|
362377
|
-
onStyleReset: resetLayerStyle
|
|
362378
|
-
}, null, 8, ["data", "layer-tree-manager"])
|
|
362379
|
-
]),
|
|
362957
|
+
])
|
|
362958
|
+
]),
|
|
362959
|
+
_: 1
|
|
362960
|
+
})
|
|
362961
|
+
]),
|
|
362962
|
+
_: 1
|
|
362963
|
+
}, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_9$5, [
|
|
362964
|
+
showTreeViewToggle.value ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
|
|
362965
|
+
_cache[12] || (_cache[12] = createElementVNode("div", { class: "text-sm" }, "树形视图", -1)),
|
|
362966
|
+
createVNode$1(_component_el_radio_group, {
|
|
362967
|
+
modelValue: activeTreeType.value,
|
|
362968
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => activeTreeType.value = $event),
|
|
362969
|
+
size: "small"
|
|
362970
|
+
}, {
|
|
362971
|
+
default: withCtx(() => [
|
|
362972
|
+
createVNode$1(_component_el_radio_button, { label: "default" }, {
|
|
362973
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
362974
|
+
createTextVNode("按配置分组", -1)
|
|
362975
|
+
])]),
|
|
362380
362976
|
_: 1
|
|
362381
|
-
}
|
|
362382
|
-
|
|
362383
|
-
|
|
362384
|
-
|
|
362385
|
-
|
|
362386
|
-
createElementVNode("div", _hoisted_3$d, toDisplayString(group2.name), 1),
|
|
362387
|
-
createVNode$1(_component_el_tree, {
|
|
362388
|
-
ref_for: true,
|
|
362389
|
-
ref: (el) => classificationTreeRefs.value[group2.id] = el,
|
|
362390
|
-
data: getGroupTreeData(group2),
|
|
362391
|
-
props: treeProps,
|
|
362392
|
-
"node-key": "id",
|
|
362393
|
-
"default-expanded-keys": defaultExpandedKeys.value,
|
|
362394
|
-
"default-checked-keys": defaultCheckedKeys.value,
|
|
362395
|
-
"show-checkbox": true,
|
|
362396
|
-
"check-strictly": false,
|
|
362397
|
-
"expand-on-click-node": false,
|
|
362398
|
-
draggable: true,
|
|
362399
|
-
"allow-drop": allowDrop,
|
|
362400
|
-
"allow-drag": allowDrag3,
|
|
362401
|
-
class: "layer-tree",
|
|
362402
|
-
onCheck: onTreeCheck,
|
|
362403
|
-
onNodeDrop: onNodeDrop2,
|
|
362404
|
-
onNodeExpand,
|
|
362405
|
-
onNodeCollapse
|
|
362406
|
-
}, {
|
|
362407
|
-
default: withCtx(({ node, data }) => [
|
|
362408
|
-
createVNode$1(_sfc_main$g, {
|
|
362409
|
-
data,
|
|
362410
|
-
"layer-tree-manager": unref(layerTreeManager),
|
|
362411
|
-
onDoubleClick: handleLayerDoubleClick,
|
|
362412
|
-
onOpacityChange: updateLayerOpacity,
|
|
362413
|
-
onClusterDistanceChange: updateClusterDistance,
|
|
362414
|
-
onSuperMapConfigChange: updateSuperMapConfig,
|
|
362415
|
-
onStyleReset: resetLayerStyle
|
|
362416
|
-
}, null, 8, ["data", "layer-tree-manager"])
|
|
362417
|
-
]),
|
|
362418
|
-
_: 2
|
|
362419
|
-
}, 1032, ["data", "default-expanded-keys", "default-checked-keys"])
|
|
362420
|
-
]);
|
|
362421
|
-
}), 128))
|
|
362422
|
-
])
|
|
362423
|
-
]),
|
|
362424
|
-
_: 1
|
|
362425
|
-
}),
|
|
362426
|
-
createVNode$1(_component_el_tab_pane, {
|
|
362427
|
-
label: "整体样式调整",
|
|
362428
|
-
name: "style"
|
|
362429
|
-
}, {
|
|
362430
|
-
default: withCtx(() => [
|
|
362431
|
-
createElementVNode("div", _hoisted_4$b, [
|
|
362432
|
-
createVNode$1(_component_el_tabs, {
|
|
362433
|
-
modelValue: activeStyleTab.value,
|
|
362434
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => activeStyleTab.value = $event),
|
|
362435
|
-
class: "style-tabs"
|
|
362436
|
-
}, {
|
|
362437
|
-
default: withCtx(() => [
|
|
362438
|
-
createVNode$1(_component_el_tab_pane, {
|
|
362439
|
-
label: "滤镜效果",
|
|
362440
|
-
name: "filters"
|
|
362441
|
-
}, {
|
|
362442
|
-
default: withCtx(() => [
|
|
362443
|
-
createVNode$1(_sfc_main$i, {
|
|
362444
|
-
filters: unref(globalFilters),
|
|
362445
|
-
onFilterChange: applyFilterEffect,
|
|
362446
|
-
onReset: resetFilters,
|
|
362447
|
-
onPresetFilter: applyPresetFilter
|
|
362448
|
-
}, null, 8, ["filters"])
|
|
362449
|
-
]),
|
|
362450
|
-
_: 1
|
|
362451
|
-
}),
|
|
362452
|
-
createVNode$1(_component_el_tab_pane, {
|
|
362453
|
-
label: "自定义CSS",
|
|
362454
|
-
name: "custom"
|
|
362455
|
-
}, {
|
|
362456
|
-
default: withCtx(() => [
|
|
362457
|
-
createElementVNode("div", _hoisted_5$9, [
|
|
362458
|
-
createElementVNode("div", _hoisted_6$5, [
|
|
362459
|
-
createVNode$1(_component_el_input, {
|
|
362460
|
-
modelValue: unref(globalCustomCss),
|
|
362461
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(globalCustomCss) ? globalCustomCss.value = $event : null),
|
|
362462
|
-
type: "textarea",
|
|
362463
|
-
rows: 6,
|
|
362464
|
-
class: "custom-css-input",
|
|
362465
|
-
placeholder: "输入CSS样式,例如: filter: sepia(50%); transform: rotate(10deg);",
|
|
362466
|
-
onInput: updateGlobalStyle
|
|
362467
|
-
}, null, 8, ["modelValue"])
|
|
362468
|
-
]),
|
|
362469
|
-
createElementVNode("div", _hoisted_7$5, [
|
|
362470
|
-
_cache[8] || (_cache[8] = createElementVNode("h6", null, "当前应用的样式:", -1)),
|
|
362471
|
-
createElementVNode("div", _hoisted_8$5, toDisplayString(currentAppliedStyle.value), 1)
|
|
362472
|
-
])
|
|
362473
|
-
])
|
|
362474
|
-
]),
|
|
362475
|
-
_: 1
|
|
362476
|
-
})
|
|
362477
|
-
]),
|
|
362977
|
+
}),
|
|
362978
|
+
createVNode$1(_component_el_radio_button, { label: "classification" }, {
|
|
362979
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
362980
|
+
createTextVNode("按分类分组", -1)
|
|
362981
|
+
])]),
|
|
362478
362982
|
_: 1
|
|
362479
|
-
}
|
|
362480
|
-
])
|
|
362983
|
+
})
|
|
362984
|
+
]),
|
|
362985
|
+
_: 1
|
|
362986
|
+
}, 8, ["modelValue"])
|
|
362987
|
+
])) : createCommentVNode("", true),
|
|
362988
|
+
activeTreeType.value === "default" ? (openBlock(), createBlock(_component_el_tree, {
|
|
362989
|
+
key: 1,
|
|
362990
|
+
ref_key: "treeRef",
|
|
362991
|
+
ref: treeRef,
|
|
362992
|
+
data: treeData.value,
|
|
362993
|
+
props: treeProps,
|
|
362994
|
+
"node-key": "id",
|
|
362995
|
+
"default-expanded-keys": defaultExpandedKeys.value,
|
|
362996
|
+
"default-checked-keys": defaultCheckedKeys.value,
|
|
362997
|
+
"show-checkbox": true,
|
|
362998
|
+
"check-strictly": false,
|
|
362999
|
+
"expand-on-click-node": false,
|
|
363000
|
+
draggable: true,
|
|
363001
|
+
"allow-drop": allowDrop,
|
|
363002
|
+
"allow-drag": allowDrag3,
|
|
363003
|
+
class: "layer-tree",
|
|
363004
|
+
onCheck: onTreeCheck,
|
|
363005
|
+
onNodeDrop: onNodeDrop2,
|
|
363006
|
+
onNodeExpand,
|
|
363007
|
+
onNodeCollapse
|
|
363008
|
+
}, {
|
|
363009
|
+
default: withCtx(({ node, data }) => [
|
|
363010
|
+
createVNode$1(_sfc_main$g, {
|
|
363011
|
+
data,
|
|
363012
|
+
"layer-tree-manager": unref(layerTreeManager),
|
|
363013
|
+
onDoubleClick: handleLayerDoubleClick,
|
|
363014
|
+
onOpacityChange: updateLayerOpacity,
|
|
363015
|
+
onClusterDistanceChange: updateClusterDistance,
|
|
363016
|
+
onSuperMapConfigChange: updateSuperMapConfig,
|
|
363017
|
+
onStyleReset: resetLayerStyle
|
|
363018
|
+
}, null, 8, ["data", "layer-tree-manager"])
|
|
362481
363019
|
]),
|
|
362482
363020
|
_: 1
|
|
362483
|
-
})
|
|
362484
|
-
|
|
362485
|
-
|
|
362486
|
-
|
|
363021
|
+
}, 8, ["data", "default-expanded-keys", "default-checked-keys"])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(classificationGroups.value, (group2) => {
|
|
363022
|
+
return openBlock(), createElementBlock("div", {
|
|
363023
|
+
key: group2.id,
|
|
363024
|
+
class: "mb-3"
|
|
363025
|
+
}, [
|
|
363026
|
+
createElementVNode("div", _hoisted_11$3, toDisplayString(group2.name), 1),
|
|
363027
|
+
createVNode$1(_component_el_tree, {
|
|
363028
|
+
ref_for: true,
|
|
363029
|
+
ref: (el) => classificationTreeRefs.value[group2.id] = el,
|
|
363030
|
+
data: getGroupTreeData(group2),
|
|
363031
|
+
props: treeProps,
|
|
363032
|
+
"node-key": "id",
|
|
363033
|
+
"default-expanded-keys": defaultExpandedKeys.value,
|
|
363034
|
+
"default-checked-keys": defaultCheckedKeys.value,
|
|
363035
|
+
"show-checkbox": true,
|
|
363036
|
+
"check-strictly": false,
|
|
363037
|
+
"expand-on-click-node": false,
|
|
363038
|
+
draggable: true,
|
|
363039
|
+
"allow-drop": allowDrop,
|
|
363040
|
+
"allow-drag": allowDrag3,
|
|
363041
|
+
class: "layer-tree",
|
|
363042
|
+
onCheck: onTreeCheck,
|
|
363043
|
+
onNodeDrop: onNodeDrop2,
|
|
363044
|
+
onNodeExpand,
|
|
363045
|
+
onNodeCollapse
|
|
363046
|
+
}, {
|
|
363047
|
+
default: withCtx(({ node, data }) => [
|
|
363048
|
+
createVNode$1(_sfc_main$g, {
|
|
363049
|
+
data,
|
|
363050
|
+
"layer-tree-manager": unref(layerTreeManager),
|
|
363051
|
+
onDoubleClick: handleLayerDoubleClick,
|
|
363052
|
+
onOpacityChange: updateLayerOpacity,
|
|
363053
|
+
onClusterDistanceChange: updateClusterDistance,
|
|
363054
|
+
onSuperMapConfigChange: updateSuperMapConfig,
|
|
363055
|
+
onStyleReset: resetLayerStyle
|
|
363056
|
+
}, null, 8, ["data", "layer-tree-manager"])
|
|
363057
|
+
]),
|
|
363058
|
+
_: 2
|
|
363059
|
+
}, 1032, ["data", "default-expanded-keys", "default-checked-keys"])
|
|
363060
|
+
]);
|
|
363061
|
+
}), 128))
|
|
363062
|
+
]))
|
|
363063
|
+
], 64))
|
|
362487
363064
|
]),
|
|
362488
363065
|
_: 2
|
|
362489
363066
|
}, [
|
|
@@ -362681,8 +363258,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
362681
363258
|
});
|
|
362682
363259
|
const OlBaseLayerSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-492e5ed0"]]);
|
|
362683
363260
|
const _hoisted_1$c = { class: "print-content h-full flex flex-col overflow-hidden" };
|
|
362684
|
-
const _hoisted_2$b = { class: "h-full flex flex-col
|
|
362685
|
-
const _hoisted_3$b = { class: "px-5 py-4 border-b
|
|
363261
|
+
const _hoisted_2$b = { class: "h-full flex flex-col rounded border shadow-sm overflow-hidden" };
|
|
363262
|
+
const _hoisted_3$b = { class: "px-5 py-4 border-b flex items-center justify-between shrink-0" };
|
|
362686
363263
|
const _hoisted_4$9 = { class: "flex-1 overflow-y-auto p-4 custom-scrollbar" };
|
|
362687
363264
|
const _hoisted_5$7 = { class: "mb-5" };
|
|
362688
363265
|
const _hoisted_6$4 = { class: "mb-3" };
|
|
@@ -362704,55 +363281,55 @@ const _hoisted_18 = { class: "flex gap-2" };
|
|
|
362704
363281
|
const _hoisted_19 = { class: "mb-5" };
|
|
362705
363282
|
const _hoisted_20 = { class: "mb-3" };
|
|
362706
363283
|
const _hoisted_21 = { key: 0 };
|
|
362707
|
-
const _hoisted_22 = { class: "block text-xs
|
|
362708
|
-
const _hoisted_23 = { class: "flex gap-2 p-4 border-t
|
|
363284
|
+
const _hoisted_22 = { class: "block text-xs mt-2" };
|
|
363285
|
+
const _hoisted_23 = { class: "flex gap-2 p-4 border-t shrink-0" };
|
|
362709
363286
|
const _hoisted_24 = { class: "h-full flex flex-col" };
|
|
362710
|
-
const _hoisted_25 = { class: "flex justify-between items-center p-4 border-b
|
|
362711
|
-
const _hoisted_26 = { class: "text-sm
|
|
363287
|
+
const _hoisted_25 = { class: "flex justify-between items-center p-4 border-b" };
|
|
363288
|
+
const _hoisted_26 = { class: "text-sm" };
|
|
362712
363289
|
const _hoisted_27 = {
|
|
362713
363290
|
key: 0,
|
|
362714
|
-
class: "flex-1 flex flex-col items-center justify-center
|
|
363291
|
+
class: "flex-1 flex flex-col items-center justify-center"
|
|
362715
363292
|
};
|
|
362716
363293
|
const _hoisted_28 = {
|
|
362717
363294
|
key: 1,
|
|
362718
|
-
class: "w-full h-full min-h-0 flex flex-col
|
|
363295
|
+
class: "w-full h-full min-h-0 flex flex-col border rounded overflow-hidden"
|
|
362719
363296
|
};
|
|
362720
363297
|
const _hoisted_29 = {
|
|
362721
363298
|
key: 0,
|
|
362722
|
-
class: "shrink-0
|
|
363299
|
+
class: "shrink-0 border-b px-4 py-3"
|
|
362723
363300
|
};
|
|
362724
363301
|
const _hoisted_30 = {
|
|
362725
363302
|
key: 0,
|
|
362726
|
-
class: "text-xl font-bold text-center
|
|
363303
|
+
class: "text-xl font-bold text-center"
|
|
362727
363304
|
};
|
|
362728
363305
|
const _hoisted_31 = {
|
|
362729
363306
|
key: 1,
|
|
362730
|
-
class: "text-sm text-center
|
|
363307
|
+
class: "text-sm text-center mt-1"
|
|
362731
363308
|
};
|
|
362732
363309
|
const _hoisted_32 = { class: "flex-1 min-h-0 px-4 pb-3" };
|
|
362733
363310
|
const _hoisted_33 = { class: "h-full" };
|
|
362734
|
-
const _hoisted_34 = { class: "relative w-full h-full
|
|
363311
|
+
const _hoisted_34 = { class: "relative w-full h-full rounded-md border overflow-hidden" };
|
|
362735
363312
|
const _hoisted_35 = ["id"];
|
|
362736
363313
|
const _hoisted_36 = ["src"];
|
|
362737
363314
|
const _hoisted_37 = {
|
|
362738
363315
|
key: 3,
|
|
362739
|
-
class: "absolute
|
|
363316
|
+
class: "absolute shadow-md border rounded px-2 py-1",
|
|
362740
363317
|
style: { "bottom": "20px", "left": "20px", "z-index": "50" }
|
|
362741
363318
|
};
|
|
362742
363319
|
const _hoisted_38 = { class: "flex flex-col items-center" };
|
|
362743
363320
|
const _hoisted_39 = {
|
|
362744
|
-
class: "flex justify-between w-full
|
|
363321
|
+
class: "flex justify-between w-full font-bold",
|
|
362745
363322
|
style: { "font-size": "10px", "line-height": "1.2" }
|
|
362746
363323
|
};
|
|
362747
363324
|
const _hoisted_40 = {
|
|
362748
363325
|
key: 4,
|
|
362749
|
-
class: "absolute
|
|
363326
|
+
class: "absolute shadow-md border rounded z-50 overflow-hidden flex flex-col",
|
|
362750
363327
|
style: { "bottom": "20px", "right": "20px", "max-width": "200px", "max-height": "250px" }
|
|
362751
363328
|
};
|
|
362752
363329
|
const _hoisted_41 = { class: "p-3 overflow-y-auto custom-scrollbar" };
|
|
362753
363330
|
const _hoisted_42 = {
|
|
362754
363331
|
key: 0,
|
|
362755
|
-
class: "text-xs text-
|
|
363332
|
+
class: "text-xs text-center py-2"
|
|
362756
363333
|
};
|
|
362757
363334
|
const _hoisted_43 = {
|
|
362758
363335
|
key: 1,
|
|
@@ -362760,40 +363337,40 @@ const _hoisted_43 = {
|
|
|
362760
363337
|
};
|
|
362761
363338
|
const _hoisted_44 = {
|
|
362762
363339
|
key: 0,
|
|
362763
|
-
class: "font-bold
|
|
363340
|
+
class: "font-bold mb-1.5",
|
|
362764
363341
|
style: { "font-size": "11px" }
|
|
362765
363342
|
};
|
|
362766
363343
|
const _hoisted_45 = {
|
|
362767
363344
|
key: 1,
|
|
362768
363345
|
class: "flex flex-col gap-1.5"
|
|
362769
363346
|
};
|
|
362770
|
-
const _hoisted_46 = { class: "
|
|
363347
|
+
const _hoisted_46 = { class: "truncate" };
|
|
362771
363348
|
const _hoisted_47 = {
|
|
362772
363349
|
key: 2,
|
|
362773
363350
|
class: "flex flex-col gap-1.5"
|
|
362774
363351
|
};
|
|
362775
|
-
const _hoisted_48 = { class: "
|
|
363352
|
+
const _hoisted_48 = { class: "truncate" };
|
|
362776
363353
|
const _hoisted_49 = {
|
|
362777
363354
|
key: 3,
|
|
362778
363355
|
class: "flex flex-col gap-1.5"
|
|
362779
363356
|
};
|
|
362780
|
-
const _hoisted_50 = { class: "
|
|
363357
|
+
const _hoisted_50 = { class: "truncate" };
|
|
362781
363358
|
const _hoisted_51 = {
|
|
362782
363359
|
key: 4,
|
|
362783
363360
|
class: "flex flex-col gap-1"
|
|
362784
363361
|
};
|
|
362785
363362
|
const _hoisted_52 = {
|
|
362786
|
-
class: "flex justify-between
|
|
363363
|
+
class: "flex justify-between",
|
|
362787
363364
|
style: { "font-size": "9px" }
|
|
362788
363365
|
};
|
|
362789
363366
|
const _hoisted_53 = {
|
|
362790
363367
|
key: 0,
|
|
362791
|
-
class: "text-
|
|
363368
|
+
class: "text-center",
|
|
362792
363369
|
style: { "font-size": "9px" }
|
|
362793
363370
|
};
|
|
362794
363371
|
const _hoisted_54 = ["innerHTML"];
|
|
362795
363372
|
const _hoisted_55 = {
|
|
362796
|
-
class: "absolute bottom-0 left-0 right-0 flex justify-between items-center
|
|
363373
|
+
class: "absolute bottom-0 left-0 right-0 flex justify-between items-center px-2 py-1 backdrop-blur-sm z-10",
|
|
362797
363374
|
style: { "font-size": "10px" }
|
|
362798
363375
|
};
|
|
362799
363376
|
const _hoisted_56 = { key: 0 };
|
|
@@ -363365,7 +363942,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363365
363942
|
default: withCtx(() => [
|
|
363366
363943
|
createElementVNode("div", _hoisted_2$b, [
|
|
363367
363944
|
createElementVNode("div", _hoisted_3$b, [
|
|
363368
|
-
_cache[18] || (_cache[18] = createElementVNode("span", { class: "font-medium
|
|
363945
|
+
_cache[18] || (_cache[18] = createElementVNode("span", { class: "font-medium" }, "打印设置", -1)),
|
|
363369
363946
|
createVNode$1(_component_el_button, {
|
|
363370
363947
|
link: "",
|
|
363371
363948
|
onClick: resetSettings
|
|
@@ -363384,7 +363961,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363384
363961
|
]),
|
|
363385
363962
|
createElementVNode("div", _hoisted_4$9, [
|
|
363386
363963
|
createElementVNode("div", _hoisted_5$7, [
|
|
363387
|
-
_cache[21] || (_cache[21] = createElementVNode("label", { class: "block text-sm font-medium
|
|
363964
|
+
_cache[21] || (_cache[21] = createElementVNode("label", { class: "block text-sm font-medium mb-2" }, "纸张设置", -1)),
|
|
363388
363965
|
createElementVNode("div", _hoisted_6$4, [
|
|
363389
363966
|
createVNode$1(_component_el_select, {
|
|
363390
363967
|
modelValue: printSettings.paperSize,
|
|
@@ -363471,7 +364048,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363471
364048
|
])
|
|
363472
364049
|
]),
|
|
363473
364050
|
createElementVNode("div", _hoisted_9$4, [
|
|
363474
|
-
_cache[23] || (_cache[23] = createElementVNode("label", { class: "block text-sm font-medium
|
|
364051
|
+
_cache[23] || (_cache[23] = createElementVNode("label", { class: "block text-sm font-medium mb-2" }, "地图设置", -1)),
|
|
363475
364052
|
createElementVNode("div", _hoisted_10$4, [
|
|
363476
364053
|
createVNode$1(_component_el_select, {
|
|
363477
364054
|
modelValue: printSettings.dpi,
|
|
@@ -363560,7 +364137,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363560
364137
|
])) : createCommentVNode("", true)
|
|
363561
364138
|
]),
|
|
363562
364139
|
createElementVNode("div", _hoisted_13$1, [
|
|
363563
|
-
_cache[32] || (_cache[32] = createElementVNode("label", { class: "block text-sm font-medium
|
|
364140
|
+
_cache[32] || (_cache[32] = createElementVNode("label", { class: "block text-sm font-medium mb-2" }, "内容设置", -1)),
|
|
363564
364141
|
createElementVNode("div", _hoisted_14$1, [
|
|
363565
364142
|
createVNode$1(_component_el_input, {
|
|
363566
364143
|
modelValue: printSettings.title,
|
|
@@ -363578,7 +364155,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363578
364155
|
}, null, 8, ["modelValue"])
|
|
363579
364156
|
]),
|
|
363580
364157
|
createElementVNode("div", _hoisted_16, [
|
|
363581
|
-
_cache[30] || (_cache[30] = createElementVNode("label", { class: "block text-xs
|
|
364158
|
+
_cache[30] || (_cache[30] = createElementVNode("label", { class: "block text-xs mb-2" }, "包含元素", -1)),
|
|
363582
364159
|
createVNode$1(_component_el_checkbox_group, {
|
|
363583
364160
|
modelValue: printSettings.includeElements,
|
|
363584
364161
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => printSettings.includeElements = $event),
|
|
@@ -363626,7 +364203,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363626
364203
|
}, 8, ["modelValue"])
|
|
363627
364204
|
]),
|
|
363628
364205
|
createElementVNode("div", null, [
|
|
363629
|
-
_cache[31] || (_cache[31] = createElementVNode("label", { class: "block text-xs
|
|
364206
|
+
_cache[31] || (_cache[31] = createElementVNode("label", { class: "block text-xs mb-2" }, "边距(mm)", -1)),
|
|
363630
364207
|
createElementVNode("div", _hoisted_17, [
|
|
363631
364208
|
createVNode$1(_component_el_input, {
|
|
363632
364209
|
modelValue: printSettings.marginTop,
|
|
@@ -363662,7 +364239,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363662
364239
|
])
|
|
363663
364240
|
]),
|
|
363664
364241
|
createElementVNode("div", _hoisted_19, [
|
|
363665
|
-
_cache[33] || (_cache[33] = createElementVNode("label", { class: "block text-sm font-medium
|
|
364242
|
+
_cache[33] || (_cache[33] = createElementVNode("label", { class: "block text-sm font-medium mb-2" }, "输出格式", -1)),
|
|
363666
364243
|
createElementVNode("div", _hoisted_20, [
|
|
363667
364244
|
createVNode$1(_component_el_select, {
|
|
363668
364245
|
modelValue: printSettings.format,
|
|
@@ -363738,7 +364315,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363738
364315
|
"body-class": "!p-0 flex-1 overflow-hidden flex flex-col"
|
|
363739
364316
|
}, {
|
|
363740
364317
|
header: withCtx(() => [..._cache[35] || (_cache[35] = [
|
|
363741
|
-
createElementVNode("span", { class: "font-medium
|
|
364318
|
+
createElementVNode("span", { class: "font-medium" }, "打印预览", -1)
|
|
363742
364319
|
])]),
|
|
363743
364320
|
default: withCtx(() => [
|
|
363744
364321
|
createElementVNode("div", _hoisted_25, [
|
|
@@ -363780,7 +364357,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363780
364357
|
createElementVNode("div", {
|
|
363781
364358
|
ref_key: "previewContainer",
|
|
363782
364359
|
ref: previewContainer,
|
|
363783
|
-
class: "flex-1 overflow-auto
|
|
364360
|
+
class: "flex-1 overflow-auto flex justify-center items-start p-5 custom-scrollbar"
|
|
363784
364361
|
}, [
|
|
363785
364362
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
363786
364363
|
ref_key: "printWrapperRef",
|
|
@@ -363791,7 +364368,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363791
364368
|
createElementVNode("div", {
|
|
363792
364369
|
ref_key: "previewPage",
|
|
363793
364370
|
ref: previewPage,
|
|
363794
|
-
class: "
|
|
364371
|
+
class: "shadow-lg relative origin-top-left",
|
|
363795
364372
|
style: normalizeStyle$1(getPaperStyle())
|
|
363796
364373
|
}, [
|
|
363797
364374
|
createElementVNode("div", {
|
|
@@ -363821,7 +364398,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363821
364398
|
id: previewMapId.value,
|
|
363822
364399
|
ref_key: "previewMapContainer",
|
|
363823
364400
|
ref: previewMapContainer,
|
|
363824
|
-
class: "w-full h-full
|
|
364401
|
+
class: "w-full h-full"
|
|
363825
364402
|
}, null, 8, _hoisted_35), [
|
|
363826
364403
|
[vShow, !isSnapshotMode.value]
|
|
363827
364404
|
]),
|
|
@@ -363842,7 +364419,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363842
364419
|
"north"
|
|
363843
364420
|
) ? (openBlock(), createElementBlock("div", {
|
|
363844
364421
|
key: 2,
|
|
363845
|
-
class: "absolute flex flex-col items-center justify-center
|
|
364422
|
+
class: "absolute flex flex-col items-center justify-center shadow-md border rounded",
|
|
363846
364423
|
style: normalizeStyle$1([{ "top": "20px", "right": "20px", "z-index": "50", "padding": "8px", "width": "40px", "height": "50px" }, getNorthArrowStyle()])
|
|
363847
364424
|
}, [
|
|
363848
364425
|
_cache[39] || (_cache[39] = createElementVNode("div", { style: { "font-size": "20px", "line-height": "1", "color": "#ef4444", "font-weight": "bold" } }, " N ", -1)),
|
|
@@ -363874,8 +364451,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363874
364451
|
printSettings.includeElements.includes(
|
|
363875
364452
|
"legend"
|
|
363876
364453
|
) ? (openBlock(), createElementBlock("div", _hoisted_40, [
|
|
363877
|
-
_cache[42] || (_cache[42] = createElementVNode("div", { class: "px-3 py-2 border-b
|
|
363878
|
-
createElementVNode("span", { class: "text-xs font-bold
|
|
364454
|
+
_cache[42] || (_cache[42] = createElementVNode("div", { class: "px-3 py-2 border-b flex justify-between items-center shrink-0" }, [
|
|
364455
|
+
createElementVNode("span", { class: "text-xs font-bold" }, "图例")
|
|
363879
364456
|
], -1)),
|
|
363880
364457
|
createElementVNode("div", _hoisted_41, [
|
|
363881
364458
|
visibleLegends.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_42, " 暂无图例数据 ")) : (openBlock(), createElementBlock("div", _hoisted_43, [
|
|
@@ -363931,7 +364508,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363931
364508
|
}), 128))
|
|
363932
364509
|
])) : legend.type === "gradient" ? (openBlock(), createElementBlock("div", _hoisted_51, [
|
|
363933
364510
|
createElementVNode("div", {
|
|
363934
|
-
class: "w-full h-3 rounded border
|
|
364511
|
+
class: "w-full h-3 rounded border",
|
|
363935
364512
|
style: normalizeStyle$1(getGradientStyle(legend))
|
|
363936
364513
|
}, null, 4),
|
|
363937
364514
|
createElementVNode("div", _hoisted_52, [
|
|
@@ -363942,7 +364519,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
363942
364519
|
])) : legend.type === "custom" ? (openBlock(), createElementBlock("div", {
|
|
363943
364520
|
key: 5,
|
|
363944
364521
|
style: { "font-size": "10px" },
|
|
363945
|
-
class: "text-gray-600",
|
|
363946
364522
|
innerHTML: legend.content
|
|
363947
364523
|
}, null, 8, _hoisted_54)) : createCommentVNode("", true)
|
|
363948
364524
|
]);
|
|
@@ -364001,11 +364577,11 @@ const _hoisted_6$3 = { class: "property-key" };
|
|
|
364001
364577
|
const _hoisted_7$3 = { class: "property-value" };
|
|
364002
364578
|
const _hoisted_8$3 = ["innerHTML"];
|
|
364003
364579
|
const _hoisted_9$3 = { key: 3 };
|
|
364004
|
-
const _hoisted_10$3 = { class: "mb-3 pb-2 border-b
|
|
364005
|
-
const _hoisted_11$1 = { class: "m-0 mb-2 text-sm font-semibold
|
|
364580
|
+
const _hoisted_10$3 = { class: "mb-3 pb-2 border-b text-xs" };
|
|
364581
|
+
const _hoisted_11$1 = { class: "m-0 mb-2 text-sm font-semibold border-b pb-1" };
|
|
364006
364582
|
const _hoisted_12 = ["onClick"];
|
|
364007
|
-
const _hoisted_13 = { class: "font-medium
|
|
364008
|
-
const _hoisted_14 = { class: "
|
|
364583
|
+
const _hoisted_13 = { class: "font-medium min-w-20 mr-2" };
|
|
364584
|
+
const _hoisted_14 = { class: "break-all flex-1" };
|
|
364009
364585
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
364010
364586
|
__name: "OlMapTooltip",
|
|
364011
364587
|
props: {
|
|
@@ -364159,7 +364735,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
364159
364735
|
ref_key: "tooltipRef",
|
|
364160
364736
|
ref: tooltipRef,
|
|
364161
364737
|
class: normalizeClass([
|
|
364162
|
-
"
|
|
364738
|
+
"border rounded-md shadow-lg p-3 text-sm leading-relaxed max-w-75 max-h-100 overflow-y-auto backdrop-blur-10px relative",
|
|
364163
364739
|
_ctx.config.className
|
|
364164
364740
|
]),
|
|
364165
364741
|
style: normalizeStyle$1(tooltipStyle.value)
|
|
@@ -364173,7 +364749,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
364173
364749
|
onClick: hide
|
|
364174
364750
|
}, {
|
|
364175
364751
|
icon: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
364176
|
-
createElementVNode("span",
|
|
364752
|
+
createElementVNode("span", null, "×", -1)
|
|
364177
364753
|
])]),
|
|
364178
364754
|
_: 1
|
|
364179
364755
|
})) : createCommentVNode("", true),
|
|
@@ -364230,7 +364806,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
364230
364806
|
(openBlock(true), createElementBlock(Fragment, null, renderList(layerData.features, (feature, fIndex) => {
|
|
364231
364807
|
return openBlock(), createElementBlock("div", {
|
|
364232
364808
|
key: fIndex,
|
|
364233
|
-
class: "mb-3 p-2
|
|
364809
|
+
class: "mb-3 p-2 rounded cursor-pointer transition-colors last-mb-0",
|
|
364234
364810
|
onClick: ($event) => handleFeatureClick(feature, layerData)
|
|
364235
364811
|
}, [
|
|
364236
364812
|
(openBlock(true), createElementBlock(Fragment, null, renderList(feature.properties || feature, (value, key) => {
|
|
@@ -364401,7 +364977,9 @@ class ConfigLoader {
|
|
|
364401
364977
|
showClose: true,
|
|
364402
364978
|
cacheId: "layer-dialog",
|
|
364403
364979
|
className: "layer-dialog",
|
|
364404
|
-
collapsible: true
|
|
364980
|
+
collapsible: true,
|
|
364981
|
+
showGlobalStyleTab: false,
|
|
364982
|
+
showTreeViewToggle: false
|
|
364405
364983
|
}
|
|
364406
364984
|
},
|
|
364407
364985
|
baseLayers: [
|
|
@@ -364769,7 +365347,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
364769
365347
|
toBody: lpControls.toBody ?? true,
|
|
364770
365348
|
unit: lpControls.unit ?? "px",
|
|
364771
365349
|
remBase: lpControls.remBase ?? 16,
|
|
364772
|
-
beforeClose: lpControls.beforeClose ?? void 0
|
|
365350
|
+
beforeClose: lpControls.beforeClose ?? void 0,
|
|
365351
|
+
showGlobalStyleTab: lpControls.showGlobalStyleTab ?? false,
|
|
365352
|
+
showTreeViewToggle: lpControls.showTreeViewToggle ?? false
|
|
364773
365353
|
};
|
|
364774
365354
|
if (loadedConfig.value) {
|
|
364775
365355
|
const hasLayers = loadedConfig.value.baseLayers && loadedConfig.value.baseLayers.length > 0 || loadedConfig.value.overlayLayers && loadedConfig.value.overlayLayers.length > 0 || loadedConfig.value.vectorLayers && loadedConfig.value.vectorLayers.length > 0;
|
|
@@ -365886,6 +366466,22 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
365886
366466
|
}
|
|
365887
366467
|
return false;
|
|
365888
366468
|
},
|
|
366469
|
+
refreshLayer: (layerId, options) => {
|
|
366470
|
+
var _a2;
|
|
366471
|
+
const layerManager = (_a2 = mapContainerRef.value) == null ? void 0 : _a2.getLayerManager();
|
|
366472
|
+
if (layerManager) {
|
|
366473
|
+
return layerManager.refreshLayer(layerId, options);
|
|
366474
|
+
}
|
|
366475
|
+
return false;
|
|
366476
|
+
},
|
|
366477
|
+
updateLayerRequestParams: (layerId, params) => {
|
|
366478
|
+
var _a2;
|
|
366479
|
+
const layerManager = (_a2 = mapContainerRef.value) == null ? void 0 : _a2.getLayerManager();
|
|
366480
|
+
if (layerManager) {
|
|
366481
|
+
return layerManager.updateLayerRequestParams(layerId, params);
|
|
366482
|
+
}
|
|
366483
|
+
return false;
|
|
366484
|
+
},
|
|
365889
366485
|
getAllLayerConfigs: () => {
|
|
365890
366486
|
var _a2;
|
|
365891
366487
|
const layerManager = (_a2 = mapContainerRef.value) == null ? void 0 : _a2.getLayerManager();
|
|
@@ -366188,7 +366784,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
366188
366784
|
};
|
|
366189
366785
|
}
|
|
366190
366786
|
});
|
|
366191
|
-
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
366787
|
+
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-888f37cb"]]);
|
|
366192
366788
|
const Property = {
|
|
366193
366789
|
ACCURACY: "accuracy",
|
|
366194
366790
|
ACCURACY_GEOMETRY: "accuracyGeometry",
|
|
@@ -368200,20 +368796,20 @@ class DialogCacheManager {
|
|
|
368200
368796
|
}
|
|
368201
368797
|
const dialogCacheManager = new DialogCacheManager();
|
|
368202
368798
|
const dialogCacheManager$1 = dialogCacheManager;
|
|
368203
|
-
const _hoisted_1$1 = { class: "text-base font-semibold
|
|
368799
|
+
const _hoisted_1$1 = { class: "text-base font-semibold flex-1 overflow-hidden text-ellipsis whitespace-nowrap" };
|
|
368204
368800
|
const _hoisted_2 = { class: "flex items-center gap-2" };
|
|
368205
368801
|
const _hoisted_3 = { class: "flex-1 overflow-auto min-h-0 h-0" };
|
|
368206
368802
|
const _hoisted_4 = {
|
|
368207
368803
|
key: 0,
|
|
368208
|
-
class: "px-5 py-4 border-t
|
|
368804
|
+
class: "px-5 py-4 border-t flex justify-end gap-3"
|
|
368209
368805
|
};
|
|
368210
368806
|
const _hoisted_5 = ["onMousedown"];
|
|
368211
|
-
const _hoisted_6 = { class: "text-base font-semibold
|
|
368807
|
+
const _hoisted_6 = { class: "text-base font-semibold flex-1 overflow-hidden text-ellipsis whitespace-nowrap" };
|
|
368212
368808
|
const _hoisted_7 = { class: "flex items-center gap-2" };
|
|
368213
368809
|
const _hoisted_8 = { class: "flex-1 overflow-auto min-h-0 h-0" };
|
|
368214
368810
|
const _hoisted_9 = {
|
|
368215
368811
|
key: 0,
|
|
368216
|
-
class: "px-5 py-4 border-t
|
|
368812
|
+
class: "px-5 py-4 border-t flex justify-end gap-3"
|
|
368217
368813
|
};
|
|
368218
368814
|
const _hoisted_10 = {
|
|
368219
368815
|
key: 1,
|
|
@@ -368707,13 +369303,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368707
369303
|
key: 0,
|
|
368708
369304
|
class: normalizeClass(["fixed top-0 left-0 w-full h-full flex overflow-hidden", {
|
|
368709
369305
|
"pt-0 items-stretch": isFullscreen.value,
|
|
368710
|
-
"
|
|
369306
|
+
"pointer-events-none": !_ctx.showModal,
|
|
368711
369307
|
"items-start justify-center pt-15vh": props.position === "center",
|
|
368712
369308
|
"items-stretch justify-end": props.position === "right",
|
|
368713
369309
|
"items-stretch justify-start": props.position === "left",
|
|
368714
369310
|
"items-start justify-center": props.position === "top",
|
|
368715
|
-
"items-end justify-center": props.position === "bottom"
|
|
368716
|
-
"bg-black/50": props.showModal
|
|
369311
|
+
"items-end justify-center": props.position === "bottom"
|
|
368717
369312
|
}]),
|
|
368718
369313
|
style: normalizeStyle$1({ zIndex: props.zIndex }),
|
|
368719
369314
|
onClick: handleOverlayClick
|
|
@@ -368737,7 +369332,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368737
369332
|
createElementVNode("div", {
|
|
368738
369333
|
ref_key: "headerRef",
|
|
368739
369334
|
ref: headerRef,
|
|
368740
|
-
class: normalizeClass(["flex items-center justify-between px-5 py-4 border-b
|
|
369335
|
+
class: normalizeClass(["flex items-center justify-between px-5 py-4 border-b", { "cursor-move": _ctx.draggable && !isFullscreen.value }]),
|
|
368741
369336
|
onMousedown: startDrag
|
|
368742
369337
|
}, [
|
|
368743
369338
|
createElementVNode("div", _hoisted_1$1, [
|
|
@@ -368748,7 +369343,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368748
369343
|
createElementVNode("div", _hoisted_2, [
|
|
368749
369344
|
_ctx.showFullscreen ? (openBlock(), createBlock(unref(ElButton), {
|
|
368750
369345
|
key: 0,
|
|
368751
|
-
class: "w-6 h-6 border-none
|
|
369346
|
+
class: "w-6 h-6 border-none cursor-pointer flex items-center justify-center rounded transition-all duration-200",
|
|
368752
369347
|
title: isFullscreen.value ? "退出全屏" : "全屏",
|
|
368753
369348
|
onClick: toggleFullscreen
|
|
368754
369349
|
}, {
|
|
@@ -368761,7 +369356,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368761
369356
|
}, 8, ["title"])) : createCommentVNode("", true),
|
|
368762
369357
|
_ctx.showClose ? (openBlock(), createBlock(unref(ElButton), {
|
|
368763
369358
|
key: 1,
|
|
368764
|
-
class: "w-6 h-6 border-none
|
|
369359
|
+
class: "w-6 h-6 border-none cursor-pointer flex items-center justify-center rounded transition-all duration-200",
|
|
368765
369360
|
title: "关闭",
|
|
368766
369361
|
onClick: handleClose
|
|
368767
369362
|
}, {
|
|
@@ -368789,9 +369384,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368789
369384
|
], 6)) : createCommentVNode("", true)
|
|
368790
369385
|
])) : _ctx.modelValue ? (openBlock(), createElementBlock("div", {
|
|
368791
369386
|
key: 1,
|
|
368792
|
-
class: normalizeClass(["fixed top-0 left-0 w-full h-full
|
|
369387
|
+
class: normalizeClass(["fixed top-0 left-0 w-full h-full flex overflow-hidden", {
|
|
368793
369388
|
"pt-0 items-stretch": isFullscreen.value,
|
|
368794
|
-
"
|
|
369389
|
+
"pointer-events-none": !_ctx.showModal,
|
|
368795
369390
|
"items-start justify-center pt-15vh": props.position === "center",
|
|
368796
369391
|
"items-stretch justify-end": props.position === "right",
|
|
368797
369392
|
"items-stretch justify-start": props.position === "left",
|
|
@@ -368820,7 +369415,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368820
369415
|
createElementVNode("div", {
|
|
368821
369416
|
ref_key: "headerRef",
|
|
368822
369417
|
ref: headerRef,
|
|
368823
|
-
class: normalizeClass(["header flex items-center justify-between px-5 py-4 border-b
|
|
369418
|
+
class: normalizeClass(["header flex items-center justify-between px-5 py-4 border-b", { "cursor-move": _ctx.draggable && !isFullscreen.value }]),
|
|
368824
369419
|
onMousedown: startDrag
|
|
368825
369420
|
}, [
|
|
368826
369421
|
createElementVNode("div", _hoisted_6, [
|
|
@@ -368831,7 +369426,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368831
369426
|
createElementVNode("div", _hoisted_7, [
|
|
368832
369427
|
_ctx.showFullscreen ? (openBlock(), createBlock(unref(ElButton), {
|
|
368833
369428
|
key: 0,
|
|
368834
|
-
class: "w-6 h-6 border-none
|
|
369429
|
+
class: "w-6 h-6 border-none cursor-pointer flex items-center justify-center rounded transition-all duration-200",
|
|
368835
369430
|
title: isFullscreen.value ? "退出全屏" : "全屏",
|
|
368836
369431
|
onClick: toggleFullscreen
|
|
368837
369432
|
}, {
|
|
@@ -368844,7 +369439,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
368844
369439
|
}, 8, ["title"])) : createCommentVNode("", true),
|
|
368845
369440
|
_ctx.showClose ? (openBlock(), createBlock(unref(ElButton), {
|
|
368846
369441
|
key: 1,
|
|
368847
|
-
class: "w-6 h-6 border-none
|
|
369442
|
+
class: "w-6 h-6 border-none cursor-pointer flex items-center justify-center rounded transition-all duration-200",
|
|
368848
369443
|
title: "关闭",
|
|
368849
369444
|
onClick: handleClose
|
|
368850
369445
|
}, {
|