@kq_npm/client3d_webgl_vue 4.1.3-beta → 4.1.5-beta
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/clientPrint/index.js +354 -7
- package/index.js +375 -15
- package/package.json +1 -1
- package/scenceview/index.js +453 -18
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
|
-
/******/ "use strict";
|
|
3
2
|
/******/ var __webpack_modules__ = ({
|
|
4
3
|
|
|
5
4
|
/***/ 705:
|
|
6
5
|
/***/ (function(module) {
|
|
7
6
|
|
|
7
|
+
"use strict";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
@@ -74,9 +74,343 @@ module.exports = function (cssWithMappingToString) {
|
|
|
74
74
|
|
|
75
75
|
/***/ }),
|
|
76
76
|
|
|
77
|
+
/***/ 961:
|
|
78
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
79
|
+
|
|
80
|
+
__webpack_require__(271);
|
|
81
|
+
|
|
82
|
+
!function (e, t) {
|
|
83
|
+
true ? module.exports = t() : 0;
|
|
84
|
+
}(this, function () {
|
|
85
|
+
"use strict";
|
|
86
|
+
|
|
87
|
+
class e {
|
|
88
|
+
constructor(e) {
|
|
89
|
+
this.standards = {
|
|
90
|
+
strict: "strict",
|
|
91
|
+
loose: "loose",
|
|
92
|
+
html5: "html5"
|
|
93
|
+
}, this.previewBody = null, this.close = null, this.previewBodyUtilPrintBtn = null, this.selectArray = [], this.counter = 0, this.settings = {
|
|
94
|
+
standard: this.standards.html5
|
|
95
|
+
}, Object.assign(this.settings, e), this.init();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
init() {
|
|
99
|
+
this.counter++, this.settings.id = `printArea_${this.counter}`;
|
|
100
|
+
let e = "";
|
|
101
|
+
this.settings.url && !this.settings.asyncUrl && (e = this.settings.url);
|
|
102
|
+
let t = this;
|
|
103
|
+
if (this.settings.asyncUrl) return void t.settings.asyncUrl(function (e) {
|
|
104
|
+
let i = t.getPrintWindow(e);
|
|
105
|
+
t.settings.preview ? t.previewIfrmaeLoad() : t.print(i);
|
|
106
|
+
}, t.settings.vue);
|
|
107
|
+
let i = this.getPrintWindow(e);
|
|
108
|
+
this.settings.url || this.write(i.doc), this.settings.preview ? this.previewIfrmaeLoad() : this.print(i);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
addEvent(e, t, i) {
|
|
112
|
+
e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent ? e.attachEvent("on" + t, i) : e["on" + t] = i;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
previewIfrmaeLoad() {
|
|
116
|
+
let e = document.getElementById("vue-pirnt-nb-previewBox");
|
|
117
|
+
|
|
118
|
+
if (e) {
|
|
119
|
+
let t = this,
|
|
120
|
+
i = e.querySelector("iframe");
|
|
121
|
+
this.settings.previewBeforeOpenCallback(), this.addEvent(i, "load", function () {
|
|
122
|
+
t.previewBoxShow(), t.removeCanvasImg(), t.settings.previewOpenCallback();
|
|
123
|
+
}), this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"), "click", function () {
|
|
124
|
+
t.settings.beforeOpenCallback(), t.settings.openCallback(), i.contentWindow.print(), t.settings.closeCallback();
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
removeCanvasImg() {
|
|
130
|
+
let e = this;
|
|
131
|
+
|
|
132
|
+
try {
|
|
133
|
+
if (e.elsdom) {
|
|
134
|
+
let t = e.elsdom.querySelectorAll(".canvasImg");
|
|
135
|
+
|
|
136
|
+
for (let e = 0; e < t.length; e++) t[e].remove();
|
|
137
|
+
}
|
|
138
|
+
} catch (t) {
|
|
139
|
+
console.log(t);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
print(e) {
|
|
144
|
+
var t = this;
|
|
145
|
+
let i = document.getElementById(this.settings.id) || e.f,
|
|
146
|
+
l = document.getElementById(this.settings.id).contentWindow || e.f.contentWindow;
|
|
147
|
+
t.settings.beforeOpenCallback(), t.addEvent(i, "load", function () {
|
|
148
|
+
l.focus(), t.settings.openCallback(), l.print(), i.remove(), t.settings.closeCallback(), t.removeCanvasImg();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
write(e) {
|
|
153
|
+
e.open(), e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`), e.close();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
docType() {
|
|
157
|
+
return this.settings.standard === this.standards.html5 ? "<!DOCTYPE html>" : `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard === this.standards.loose ? " Transitional" : ""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard === this.standards.loose ? "loose" : "strict"}.dtd">`;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
getHead() {
|
|
161
|
+
let e = "",
|
|
162
|
+
t = "",
|
|
163
|
+
i = "";
|
|
164
|
+
this.settings.extraHead && this.settings.extraHead.replace(/([^,]+)/g, t => {
|
|
165
|
+
e += t;
|
|
166
|
+
}), [].forEach.call(document.querySelectorAll("link"), function (e) {
|
|
167
|
+
e.href.indexOf(".css") >= 0 && (t += `<link type="text/css" rel="stylesheet" href="${e.href}" >`);
|
|
168
|
+
});
|
|
169
|
+
let l = document.styleSheets;
|
|
170
|
+
if (l && l.length > 0) for (let r = 0; r < l.length; r++) try {
|
|
171
|
+
if (l[r].cssRules || l[r].rules) {
|
|
172
|
+
let e = l[r].cssRules || l[r].rules;
|
|
173
|
+
|
|
174
|
+
for (let t = 0; t < e.length; t++) i += e[t].cssText;
|
|
175
|
+
}
|
|
176
|
+
} catch (s) {
|
|
177
|
+
console.log(l[r].href + s);
|
|
178
|
+
}
|
|
179
|
+
return this.settings.extraCss && this.settings.extraCss.replace(/([^,\s]+)/g, e => {
|
|
180
|
+
t += `<link type="text/css" rel="stylesheet" href="${e}">`;
|
|
181
|
+
}), `<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${i}</style></head>`;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
getBody() {
|
|
185
|
+
let e = this.settings.ids;
|
|
186
|
+
return e = e.replace(new RegExp("#", "g"), ""), this.elsdom = this.beforeHanler(document.getElementById(e)), "<body>" + this.getFormData(this.elsdom).outerHTML + "</body>";
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
beforeHanler(e) {
|
|
190
|
+
let t = e.querySelectorAll("canvas");
|
|
191
|
+
|
|
192
|
+
for (let i = 0; i < t.length; i++) if (!t[i].style.display) {
|
|
193
|
+
let e = t[i].parentNode,
|
|
194
|
+
l = t[i].toDataURL("image/png"),
|
|
195
|
+
s = new Image(); //zl 0822 样式赋值
|
|
196
|
+
|
|
197
|
+
let a = t[i].attributes;
|
|
198
|
+
|
|
199
|
+
for (let z = 0; z < a.length; z++) {
|
|
200
|
+
switch (a[z].name) {
|
|
201
|
+
case 'class':
|
|
202
|
+
s['className'] = a[z].value;
|
|
203
|
+
break;
|
|
204
|
+
|
|
205
|
+
case 'width':
|
|
206
|
+
case 'height':
|
|
207
|
+
s[a[z].name] = a[z].value;
|
|
208
|
+
break;
|
|
209
|
+
|
|
210
|
+
case 'style':
|
|
211
|
+
const styles = a[z].value.split(';');
|
|
212
|
+
|
|
213
|
+
for (let zz = 0; zz < styles.length; zz++) {
|
|
214
|
+
if (styles[zz].trim() === '') continue;
|
|
215
|
+
let ss = styles[zz].split(':'),
|
|
216
|
+
s1 = ss[0].trim(),
|
|
217
|
+
s2 = ss[1].trim();
|
|
218
|
+
s.style[s1] = s2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
s.className += " canvasImg", s.style.display = "none", s.src = l, e.appendChild(s);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return e;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
getFormData(e) {
|
|
232
|
+
let t = e.cloneNode(!0),
|
|
233
|
+
i = t.querySelectorAll("input,select,textarea"),
|
|
234
|
+
l = t.querySelectorAll(".canvasImg,canvas"),
|
|
235
|
+
s = -1;
|
|
236
|
+
|
|
237
|
+
for (let r = 0; r < l.length; r++) {
|
|
238
|
+
let e = l[r].parentNode,
|
|
239
|
+
t = l[r];
|
|
240
|
+
"canvas" === t.tagName.toLowerCase() ? e.removeChild(t) : t.style.display = "block";
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
for (let r = 0; r < i.length; r++) {
|
|
244
|
+
let t = i[r],
|
|
245
|
+
l = t.getAttribute("type"),
|
|
246
|
+
n = i[r];
|
|
247
|
+
if (l || (l = "SELECT" === t.tagName ? "select" : "TEXTAREA" === t.tagName ? "textarea" : ""), "INPUT" === t.tagName) "radio" === l || "checkbox" === l ? t.checked && n.setAttribute("checked", t.checked) : (n.value = t.value, n.setAttribute("value", t.value));else if ("select" === l) {
|
|
248
|
+
s++;
|
|
249
|
+
|
|
250
|
+
for (let i = 0; i < e.querySelectorAll("select").length; i++) {
|
|
251
|
+
let l = e.querySelectorAll("select")[i];
|
|
252
|
+
|
|
253
|
+
if (!l.getAttribute("newbs") && l.setAttribute("newbs", i), l.getAttribute("newbs") == s) {
|
|
254
|
+
let i = e.querySelectorAll("select")[s].selectedIndex;
|
|
255
|
+
t.options[i].setAttribute("selected", !0);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} else n.innerHTML = t.value, n.setAttribute("html", t.value);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
return t;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
getPrintWindow(e) {
|
|
265
|
+
var t = this.Iframe(e);
|
|
266
|
+
return {
|
|
267
|
+
f: t,
|
|
268
|
+
win: t.contentWindow || t,
|
|
269
|
+
doc: t.doc
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
previewBoxShow() {
|
|
274
|
+
let e = document.getElementById("vue-pirnt-nb-previewBox");
|
|
275
|
+
e && (document.querySelector("html").setAttribute("style", "overflow: hidden"), e.style.display = "block");
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
previewBoxHide() {
|
|
279
|
+
let e = document.getElementById("vue-pirnt-nb-previewBox");
|
|
280
|
+
e && (document.querySelector("html").setAttribute("style", "overflow: visible;"), e.querySelector("iframe") && e.querySelector("iframe").remove(), e.style.display = "none");
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
previewBox() {
|
|
284
|
+
let e = document.getElementById("vue-pirnt-nb-previewBox"),
|
|
285
|
+
t = "previewBody";
|
|
286
|
+
if (e) return e.querySelector("iframe") && e.querySelector("iframe").remove(), {
|
|
287
|
+
close: e.querySelector(".previewClose"),
|
|
288
|
+
previewBody: e.querySelector(".previewBody")
|
|
289
|
+
};
|
|
290
|
+
let i = document.createElement("div");
|
|
291
|
+
i.setAttribute("id", "vue-pirnt-nb-previewBox"), i.setAttribute("style", "position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"), i.style.zIndex = this.settings.zIndex;
|
|
292
|
+
let l = document.createElement("div");
|
|
293
|
+
l.setAttribute("class", "previewHeader"), l.setAttribute("style", "padding: 5px 20px;"), l.innerHTML = this.settings.previewTitle, i.appendChild(l), this.close = document.createElement("div");
|
|
294
|
+
let s = this.close;
|
|
295
|
+
s.setAttribute("class", "previewClose"), s.setAttribute("style", "position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");
|
|
296
|
+
let r = document.createElement("div"),
|
|
297
|
+
n = document.createElement("div");
|
|
298
|
+
r.setAttribute("class", "closeBefore"), r.setAttribute("style", "position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"), n.setAttribute("class", "closeAfter"), n.setAttribute("style", "position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"), s.appendChild(r), s.appendChild(n), l.appendChild(s), this.previewBody = document.createElement("div");
|
|
299
|
+
let o = this.previewBody;
|
|
300
|
+
o.setAttribute("class", t), o.setAttribute("style", "display: flex;flex-direction: column; height: 100%;"), i.appendChild(o);
|
|
301
|
+
let a = document.createElement("div");
|
|
302
|
+
a.setAttribute("class", "previewBodyUtil"), a.setAttribute("style", "height: 32px;background: #474747;position: relative;"), o.appendChild(a), this.previewBodyUtilPrintBtn = document.createElement("div");
|
|
303
|
+
let d = this.previewBodyUtilPrintBtn;
|
|
304
|
+
return d.setAttribute("class", "previewBodyUtilPrintBtn"), d.innerHTML = this.settings.previewPrintBtnLabel, d.setAttribute("style", "position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"), a.appendChild(d), document.body.appendChild(i), {
|
|
305
|
+
close: this.close,
|
|
306
|
+
previewBody: this.previewBody
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
iframeBox(e, t) {
|
|
311
|
+
let i = document.createElement("iframe");
|
|
312
|
+
return i.style.border = "0px", i.style.position = "absolute", i.style.width = "0px", i.style.height = "0px", i.style.right = "0px", i.style.top = "0px", i.setAttribute("id", e), i.setAttribute("src", t), i;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
Iframe(e) {
|
|
316
|
+
let t = this.settings.id;
|
|
317
|
+
e = e || new Date().getTime();
|
|
318
|
+
let i = this,
|
|
319
|
+
l = this.iframeBox(t, e);
|
|
320
|
+
|
|
321
|
+
try {
|
|
322
|
+
if (this.settings.preview) {
|
|
323
|
+
l.setAttribute("style", "border: 0px;flex: 1;");
|
|
324
|
+
let e = this.previewBox(),
|
|
325
|
+
t = e.previewBody,
|
|
326
|
+
s = e.close;
|
|
327
|
+
t.appendChild(l), this.addEvent(s, "click", function () {
|
|
328
|
+
i.previewBoxHide();
|
|
329
|
+
});
|
|
330
|
+
} else document.body.appendChild(l);
|
|
331
|
+
|
|
332
|
+
l.doc = null, l.doc = l.contentDocument ? l.contentDocument : l.contentWindow ? l.contentWindow.document : l.document;
|
|
333
|
+
} catch (s) {
|
|
334
|
+
throw new Error(s + ". iframes may not be supported in this browser.");
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (null == l.doc) throw new Error("Cannot find document.");
|
|
338
|
+
return l;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
var t = {
|
|
344
|
+
directiveName: "print",
|
|
345
|
+
|
|
346
|
+
mounted(t, i, l) {
|
|
347
|
+
let s = i.instance,
|
|
348
|
+
r = "";
|
|
349
|
+
var n, o, a;
|
|
350
|
+
o = "click", a = () => {
|
|
351
|
+
if ("string" == typeof i.value) r = i.value;else {
|
|
352
|
+
if ("object" != typeof i.value || !i.value.id) return void window.print();
|
|
353
|
+
{
|
|
354
|
+
r = i.value.id;
|
|
355
|
+
let e = r.replace(new RegExp("#", "g"), "");
|
|
356
|
+
document.getElementById(e) || (console.log("id in Error"), r = "");
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
d();
|
|
360
|
+
}, (n = t).addEventListener ? n.addEventListener(o, a, !1) : n.attachEvent ? n.attachEvent("on" + o, a) : n["on" + o] = a;
|
|
361
|
+
|
|
362
|
+
const d = () => {
|
|
363
|
+
new e({
|
|
364
|
+
ids: r,
|
|
365
|
+
vue: s,
|
|
366
|
+
url: i.value.url,
|
|
367
|
+
standard: "",
|
|
368
|
+
extraHead: i.value.extraHead,
|
|
369
|
+
extraCss: i.value.extraCss,
|
|
370
|
+
zIndex: i.value.zIndex || 20002,
|
|
371
|
+
previewTitle: i.value.previewTitle || "打印预览",
|
|
372
|
+
previewPrintBtnLabel: i.value.previewPrintBtnLabel || "打印",
|
|
373
|
+
popTitle: i.value.popTitle,
|
|
374
|
+
preview: i.value.preview || !1,
|
|
375
|
+
asyncUrl: i.value.asyncUrl,
|
|
376
|
+
|
|
377
|
+
previewBeforeOpenCallback() {
|
|
378
|
+
i.value.previewBeforeOpenCallback && i.value.previewBeforeOpenCallback(s);
|
|
379
|
+
},
|
|
380
|
+
|
|
381
|
+
previewOpenCallback() {
|
|
382
|
+
i.value.previewOpenCallback && i.value.previewOpenCallback(s);
|
|
383
|
+
},
|
|
384
|
+
|
|
385
|
+
openCallback() {
|
|
386
|
+
i.value.openCallback && i.value.openCallback(s);
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
closeCallback() {
|
|
390
|
+
i.value.closeCallback && i.value.closeCallback(s);
|
|
391
|
+
},
|
|
392
|
+
|
|
393
|
+
beforeOpenCallback() {
|
|
394
|
+
i.value.beforeOpenCallback && i.value.beforeOpenCallback(s);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
|
|
401
|
+
install: function (e) {
|
|
402
|
+
e.directive("print", t);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
return t;
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
/***/ }),
|
|
409
|
+
|
|
77
410
|
/***/ 868:
|
|
78
411
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
79
412
|
|
|
413
|
+
"use strict";
|
|
80
414
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
|
|
81
415
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
82
416
|
// Imports
|
|
@@ -93,6 +427,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
|
|
|
93
427
|
/***/ 825:
|
|
94
428
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
95
429
|
|
|
430
|
+
"use strict";
|
|
96
431
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
|
|
97
432
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
98
433
|
// Imports
|
|
@@ -109,6 +444,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultCont
|
|
|
109
444
|
/***/ 854:
|
|
110
445
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
111
446
|
|
|
447
|
+
"use strict";
|
|
112
448
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
|
|
113
449
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
114
450
|
// Imports
|
|
@@ -125,6 +461,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".cesium-viewer-bottom{right:0px !impor
|
|
|
125
461
|
/***/ 379:
|
|
126
462
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
127
463
|
|
|
464
|
+
"use strict";
|
|
128
465
|
|
|
129
466
|
|
|
130
467
|
var isOldIE = function isOldIE() {
|
|
@@ -395,6 +732,14 @@ module.exports = function (list, options) {
|
|
|
395
732
|
};
|
|
396
733
|
};
|
|
397
734
|
|
|
735
|
+
/***/ }),
|
|
736
|
+
|
|
737
|
+
/***/ 271:
|
|
738
|
+
/***/ (function(module) {
|
|
739
|
+
|
|
740
|
+
"use strict";
|
|
741
|
+
module.exports = require("core-js/modules/es.error.cause.js");
|
|
742
|
+
|
|
398
743
|
/***/ })
|
|
399
744
|
|
|
400
745
|
/******/ });
|
|
@@ -417,7 +762,7 @@ module.exports = function (list, options) {
|
|
|
417
762
|
/******/ };
|
|
418
763
|
/******/
|
|
419
764
|
/******/ // Execute the module function
|
|
420
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
765
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
421
766
|
/******/
|
|
422
767
|
/******/ // Return the exports of the module
|
|
423
768
|
/******/ return module.exports;
|
|
@@ -471,8 +816,9 @@ module.exports = function (list, options) {
|
|
|
471
816
|
/******/
|
|
472
817
|
/************************************************************************/
|
|
473
818
|
var __webpack_exports__ = {};
|
|
474
|
-
// This entry need to be wrapped in an IIFE because it need to be
|
|
819
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
475
820
|
!function() {
|
|
821
|
+
"use strict";
|
|
476
822
|
// ESM COMPAT FLAG
|
|
477
823
|
__webpack_require__.r(__webpack_exports__);
|
|
478
824
|
|
|
@@ -2081,15 +2427,12 @@ class LayerManager {
|
|
|
2081
2427
|
var type = layerData.renderType;
|
|
2082
2428
|
|
|
2083
2429
|
if (layerData.sourceType === "kqserver") {
|
|
2430
|
+
if (source.token && layerData.url.indexOf("ua_token") < 0) {
|
|
2431
|
+
layerData.url += "?ua_token=" + source.token;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2084
2434
|
if (!layerData.renderType || layerData.renderType === "rest") {
|
|
2085
2435
|
type = "kqgismapserver";
|
|
2086
|
-
layerData.token = source.token;
|
|
2087
|
-
} else {
|
|
2088
|
-
layerData.url += "/" + layerData.renderType;
|
|
2089
|
-
|
|
2090
|
-
if (source.token) {
|
|
2091
|
-
layerData.url += "?ua_token=" + source.token;
|
|
2092
|
-
}
|
|
2093
2436
|
} //记录数据源里所有图层信息
|
|
2094
2437
|
|
|
2095
2438
|
|
|
@@ -2128,6 +2471,19 @@ class LayerManager {
|
|
|
2128
2471
|
}
|
|
2129
2472
|
}
|
|
2130
2473
|
}
|
|
2474
|
+
} // URL追加接口
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
_urlAppendInterface(url, interfaceName) {
|
|
2478
|
+
let newUrl = url;
|
|
2479
|
+
|
|
2480
|
+
if (url.indexOf('?') > 0) {
|
|
2481
|
+
newUrl = url.replace("?", "/" + interfaceName + "?");
|
|
2482
|
+
} else {
|
|
2483
|
+
newUrl += "/" + interfaceName;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
return newUrl;
|
|
2131
2487
|
} //添加图层数据
|
|
2132
2488
|
|
|
2133
2489
|
|
|
@@ -2463,6 +2819,8 @@ class LayerManager {
|
|
|
2463
2819
|
}
|
|
2464
2820
|
}
|
|
2465
2821
|
}
|
|
2822
|
+
|
|
2823
|
+
url = this._urlAppendInterface(url, "wms");
|
|
2466
2824
|
}
|
|
2467
2825
|
|
|
2468
2826
|
layerData.visible = isAdd;
|
|
@@ -2503,6 +2861,8 @@ class LayerManager {
|
|
|
2503
2861
|
}
|
|
2504
2862
|
}
|
|
2505
2863
|
}
|
|
2864
|
+
|
|
2865
|
+
url = this._urlAppendInterface(url, "wmts");
|
|
2506
2866
|
}
|
|
2507
2867
|
|
|
2508
2868
|
layerData.visible = isAdd;
|
|
@@ -3130,7 +3490,7 @@ class LayerManager {
|
|
|
3130
3490
|
|
|
3131
3491
|
function getChildren(parent) {
|
|
3132
3492
|
for (let z = 0; z < layers_old.length; z++) {
|
|
3133
|
-
if (layers_old[z].parentLayerId === parent.id && layers_old[z].sourceName === parent.sourceName) {
|
|
3493
|
+
if (layers_old[z].parentLayerId + "" === parent.id + "" && layers_old[z].sourceName === parent.sourceName) {
|
|
3134
3494
|
// 分组节点
|
|
3135
3495
|
if (layers_old[z].groupLayer) {
|
|
3136
3496
|
getChildren(layers_old[z]);
|
|
@@ -4890,9 +5250,9 @@ Compass.install = (Vue, opts) => {
|
|
|
4890
5250
|
;// CONCATENATED MODULE: external "html2canvas"
|
|
4891
5251
|
var external_html2canvas_namespaceObject = require("html2canvas");
|
|
4892
5252
|
var external_html2canvas_default = /*#__PURE__*/__webpack_require__.n(external_html2canvas_namespaceObject);
|
|
4893
|
-
|
|
4894
|
-
var
|
|
4895
|
-
var
|
|
5253
|
+
// EXTERNAL MODULE: ./public/libs/kqwebclient/leaflet/3rd-libs/vue3-print-nb/vue3-print-nb.umd.js
|
|
5254
|
+
var vue3_print_nb_umd = __webpack_require__(961);
|
|
5255
|
+
var vue3_print_nb_umd_default = /*#__PURE__*/__webpack_require__.n(vue3_print_nb_umd);
|
|
4896
5256
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/clientPrint/ClientPrint.vue?vue&type=script&setup=true&lang=js
|
|
4897
5257
|
|
|
4898
5258
|
|
|
@@ -6274,7 +6634,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
|
|
|
6274
6634
|
|
|
6275
6635
|
}, 8
|
|
6276
6636
|
/* PROPS */
|
|
6277
|
-
, ["loading"])), [[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)((
|
|
6637
|
+
, ["loading"])), [[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)((vue3_print_nb_umd_default())), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(printObj)]])])]),
|
|
6278
6638
|
_: 1
|
|
6279
6639
|
/* STABLE */
|
|
6280
6640
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.1.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.1.5-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"restrictedVersion":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"1.1.1","echarts":"5.3.0","echarts-stat":"1.2.0","js-cookie":"3.0.1","omit.js":"2.0.2","save":"2.5.0","tinycolor2":"1.4.2","vue-i18n":"9.2.0-beta.36","xlsx":"0.18.5","css-vars-ponyfill":"2.4.8","html2canvas":"1.4.1","xe-utils":"3.5.4"}}
|