mixdashboards 1.1.88 → 1.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dwgConverter-D79TBu90.js +39 -0
- package/dist/dwgdxf.js +179 -0
- package/dist/dwgdxf_bg.wasm +0 -0
- package/dist/{index-XdOJXMRr.js → index-YngSThXg.js} +3 -3
- package/dist/{lerc-CJSHEnRd.js → lerc-Qfi5Nf4-.js} +1 -1
- package/dist/mixdashboards.js +1 -1
- package/package.json +3 -3
- package/dist/basedecoder-BYtwoxgT.cjs +0 -1
- package/dist/deflate-DNYw6OaD.cjs +0 -1
- package/dist/dwgConverter-C-CI94zZ.js +0 -34
- package/dist/dwgConverter-EHw8TEh1.cjs +0 -1
- package/dist/dwgdxf-997cVE-g.cjs +0 -1
- package/dist/dwgdxf-BwSrMVGi.js +0 -119
- package/dist/index-BugjWDJ6.cjs +0 -4
- package/dist/index-CdsxjDLf.cjs +0 -16
- package/dist/index-Dk8E4qfc.cjs +0 -9091
- package/dist/jpeg-DLeEjPcb.cjs +0 -1
- package/dist/lerc-CCKzeyVJ.cjs +0 -1
- package/dist/lzw-DA3XeqBg.cjs +0 -1
- package/dist/mixdashboards.cjs +0 -1
- package/dist/packbits-fIig5HbM.cjs +0 -1
- package/dist/pako.esm-CKsI_qLX.cjs +0 -1
- package/dist/raw-B_Sr9gDq.cjs +0 -1
- package/dist/vue3-form-element.esm.min-BQXzsksv.cjs +0 -10
- package/dist/webimage-DQl5wElJ.cjs +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var o = (t, r, e) => new Promise((c, m) => {
|
|
2
|
+
var f = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
a(e.next(n));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
m(i);
|
|
7
|
+
}
|
|
8
|
+
}, l = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
a(e.throw(n));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
m(i);
|
|
13
|
+
}
|
|
14
|
+
}, a = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(f, l);
|
|
15
|
+
a((e = e.apply(t, r)).next());
|
|
16
|
+
});
|
|
17
|
+
const w = "" + new URL("dwgdxf.js", import.meta.url).href, d = "" + new URL("dwgdxf_bg.wasm", import.meta.url).href;
|
|
18
|
+
let u = null;
|
|
19
|
+
function s() {
|
|
20
|
+
return o(this, null, function* () {
|
|
21
|
+
return u || (u = import(
|
|
22
|
+
/* @vite-ignore */
|
|
23
|
+
w
|
|
24
|
+
).then((t) => o(null, null, function* () {
|
|
25
|
+
const r = t;
|
|
26
|
+
return yield r.default({ module_or_path: d }), r;
|
|
27
|
+
})).catch((t) => {
|
|
28
|
+
throw u = null, t;
|
|
29
|
+
})), u;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function x(t) {
|
|
33
|
+
return o(this, null, function* () {
|
|
34
|
+
return (yield s()).convertDwgToDxf(t);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
x as convertDwgToDxf
|
|
39
|
+
};
|
package/dist/dwgdxf.js
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/* @ts-self-types="./dwgdxf.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {Uint8Array} dwg_bytes
|
|
5
|
+
* @returns {Uint8Array}
|
|
6
|
+
*/
|
|
7
|
+
export function convertDwgToDxf(dwg_bytes) {
|
|
8
|
+
const ptr0 = passArray8ToWasm0(dwg_bytes, wasm.__wbindgen_malloc);
|
|
9
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10
|
+
const ret = wasm.convertDwgToDxf(ptr0, len0);
|
|
11
|
+
if (ret[3]) {
|
|
12
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
13
|
+
}
|
|
14
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
15
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
16
|
+
return v2;
|
|
17
|
+
}
|
|
18
|
+
function __wbg_get_imports() {
|
|
19
|
+
const import0 = {
|
|
20
|
+
__proto__: null,
|
|
21
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
22
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
23
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
24
|
+
return ret;
|
|
25
|
+
},
|
|
26
|
+
__wbindgen_init_externref_table: function() {
|
|
27
|
+
const table = wasm.__wbindgen_externrefs;
|
|
28
|
+
const offset = table.grow(4);
|
|
29
|
+
table.set(0, undefined);
|
|
30
|
+
table.set(offset + 0, undefined);
|
|
31
|
+
table.set(offset + 1, null);
|
|
32
|
+
table.set(offset + 2, true);
|
|
33
|
+
table.set(offset + 3, false);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
return {
|
|
37
|
+
__proto__: null,
|
|
38
|
+
"./dwgdxf_bg.js": import0,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
43
|
+
ptr = ptr >>> 0;
|
|
44
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function getStringFromWasm0(ptr, len) {
|
|
48
|
+
return decodeText(ptr >>> 0, len);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let cachedUint8ArrayMemory0 = null;
|
|
52
|
+
function getUint8ArrayMemory0() {
|
|
53
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
54
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
55
|
+
}
|
|
56
|
+
return cachedUint8ArrayMemory0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
60
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
61
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
62
|
+
WASM_VECTOR_LEN = arg.length;
|
|
63
|
+
return ptr;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function takeFromExternrefTable0(idx) {
|
|
67
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
68
|
+
wasm.__externref_table_dealloc(idx);
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
73
|
+
cachedTextDecoder.decode();
|
|
74
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
75
|
+
let numBytesDecoded = 0;
|
|
76
|
+
function decodeText(ptr, len) {
|
|
77
|
+
numBytesDecoded += len;
|
|
78
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
79
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
80
|
+
cachedTextDecoder.decode();
|
|
81
|
+
numBytesDecoded = len;
|
|
82
|
+
}
|
|
83
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let WASM_VECTOR_LEN = 0;
|
|
87
|
+
|
|
88
|
+
let wasmModule, wasmInstance, wasm;
|
|
89
|
+
function __wbg_finalize_init(instance, module) {
|
|
90
|
+
wasmInstance = instance;
|
|
91
|
+
wasm = instance.exports;
|
|
92
|
+
wasmModule = module;
|
|
93
|
+
cachedUint8ArrayMemory0 = null;
|
|
94
|
+
wasm.__wbindgen_start();
|
|
95
|
+
return wasm;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async function __wbg_load(module, imports) {
|
|
99
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
100
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
101
|
+
try {
|
|
102
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
105
|
+
|
|
106
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
107
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
108
|
+
|
|
109
|
+
} else { throw e; }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const bytes = await module.arrayBuffer();
|
|
114
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
115
|
+
} else {
|
|
116
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
117
|
+
|
|
118
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
119
|
+
return { instance, module };
|
|
120
|
+
} else {
|
|
121
|
+
return instance;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function expectedResponseType(type) {
|
|
126
|
+
switch (type) {
|
|
127
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
128
|
+
}
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function initSync(module) {
|
|
134
|
+
if (wasm !== undefined) return wasm;
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
if (module !== undefined) {
|
|
138
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
139
|
+
({module} = module)
|
|
140
|
+
} else {
|
|
141
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const imports = __wbg_get_imports();
|
|
146
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
147
|
+
module = new WebAssembly.Module(module);
|
|
148
|
+
}
|
|
149
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
150
|
+
return __wbg_finalize_init(instance, module);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async function __wbg_init(module_or_path) {
|
|
154
|
+
if (wasm !== undefined) return wasm;
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
if (module_or_path !== undefined) {
|
|
158
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
159
|
+
({module_or_path} = module_or_path)
|
|
160
|
+
} else {
|
|
161
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (module_or_path === undefined) {
|
|
166
|
+
module_or_path = new URL('dwgdxf_bg.wasm', import.meta.url);
|
|
167
|
+
}
|
|
168
|
+
const imports = __wbg_get_imports();
|
|
169
|
+
|
|
170
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
171
|
+
module_or_path = fetch(module_or_path);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
175
|
+
|
|
176
|
+
return __wbg_finalize_init(instance, module);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export { initSync, __wbg_init as default };
|
|
Binary file
|
|
@@ -111981,7 +111981,7 @@ function iAt(n, e = "") {
|
|
|
111981
111981
|
throw new Error(`HTTP ${t.status}: ${t.statusText}`);
|
|
111982
111982
|
const i = new Uint8Array(yield t.arrayBuffer());
|
|
111983
111983
|
if (nAt(e || n, i) === "dxf") return new TextDecoder("utf-8").decode(i);
|
|
111984
|
-
const { convertDwgToDxf: a } = yield import("./dwgConverter-
|
|
111984
|
+
const { convertDwgToDxf: a } = yield import("./dwgConverter-D79TBu90.js"), o = yield a(i);
|
|
111985
111985
|
if (!o.length) throw new Error("DWG 转换未生成 DXF 数据");
|
|
111986
111986
|
return new TextDecoder("utf-8").decode(o);
|
|
111987
111987
|
});
|
|
@@ -170234,7 +170234,7 @@ uA([8, 32946], () => import("./deflate-DZSox_Tz.js").then((n) => n.default));
|
|
|
170234
170234
|
uA(32773, () => import("./packbits-AaardaO4.js").then((n) => n.default));
|
|
170235
170235
|
uA(
|
|
170236
170236
|
34887,
|
|
170237
|
-
() => import("./lerc-
|
|
170237
|
+
() => import("./lerc-Qfi5Nf4-.js").then((n) => Oe(null, null, function* () {
|
|
170238
170238
|
return yield n.zstd.init(), n;
|
|
170239
170239
|
})).then((n) => n.default)
|
|
170240
170240
|
);
|
|
@@ -248265,7 +248265,7 @@ const N7n = ["data-theme"], Q7n = ["title", "aria-label"], F7n = ["id", "data-th
|
|
|
248265
248265
|
} : void 0
|
|
248266
248266
|
]), 1032, ["script", "uid", "mixiot-dashboard-uid", "enableWebSocket", "follow-host-theme", "is-product", "agent", "release-embed-agent-on-unmount", "show-fullscreen-control"]));
|
|
248267
248267
|
}
|
|
248268
|
-
}), G7n = "1.1.
|
|
248268
|
+
}), G7n = "1.1.89";
|
|
248269
248269
|
typeof console != "undefined" && console.info && console.info("[MixDashboards] 版本:", G7n);
|
|
248270
248270
|
const j7n = [Lw, W3, Hg], Y7n = function(n) {
|
|
248271
248271
|
j7n.forEach((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as sA } from "./pako.esm-BYYgjZjq.js";
|
|
2
|
-
import { g as DA, L as nA, a as gA } from "./index-
|
|
2
|
+
import { g as DA, L as nA, a as gA } from "./index-YngSThXg.js";
|
|
3
3
|
import { B as fA } from "./basedecoder-Brwqz2SL.js";
|
|
4
4
|
var BA = { exports: {} }, iA;
|
|
5
5
|
function tA() {
|
package/dist/mixdashboards.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mixdashboards",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.89",
|
|
4
4
|
"description": "MixDashboards Display Components - Show, Pro, App",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/mixdashboards.
|
|
6
|
+
"main": "./dist/mixdashboards.js",
|
|
7
7
|
"module": "./dist/mixdashboards.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/mixdashboards.js",
|
|
11
|
-
"
|
|
11
|
+
"default": "./dist/mixdashboards.js"
|
|
12
12
|
},
|
|
13
13
|
"./style": "./dist/mixdashboards.css"
|
|
14
14
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=(a,e,o)=>new Promise((r,c)=>{var h=t=>{try{n(o.next(t))}catch(i){c(i)}},s=t=>{try{n(o.throw(t))}catch(i){c(i)}},n=t=>t.done?r(t.value):Promise.resolve(t.value).then(h,s);n((o=o.apply(a,e)).next())});function d(a,e){let o=a.length-e,r=0;do{for(let c=e;c>0;c--)a[r+e]+=a[r],r++;o-=e}while(o>0)}function f(a,e,o){let r=0,c=a.length;const h=c/o;for(;c>e;){for(let n=e;n>0;--n)a[r+e]+=a[r],++r;c-=e}const s=a.slice();for(let n=0;n<h;++n)for(let t=0;t<o;++t)a[o*n+t]=s[(o-t-1)*h+n]}function g(a,e,o,r,c,h){if(e===1)return a;for(let t=0;t<c.length;++t){if(c[t]%8!==0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(c[t]!==c[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const s=c[0]/8,n=h===2?1:c.length;for(let t=0;t<r&&!(t*n*o*s>=a.byteLength);++t){let i;if(e===2){switch(c[0]){case 8:i=new Uint8Array(a,t*n*o*s,n*o*s);break;case 16:i=new Uint16Array(a,t*n*o*s,n*o*s/2);break;case 32:i=new Uint32Array(a,t*n*o*s,n*o*s/4);break;default:throw new Error(`Predictor 2 not allowed with ${c[0]} bits per sample.`)}d(i,n)}else e===3&&(i=new Uint8Array(a,t*n*o*s,n*o*s),f(i,n,s))}return a}class u{decode(e,o){return l(this,null,function*(){const r=yield this.decodeBlock(o),c=e.Predictor||1;if(c!==1){const h=!e.StripOffsets,s=h?e.TileWidth:e.ImageWidth,n=h?e.TileLength:e.RowsPerStrip||e.ImageLength;return g(r,c,s,n,e.BitsPerSample,e.PlanarConfiguration)}return r})}}exports.BaseDecoder=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./pako.esm-CKsI_qLX.cjs"),t=require("./basedecoder-BYtwoxgT.cjs");class o extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=o;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var e = (t, c, r) => new Promise((l, i) => {
|
|
2
|
-
var f = (n) => {
|
|
3
|
-
try {
|
|
4
|
-
u(r.next(n));
|
|
5
|
-
} catch (a) {
|
|
6
|
-
i(a);
|
|
7
|
-
}
|
|
8
|
-
}, m = (n) => {
|
|
9
|
-
try {
|
|
10
|
-
u(r.throw(n));
|
|
11
|
-
} catch (a) {
|
|
12
|
-
i(a);
|
|
13
|
-
}
|
|
14
|
-
}, u = (n) => n.done ? l(n.value) : Promise.resolve(n.value).then(f, m);
|
|
15
|
-
u((r = r.apply(t, c)).next());
|
|
16
|
-
});
|
|
17
|
-
let o = null;
|
|
18
|
-
function s() {
|
|
19
|
-
return e(this, null, function* () {
|
|
20
|
-
return o || (o = import("./dwgdxf-BwSrMVGi.js").then((t) => e(null, null, function* () {
|
|
21
|
-
return yield t.default(), t;
|
|
22
|
-
})).catch((t) => {
|
|
23
|
-
throw o = null, t;
|
|
24
|
-
})), o;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function D(t) {
|
|
28
|
-
return e(this, null, function* () {
|
|
29
|
-
return (yield s()).convertDwgToDxf(t);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
D as convertDwgToDxf
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=(e,c,n)=>new Promise((l,a)=>{var s=t=>{try{u(n.next(t))}catch(i){a(i)}},f=t=>{try{u(n.throw(t))}catch(i){a(i)}},u=t=>t.done?l(t.value):Promise.resolve(t.value).then(s,f);u((n=n.apply(e,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let o=null;function m(){return r(this,null,function*(){return o||(o=Promise.resolve().then(()=>require("./dwgdxf-997cVE-g.cjs")).then(e=>r(null,null,function*(){return yield e.default(),e})).catch(e=>{throw o=null,e})),o})}function w(e){return r(this,null,function*(){return(yield m()).convertDwgToDxf(e)})}exports.convertDwgToDxf=w;
|