@sv-print/plugin-api-image 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var N=(o,e,x)=>new Promise((a,c)=>{var g=s=>{try{v(x.next(s))}catch(f){c(f)}},u=s=>{try{v(x.throw(s))}catch(f){c(f)}},v=s=>s.done?a(s.value):Promise.resolve(s.value).then(g,u);v((x=x.apply(o,e)).next())});const B=require("html-to-image");function H(o){if(o&&o.__esModule)return o;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const x in o)if(x!=="default"){const a=Object.getOwnPropertyDescriptor(o,x);Object.defineProperty(e,x,a.get?a:{enumerable:!0,get:()=>o[x]})}}return e.default=o,Object.freeze(e)}const K=H(B);function A(o,e){const x=q();return A=function(a,c){return a=a-241,x[a]},A(o,e)}(function(o,e){const x=A,a=o();for(;[];)try{if(parseInt(x(311))/1+parseInt(x(257))/2+parseInt(x(282))/3*(parseInt(x(290))/4)+parseInt(x(298))/5*(-parseInt(x(310))/6)+parseInt(x(272))/7+parseInt(x(243))/8*(-parseInt(x(278))/9)+-parseInt(x(302))/10*(parseInt(x(286))/11)===e)break;a.push(a.shift())}catch(c){a.push(a.shift())}})(q,310597);function q(){const o=["image/jpeg","onload","jpg","drawImage","toType","quality","setAttribute","limit","webp","clearRect","toImage percent: ","onProgress","2752520slsSzG","queue","position:fixed","imageSmoothingEnabled","start","body","push","getContext","error","display","type","canvas","removeTempContainer","svg","1211952pjWnxS","png","isDownload","none","resolve",".hiprint-printPanel .hiprint-printPaper","toBlob","createElement","svg2canvas","gif","devicePixelRatio","floor","src","length","toLowerCase","3028354fANDZb","html","replace","base64","getTempContainer","split","9OKopgT","add","IMG","promise","423903ysAAGw","run","then","clear","7073jsgnKA","baseURI","jpeg","http","8EKXJCz","#fff","height","appendChild","find","log","hinnn","tagName","520860jTbyTh",".jpg","printPanels","css","7210mRELdx","url","Deferred","style","toDataURL","blob","forEach","bmp","18NSXnhd","109581xnVhdE","indexOf","pop","toCanvas","createTempContainer","width","extend"];return q=function(){return o},q()}const L=function(o,e){return N(this,null,function*(){const x=A;let a=this,c=globalThis.$[x(304)](),g=!![],u=10,v=(s,f)=>{const h=x,w=Math[h(268)](s/f*100);console[h(295)]("cur",s,"total",f),console[h(295)](h(241),w+"%")};if(this[x(300)][x(270)]){let s=globalThis.$[x(317)]({filter:t=>{const n=x;return t[n(297)]!="IMG"||t[n(297)]==n(280)&&([n(320),n(288),n(258),n(266),n(309),n(326),n(256)].includes(t[n(269)].split(".")[n(313)]()[n(271)]())||t[n(269)]!=t[n(287)]||t[n(269)][n(312)](n(289))>-1&&t[n(269)]!=t.baseURI||t[n(269)].indexOf(n(275))>-1)},backgroundColor:x(291)},e||{}),f=yield this.getHtml(o,e);e&&e[x(259)]!=null&&(g=e[x(259)]),e&&e[x(242)]!=null&&(v=e[x(242)]),e&&e[x(325)]!=null&&(u=e[x(325)]),globalThis.$(f)[x(301)](x(316),"")[x(301)](x(292),""),this[x(315)]();let h=this[x(276)]();this[x(265)](f,s),h[x(273)](f[0]);let w=h[x(294)](x(262))[x(270)];globalThis.$(f)[x(301)](x(245)),this.loadAllImages(f,function(){const t=x;try{let n=[],E=Math.ceil(w/u),W=w%u;const p=document[t(264)](t(254)),k=p[t(250)]("2d"),M=h.width()*globalThis[t(267)];for(let T=0;T<E;T++){k[t(327)](0,0,p.width,p.height);const O=T==E-1;let z=0,G=O?W:u;for(let _=0;_<G;_++){k[t(327)](0,0,p.width,p[t(292)]);const r=T*u+_,y=h[t(294)](t(262))[r];globalThis[t(296)][t(244)][t(279)](function(P){const m=t;K[m(314)](y,s)[m(284)](function(I){const l=m;let b=I[l(250)]("2d");b[l(246)]=![];let j=I[l(306)](l(318),s[l(323)]||.92),i=new Image;i[l(269)]=j,i.onload=function(){const d=l;_===0&&(p[d(316)]=M,p[d(292)]=i[d(292)]*G),z+=i.height,k[d(321)](i,0,z-i.height,M,i.height),v(r+1,w),P()}})})}globalThis[t(296)][t(244)][t(279)](function(_){const r=t;let y=s[r(253)]||r(318),P=s[r(322)]||r(303),m=s.quality||.8;if(g){let I=p[r(306)](y,m),l=new Image;l[r(269)]=I,l[r(319)]=function(){const b=r;n[b(249)]({url:I,start:T*u+1,end:T*u+G}),O&&(globalThis[b(296)][b(244)][b(285)](),a.removeTempContainer(),n[b(308)](j=>{const i=b;let d=document[i(264)]("a"),C=e.name||"download.jpg";C.indexOf(".")==-1&&(C+=i(299));let D=C[i(277)](".")[i(313)](),$=C[i(274)]("."+D,"")+"_"+j[i(247)]+"-"+j.end+"."+D;d[i(305)][i(252)]=i(260),d[i(324)]("download",$),d.setAttribute("href",j.url),document[i(248)][i(293)](d),d.click(),d.remove()})),_()};return}if(P==r(303)){n[r(249)](p[r(306)](y,m)),O&&(globalThis[r(296)][r(244)].clear(),a[r(255)](),c[r(261)](n)),_();return}P==r(307)&&p[r(263)](function(I){const l=r;n.push(I),O&&(globalThis[l(296)].queue.clear(),a[l(255)](),c.resolve(n)),_()},y,m)})}globalThis[t(296)][t(244)][t(283)]()}catch(n){console[t(251)]("toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): "),console[t(295)](n)}})}return c[x(281)]()})};function R(){var o=["10691648SshWqB","toImage","add toImage Api","47859RWiGWs","newPrintTemplate","0.3.0","380Zvmnqw","280257PVHSWQ","1238470IzGoiT","1036938rOqJaR","360OChzye","add toImage Api to PrintTemplate","201753Nwglds","206945BFAQaP","114GtnTYb"];return R=function(){return o},R()}function S(o,e){var x=R();return S=function(a,c){a=a-403;var g=x[a];return g},S(o,e)}(function(o,e){for(var x=S,a=o();[];)try{var c=parseInt(x(412))/1+-parseInt(x(413))/2+parseInt(x(408))/3*(-parseInt(x(411))/4)+parseInt(x(403))/5*(parseInt(x(404))/6)+-parseInt(x(414))/7+parseInt(x(405))/8+-parseInt(x(417))/9*(-parseInt(x(415))/10);if(c===e)break;a.push(a.shift())}catch(g){a.push(a.shift())}})(R,927212);function U(o){var e=S;return{name:e(407),description:e(407),hooks:[{hook:e(409),name:e(416),description:e(416),priority:1,run:({template:x,options:a})=>{var c=e;Object.defineProperty(x,c(406),{value:L,enumerable:![],writable:!![],configurable:!![]})}}],leastHiprintVersion:e(410)}}module.exports=U;
1
+ "use strict";var S=(c,e,x)=>new Promise((n,l)=>{var g=i=>{try{I(x.next(i))}catch(b){l(b)}},p=i=>{try{I(x.throw(i))}catch(b){l(b)}},I=i=>i.done?n(i.value):Promise.resolve(i.value).then(g,p);I((x=x.apply(c,e)).next())});const J=require("html-to-image");function N(c){if(c&&c.__esModule)return c;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const x in c)if(x!=="default"){const n=Object.getOwnPropertyDescriptor(c,x);Object.defineProperty(e,x,n.get?n:{enumerable:!0,get:()=>c[x]})}}return e.default=c,Object.freeze(e)}const $=N(J);(function(c,e){const x=C,n=c();for(;[];)try{if(-parseInt(x(171))/1+parseInt(x(153))/2+-parseInt(x(163))/3+parseInt(x(162))/4*(parseInt(x(209))/5)+parseInt(x(190))/6*(parseInt(x(136))/7)+parseInt(x(141))/8+-parseInt(x(180))/9===e)break;n.push(n.shift())}catch(l){n.push(n.shift())}})(A,126671);function C(c,e){const x=A();return C=function(n,l){return n=n-129,x[n]},C(c,e)}const V=function(c,e){return S(this,null,function*(){const x=C;let n=this,l=globalThis.$.Deferred(),g=!![],p=10,I=(i,b)=>{const u=C,w=Math.floor(i/b*100);console.log(u(137),i,u(159),b),console[u(131)](u(174),w+"%")};if(this[x(167)][x(173)]){let i=globalThis.$[x(191)]({filter:t=>{const a=x;return t.tagName!=a(145)||t[a(170)]==a(145)&&([a(139),a(204),a(146),a(152),a(185),a(156),"svg"].includes(t.src.split(".")[a(151)]().toLowerCase())||t[a(183)]!=t[a(188)]||t.src[a(140)](a(207))>-1&&t[a(183)]!=t[a(188)]||t[a(183)][a(140)](a(133))>-1)},backgroundColor:"#fff"},e||{}),b=yield this[x(142)](c,e);e&&e[x(192)]!=null&&(g=e[x(192)]),e&&e[x(157)]!=null&&(I=e.onProgress),e&&e[x(186)]!=null&&(p=e[x(186)]),globalThis.$(b)[x(198)](x(206),"")[x(198)](x(134),""),this.createTempContainer();let u=this[x(129)]();this[x(138)](b,i),u[x(160)](b[0]);let w=u[x(132)](x(130))[x(173)];globalThis.$(b).css(x(172)),this.loadAllImages(b,function(){const t=x;try{let a=[],U=Math.ceil(w/p),z=w%p;const d=document.createElement("canvas"),q=d.getContext("2d"),D=u[t(206)]()*i[t(189)];for(let v=0;v<U;v++){q.clearRect(0,0,d[t(206)],d.height);const P=v==U-1;let G=0,R=P?z:p;for(let h=0;h<R;h++){q[t(165)](0,0,d.width,d[t(134)]);const r=v*p+h,y=u.find(t(130))[r];globalThis.hinnn[t(197)][t(201)](function(M){const _=t;$[_(203)](y,i)[_(166)](function(m){const s=_;let T=m.getContext("2d");T[s(184)]=![];let j=m[s(169)](s(195),i[s(196)]||.92),o=new Image;o.src=j,o[s(193)]=function(){const f=s;h===0&&(d[f(206)]=D,d.height=o[f(134)]*R),G+=o[f(134)],q[f(194)](o,0,G-o[f(134)],D,o[f(134)]),I(r+1,w),M()}})})}globalThis[t(202)][t(197)][t(201)](function(h){const r=t;let y=i.type||r(195),M=i[r(161)]||r(149),_=i[r(196)]||.8;if(g){let m=d[r(169)](y,_),s=new Image;s.src=m,s.onload=function(){const T=r;a[T(177)]({url:m,start:v*p+1,end:v*p+R}),P&&(globalThis[T(202)].queue.clear(),n[T(176)](),a.forEach(j=>{const o=T;let f=document[o(208)]("a"),k=e[o(168)]||o(175);k.indexOf(".")==-1&&(k+=".jpg");let L=k[o(164)](".")[o(151)](),H=k.replace("."+L,"")+"_"+j[o(205)]+"-"+j[o(158)]+"."+L;f[o(179)][o(154)]=o(147),f[o(181)](o(135),H),f.setAttribute(o(143),j[o(149)]),document.body[o(155)](f),f[o(144)](),f.remove()})),h()};return}if(M==r(149)){a[r(177)](d[r(169)](y,_)),P&&(globalThis[r(202)][r(197)][r(182)](),n[r(176)](),l.resolve(a)),h();return}M==r(187)&&d[r(200)](function(m){const s=r;a[s(177)](m),P&&(globalThis[s(202)][s(197)][s(182)](),n[s(176)](),l.resolve(a)),h()},y,_)})}globalThis[t(202)].queue[t(178)]()}catch(a){console[t(148)](t(150)),console[t(131)](a)}})}return l[x(199)]()})};function A(){const c=["onload","drawImage","image/jpeg","quality","queue","css","promise","toBlob","add","hinnn","toCanvas","jpeg","start","width","http","createElement","17845aJMMFM","getTempContainer",".hiprint-printPanel .hiprint-printPaper","log","find","base64","height","download","7nvjuUG","cur","svg2canvas","jpg","indexOf","1382496wmAJVv","getHtml","href","click","IMG","png","none","error","url","toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): ","pop","gif","15804rtxQjn","display","appendChild","webp","onProgress","end","total","html","toType","148gHZyHi","291942JmkdKg","split","clearRect","then","printPanels","name","toDataURL","tagName","170103UJzqEe","position:fixed","length","toImage percent: ","download.jpg","removeTempContainer","push","run","style","987210lTTdIf","setAttribute","clear","src","imageSmoothingEnabled","bmp","limit","blob","baseURI","pixelRatio","1146066cwCEsY","extend","isDownload"];return A=function(){return c},A()}function E(c,e){var x=O();return E=function(n,l){n=n-313;var g=x[n];return g},E(c,e)}(function(c,e){for(var x=E,n=c();[];)try{var l=-parseInt(x(326))/1+-parseInt(x(318))/2*(parseInt(x(320))/3)+-parseInt(x(319))/4*(-parseInt(x(315))/5)+-parseInt(x(313))/6+-parseInt(x(324))/7+-parseInt(x(314))/8*(-parseInt(x(322))/9)+parseInt(x(327))/10;if(l===e)break;n.push(n.shift())}catch(g){n.push(n.shift())}})(O,130981);function O(){var c=["3505exymMF","0.3.0","defineProperty","10046WLLdyV","108zUjlNU","45GjvuCS","add toImage Api to PrintTemplate","532503BbhERj","newPrintTemplate","1158864uGPodT","add toImage Api","247842GfECTD","6807500veISyt","1189746zLKxMA","16TrvwwC"];return O=function(){return c},O()}function B(c){var e=E;return{name:e(325),description:e(325),hooks:[{hook:e(323),name:e(321),description:"add toImage Api to PrintTemplate",priority:1,run:({template:x,options:n})=>{var l=e;Object[l(317)](x,"toImage",{value:V,enumerable:![],writable:!![],configurable:!![]})}}],leastHiprintVersion:e(316)}}module.exports=B;
package/dist/index.mjs CHANGED
@@ -1,153 +1,153 @@
1
- var M = (s, t, x) => new Promise((a, l) => {
2
- var g = (i) => {
1
+ var J = (i, e, x) => new Promise((n, l) => {
2
+ var h = (r) => {
3
3
  try {
4
- v(x.next(i));
5
- } catch (f) {
6
- l(f);
4
+ I(x.next(r));
5
+ } catch (b) {
6
+ l(b);
7
7
  }
8
- }, h = (i) => {
8
+ }, p = (r) => {
9
9
  try {
10
- v(x.throw(i));
11
- } catch (f) {
12
- l(f);
10
+ I(x.throw(r));
11
+ } catch (b) {
12
+ l(b);
13
13
  }
14
- }, v = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(g, h);
15
- v((x = x.apply(s, t)).next());
14
+ }, I = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(h, p);
15
+ I((x = x.apply(i, e)).next());
16
16
  });
17
- import * as B from "html-to-image";
18
- function R(s, t) {
19
- const x = q();
20
- return R = function(a, l) {
21
- return a = a - 241, x[a];
22
- }, R(s, t);
23
- }
24
- (function(s, t) {
25
- const x = R, a = s();
17
+ import * as N from "html-to-image";
18
+ (function(i, e) {
19
+ const x = j, n = i();
26
20
  for (; []; )
27
21
  try {
28
- if (parseInt(x(311)) / 1 + parseInt(x(257)) / 2 + parseInt(x(282)) / 3 * (parseInt(x(290)) / 4) + parseInt(x(298)) / 5 * (-parseInt(x(310)) / 6) + parseInt(x(272)) / 7 + parseInt(x(243)) / 8 * (-parseInt(x(278)) / 9) + -parseInt(x(302)) / 10 * (parseInt(x(286)) / 11) === t)
22
+ if (-parseInt(x(171)) / 1 + parseInt(x(153)) / 2 + -parseInt(x(163)) / 3 + parseInt(x(162)) / 4 * (parseInt(x(209)) / 5) + parseInt(x(190)) / 6 * (parseInt(x(136)) / 7) + parseInt(x(141)) / 8 + -parseInt(x(180)) / 9 === e)
29
23
  break;
30
- a.push(a.shift());
24
+ n.push(n.shift());
31
25
  } catch (l) {
32
- a.push(a.shift());
26
+ n.push(n.shift());
33
27
  }
34
- })(q, 310597);
35
- function q() {
36
- const s = ["image/jpeg", "onload", "jpg", "drawImage", "toType", "quality", "setAttribute", "limit", "webp", "clearRect", "toImage percent: ", "onProgress", "2752520slsSzG", "queue", "position:fixed", "imageSmoothingEnabled", "start", "body", "push", "getContext", "error", "display", "type", "canvas", "removeTempContainer", "svg", "1211952pjWnxS", "png", "isDownload", "none", "resolve", ".hiprint-printPanel .hiprint-printPaper", "toBlob", "createElement", "svg2canvas", "gif", "devicePixelRatio", "floor", "src", "length", "toLowerCase", "3028354fANDZb", "html", "replace", "base64", "getTempContainer", "split", "9OKopgT", "add", "IMG", "promise", "423903ysAAGw", "run", "then", "clear", "7073jsgnKA", "baseURI", "jpeg", "http", "8EKXJCz", "#fff", "height", "appendChild", "find", "log", "hinnn", "tagName", "520860jTbyTh", ".jpg", "printPanels", "css", "7210mRELdx", "url", "Deferred", "style", "toDataURL", "blob", "forEach", "bmp", "18NSXnhd", "109581xnVhdE", "indexOf", "pop", "toCanvas", "createTempContainer", "width", "extend"];
37
- return q = function() {
38
- return s;
39
- }, q();
28
+ })(M, 126671);
29
+ function j(i, e) {
30
+ const x = M();
31
+ return j = function(n, l) {
32
+ return n = n - 129, x[n];
33
+ }, j(i, e);
40
34
  }
41
- const H = function(s, t) {
42
- return M(this, null, function* () {
43
- const x = R;
44
- let a = this, l = globalThis.$[x(304)](), g = !![], h = 10, v = (i, f) => {
45
- const u = x, w = Math[u(268)](i / f * 100);
46
- console[u(295)]("cur", i, "total", f), console[u(295)](u(241), w + "%");
35
+ const O = function(i, e) {
36
+ return J(this, null, function* () {
37
+ const x = j;
38
+ let n = this, l = globalThis.$.Deferred(), h = !![], p = 10, I = (r, b) => {
39
+ const u = j, w = Math.floor(r / b * 100);
40
+ console.log(u(137), r, u(159), b), console[u(131)](u(174), w + "%");
47
41
  };
48
- if (this[x(300)][x(270)]) {
49
- let i = globalThis.$[x(317)]({ filter: (e) => {
50
- const n = x;
51
- return e[n(297)] != "IMG" || e[n(297)] == n(280) && ([n(320), n(288), n(258), n(266), n(309), n(326), n(256)].includes(e[n(269)].split(".")[n(313)]()[n(271)]()) || e[n(269)] != e[n(287)] || e[n(269)][n(312)](n(289)) > -1 && e[n(269)] != e.baseURI || e[n(269)].indexOf(n(275)) > -1);
52
- }, backgroundColor: x(291) }, t || {}), f = yield this.getHtml(s, t);
53
- t && t[x(259)] != null && (g = t[x(259)]), t && t[x(242)] != null && (v = t[x(242)]), t && t[x(325)] != null && (h = t[x(325)]), globalThis.$(f)[x(301)](x(316), "")[x(301)](x(292), ""), this[x(315)]();
54
- let u = this[x(276)]();
55
- this[x(265)](f, i), u[x(273)](f[0]);
56
- let w = u[x(294)](x(262))[x(270)];
57
- globalThis.$(f)[x(301)](x(245)), this.loadAllImages(f, function() {
58
- const e = x;
42
+ if (this[x(167)][x(173)]) {
43
+ let r = globalThis.$[x(191)]({ filter: (t) => {
44
+ const a = x;
45
+ return t.tagName != a(145) || t[a(170)] == a(145) && ([a(139), a(204), a(146), a(152), a(185), a(156), "svg"].includes(t.src.split(".")[a(151)]().toLowerCase()) || t[a(183)] != t[a(188)] || t.src[a(140)](a(207)) > -1 && t[a(183)] != t[a(188)] || t[a(183)][a(140)](a(133)) > -1);
46
+ }, backgroundColor: "#fff" }, e || {}), b = yield this[x(142)](i, e);
47
+ e && e[x(192)] != null && (h = e[x(192)]), e && e[x(157)] != null && (I = e.onProgress), e && e[x(186)] != null && (p = e[x(186)]), globalThis.$(b)[x(198)](x(206), "")[x(198)](x(134), ""), this.createTempContainer();
48
+ let u = this[x(129)]();
49
+ this[x(138)](b, r), u[x(160)](b[0]);
50
+ let w = u[x(132)](x(130))[x(173)];
51
+ globalThis.$(b).css(x(172)), this.loadAllImages(b, function() {
52
+ const t = x;
59
53
  try {
60
- let n = [], S = Math.ceil(w / h), N = w % h;
61
- const p = document[e(264)](e(254)), k = p[e(250)]("2d"), W = u.width() * globalThis[e(267)];
62
- for (let T = 0; T < S; T++) {
63
- k[e(327)](0, 0, p.width, p.height);
64
- const A = T == S - 1;
65
- let z = 0, E = A ? N : h;
66
- for (let _ = 0; _ < E; _++) {
67
- k[e(327)](0, 0, p.width, p[e(292)]);
68
- const o = T * h + _, y = u[e(294)](e(262))[o];
69
- globalThis[e(296)][e(244)][e(279)](function(P) {
70
- const b = e;
71
- B[b(314)](y, i)[b(284)](function(I) {
72
- const c = b;
73
- let m = I[c(250)]("2d");
74
- m[c(246)] = ![];
75
- let C = I[c(306)](c(318), i[c(323)] || 0.92), r = new Image();
76
- r[c(269)] = C, r.onload = function() {
77
- const d = c;
78
- _ === 0 && (p[d(316)] = W, p[d(292)] = r[d(292)] * E), z += r.height, k[d(321)](r, 0, z - r.height, W, r.height), v(o + 1, w), P();
54
+ let a = [], G = Math.ceil(w / p), $ = w % p;
55
+ const d = document.createElement("canvas"), U = d.getContext("2d"), L = u[t(206)]() * r[t(189)];
56
+ for (let v = 0; v < G; v++) {
57
+ U.clearRect(0, 0, d[t(206)], d.height);
58
+ const P = v == G - 1;
59
+ let D = 0, q = P ? $ : p;
60
+ for (let g = 0; g < q; g++) {
61
+ U[t(165)](0, 0, d.width, d[t(134)]);
62
+ const o = v * p + g, y = u.find(t(130))[o];
63
+ globalThis.hinnn[t(197)][t(201)](function(A) {
64
+ const m = t;
65
+ N[m(203)](y, r)[m(166)](function(_) {
66
+ const s = m;
67
+ let T = _.getContext("2d");
68
+ T[s(184)] = ![];
69
+ let C = _[s(169)](s(195), r[s(196)] || 0.92), c = new Image();
70
+ c.src = C, c[s(193)] = function() {
71
+ const f = s;
72
+ g === 0 && (d[f(206)] = L, d.height = c[f(134)] * q), D += c[f(134)], U[f(194)](c, 0, D - c[f(134)], L, c[f(134)]), I(o + 1, w), A();
79
73
  };
80
74
  });
81
75
  });
82
76
  }
83
- globalThis[e(296)][e(244)][e(279)](function(_) {
84
- const o = e;
85
- let y = i[o(253)] || o(318), P = i[o(322)] || o(303), b = i.quality || 0.8;
86
- if (g) {
87
- let I = p[o(306)](y, b), c = new Image();
88
- c[o(269)] = I, c[o(319)] = function() {
89
- const m = o;
90
- n[m(249)]({ url: I, start: T * h + 1, end: T * h + E }), A && (globalThis[m(296)][m(244)][m(285)](), a.removeTempContainer(), n[m(308)]((C) => {
91
- const r = m;
92
- let d = document[r(264)]("a"), j = t.name || "download.jpg";
93
- j.indexOf(".") == -1 && (j += r(299));
94
- let D = j[r(277)](".")[r(313)](), $ = j[r(274)]("." + D, "") + "_" + C[r(247)] + "-" + C.end + "." + D;
95
- d[r(305)][r(252)] = r(260), d[r(324)]("download", $), d.setAttribute("href", C.url), document[r(248)][r(293)](d), d.click(), d.remove();
96
- })), _();
77
+ globalThis[t(202)][t(197)][t(201)](function(g) {
78
+ const o = t;
79
+ let y = r.type || o(195), A = r[o(161)] || o(149), m = r[o(196)] || 0.8;
80
+ if (h) {
81
+ let _ = d[o(169)](y, m), s = new Image();
82
+ s.src = _, s.onload = function() {
83
+ const T = o;
84
+ a[T(177)]({ url: _, start: v * p + 1, end: v * p + q }), P && (globalThis[T(202)].queue.clear(), n[T(176)](), a.forEach((C) => {
85
+ const c = T;
86
+ let f = document[c(208)]("a"), E = e[c(168)] || c(175);
87
+ E.indexOf(".") == -1 && (E += ".jpg");
88
+ let H = E[c(164)](".")[c(151)](), z = E.replace("." + H, "") + "_" + C[c(205)] + "-" + C[c(158)] + "." + H;
89
+ f[c(179)][c(154)] = c(147), f[c(181)](c(135), z), f.setAttribute(c(143), C[c(149)]), document.body[c(155)](f), f[c(144)](), f.remove();
90
+ })), g();
97
91
  };
98
92
  return;
99
93
  }
100
- if (P == o(303)) {
101
- n[o(249)](p[o(306)](y, b)), A && (globalThis[o(296)][o(244)].clear(), a[o(255)](), l[o(261)](n)), _();
94
+ if (A == o(149)) {
95
+ a[o(177)](d[o(169)](y, m)), P && (globalThis[o(202)][o(197)][o(182)](), n[o(176)](), l.resolve(a)), g();
102
96
  return;
103
97
  }
104
- P == o(307) && p[o(263)](function(I) {
105
- const c = o;
106
- n.push(I), A && (globalThis[c(296)].queue.clear(), a[c(255)](), l.resolve(n)), _();
107
- }, y, b);
98
+ A == o(187) && d[o(200)](function(_) {
99
+ const s = o;
100
+ a[s(177)](_), P && (globalThis[s(202)][s(197)][s(182)](), n[s(176)](), l.resolve(a)), g();
101
+ }, y, m);
108
102
  });
109
103
  }
110
- globalThis[e(296)][e(244)][e(283)]();
111
- } catch (n) {
112
- console[e(251)]("toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): "), console[e(295)](n);
104
+ globalThis[t(202)].queue[t(178)]();
105
+ } catch (a) {
106
+ console[t(148)](t(150)), console[t(131)](a);
113
107
  }
114
108
  });
115
109
  }
116
- return l[x(281)]();
110
+ return l[x(199)]();
117
111
  });
118
112
  };
119
- function G() {
120
- var s = ["10691648SshWqB", "toImage", "add toImage Api", "47859RWiGWs", "newPrintTemplate", "0.3.0", "380Zvmnqw", "280257PVHSWQ", "1238470IzGoiT", "1036938rOqJaR", "360OChzye", "add toImage Api to PrintTemplate", "201753Nwglds", "206945BFAQaP", "114GtnTYb"];
121
- return G = function() {
122
- return s;
123
- }, G();
113
+ function M() {
114
+ const i = ["onload", "drawImage", "image/jpeg", "quality", "queue", "css", "promise", "toBlob", "add", "hinnn", "toCanvas", "jpeg", "start", "width", "http", "createElement", "17845aJMMFM", "getTempContainer", ".hiprint-printPanel .hiprint-printPaper", "log", "find", "base64", "height", "download", "7nvjuUG", "cur", "svg2canvas", "jpg", "indexOf", "1382496wmAJVv", "getHtml", "href", "click", "IMG", "png", "none", "error", "url", "toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): ", "pop", "gif", "15804rtxQjn", "display", "appendChild", "webp", "onProgress", "end", "total", "html", "toType", "148gHZyHi", "291942JmkdKg", "split", "clearRect", "then", "printPanels", "name", "toDataURL", "tagName", "170103UJzqEe", "position:fixed", "length", "toImage percent: ", "download.jpg", "removeTempContainer", "push", "run", "style", "987210lTTdIf", "setAttribute", "clear", "src", "imageSmoothingEnabled", "bmp", "limit", "blob", "baseURI", "pixelRatio", "1146066cwCEsY", "extend", "isDownload"];
115
+ return M = function() {
116
+ return i;
117
+ }, M();
124
118
  }
125
- function O(s, t) {
126
- var x = G();
127
- return O = function(a, l) {
128
- a = a - 403;
129
- var g = x[a];
130
- return g;
131
- }, O(s, t);
119
+ function k(i, e) {
120
+ var x = R();
121
+ return k = function(n, l) {
122
+ n = n - 313;
123
+ var h = x[n];
124
+ return h;
125
+ }, k(i, e);
132
126
  }
133
- (function(s, t) {
134
- for (var x = O, a = s(); []; )
127
+ (function(i, e) {
128
+ for (var x = k, n = i(); []; )
135
129
  try {
136
- var l = parseInt(x(412)) / 1 + -parseInt(x(413)) / 2 + parseInt(x(408)) / 3 * (-parseInt(x(411)) / 4) + parseInt(x(403)) / 5 * (parseInt(x(404)) / 6) + -parseInt(x(414)) / 7 + parseInt(x(405)) / 8 + -parseInt(x(417)) / 9 * (-parseInt(x(415)) / 10);
137
- if (l === t)
130
+ var l = -parseInt(x(326)) / 1 + -parseInt(x(318)) / 2 * (parseInt(x(320)) / 3) + -parseInt(x(319)) / 4 * (-parseInt(x(315)) / 5) + -parseInt(x(313)) / 6 + -parseInt(x(324)) / 7 + -parseInt(x(314)) / 8 * (-parseInt(x(322)) / 9) + parseInt(x(327)) / 10;
131
+ if (l === e)
138
132
  break;
139
- a.push(a.shift());
140
- } catch (g) {
141
- a.push(a.shift());
133
+ n.push(n.shift());
134
+ } catch (h) {
135
+ n.push(n.shift());
142
136
  }
143
- })(G, 927212);
144
- function L(s) {
145
- var t = O;
146
- return { name: t(407), description: t(407), hooks: [{ hook: t(409), name: t(416), description: t(416), priority: 1, run: ({ template: x, options: a }) => {
147
- var l = t;
148
- Object.defineProperty(x, l(406), { value: H, enumerable: ![], writable: !![], configurable: !![] });
149
- } }], leastHiprintVersion: t(410) };
137
+ })(R, 130981);
138
+ function R() {
139
+ var i = ["3505exymMF", "0.3.0", "defineProperty", "10046WLLdyV", "108zUjlNU", "45GjvuCS", "add toImage Api to PrintTemplate", "532503BbhERj", "newPrintTemplate", "1158864uGPodT", "add toImage Api", "247842GfECTD", "6807500veISyt", "1189746zLKxMA", "16TrvwwC"];
140
+ return R = function() {
141
+ return i;
142
+ }, R();
143
+ }
144
+ function V(i) {
145
+ var e = k;
146
+ return { name: e(325), description: e(325), hooks: [{ hook: e(323), name: e(321), description: "add toImage Api to PrintTemplate", priority: 1, run: ({ template: x, options: n }) => {
147
+ var l = e;
148
+ Object[l(317)](x, "toImage", { value: O, enumerable: ![], writable: !![], configurable: !![] });
149
+ } }], leastHiprintVersion: e(316) };
150
150
  }
151
151
  export {
152
- L as default
152
+ V as default
153
153
  };
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(h,I){typeof exports=="object"&&typeof module!="undefined"?module.exports=I(require("html-to-image")):typeof define=="function"&&define.amd?define(["html-to-image"],I):(h=typeof globalThis!="undefined"?globalThis:h||self,h.pluginApiImage=I(h.htmlToImage))})(this,function(h){"use strict";var K=(h,I,j)=>new Promise((O,T)=>{var M=d=>{try{g(j.next(d))}catch(a){T(a)}},P=d=>{try{g(j.throw(d))}catch(a){T(a)}},g=d=>d.done?O(d.value):Promise.resolve(d.value).then(M,P);g((j=j.apply(h,I)).next())});function I(a){if(a&&a.__esModule)return a;const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(x,e,o.get?o:{enumerable:!0,get:()=>a[e]})}}return x.default=a,Object.freeze(x)}const j=I(h);function O(a,x){const e=T();return O=function(o,c){return o=o-241,e[o]},O(a,x)}(function(a,x){const e=O,o=a();for(;[];)try{if(parseInt(e(311))/1+parseInt(e(257))/2+parseInt(e(282))/3*(parseInt(e(290))/4)+parseInt(e(298))/5*(-parseInt(e(310))/6)+parseInt(e(272))/7+parseInt(e(243))/8*(-parseInt(e(278))/9)+-parseInt(e(302))/10*(parseInt(e(286))/11)===x)break;o.push(o.shift())}catch(c){o.push(o.shift())}})(T,310597);function T(){const a=["image/jpeg","onload","jpg","drawImage","toType","quality","setAttribute","limit","webp","clearRect","toImage percent: ","onProgress","2752520slsSzG","queue","position:fixed","imageSmoothingEnabled","start","body","push","getContext","error","display","type","canvas","removeTempContainer","svg","1211952pjWnxS","png","isDownload","none","resolve",".hiprint-printPanel .hiprint-printPaper","toBlob","createElement","svg2canvas","gif","devicePixelRatio","floor","src","length","toLowerCase","3028354fANDZb","html","replace","base64","getTempContainer","split","9OKopgT","add","IMG","promise","423903ysAAGw","run","then","clear","7073jsgnKA","baseURI","jpeg","http","8EKXJCz","#fff","height","appendChild","find","log","hinnn","tagName","520860jTbyTh",".jpg","printPanels","css","7210mRELdx","url","Deferred","style","toDataURL","blob","forEach","bmp","18NSXnhd","109581xnVhdE","indexOf","pop","toCanvas","createTempContainer","width","extend"];return T=function(){return a},T()}const M=function(a,x){return K(this,null,function*(){const e=O;let o=this,c=globalThis.$[e(304)](),A=!![],v=10,N=(p,m)=>{const u=e,q=Math[u(268)](p/m*100);console[u(295)]("cur",p,"total",m),console[u(295)](u(241),q+"%")};if(this[e(300)][e(270)]){let p=globalThis.$[e(317)]({filter:t=>{const n=e;return t[n(297)]!="IMG"||t[n(297)]==n(280)&&([n(320),n(288),n(258),n(266),n(309),n(326),n(256)].includes(t[n(269)].split(".")[n(313)]()[n(271)]())||t[n(269)]!=t[n(287)]||t[n(269)][n(312)](n(289))>-1&&t[n(269)]!=t.baseURI||t[n(269)].indexOf(n(275))>-1)},backgroundColor:e(291)},x||{}),m=yield this.getHtml(a,x);x&&x[e(259)]!=null&&(A=x[e(259)]),x&&x[e(242)]!=null&&(N=x[e(242)]),x&&x[e(325)]!=null&&(v=x[e(325)]),globalThis.$(m)[e(301)](e(316),"")[e(301)](e(292),""),this[e(315)]();let u=this[e(276)]();this[e(265)](m,p),u[e(273)](m[0]);let q=u[e(294)](e(262))[e(270)];globalThis.$(m)[e(301)](e(245)),this.loadAllImages(m,function(){const t=e;try{let n=[],W=Math.ceil(q/v),L=q%v;const f=document[t(264)](t(254)),z=f[t(250)]("2d"),$=u.width()*globalThis[t(267)];for(let C=0;C<W;C++){z[t(327)](0,0,f.width,f.height);const k=C==W-1;let B=0,D=k?L:v;for(let _=0;_<D;_++){z[t(327)](0,0,f.width,f[t(292)]);const i=C*v+_,R=u[t(294)](t(262))[i];globalThis[t(296)][t(244)][t(279)](function(G){const w=t;j[w(314)](R,p)[w(284)](function(y){const s=w;let b=y[s(250)]("2d");b[s(246)]=![];let S=y[s(306)](s(318),p[s(323)]||.92),r=new Image;r[s(269)]=S,r.onload=function(){const l=s;_===0&&(f[l(316)]=$,f[l(292)]=r[l(292)]*D),B+=r.height,z[l(321)](r,0,B-r.height,$,r.height),N(i+1,q),G()}})})}globalThis[t(296)][t(244)][t(279)](function(_){const i=t;let R=p[i(253)]||i(318),G=p[i(322)]||i(303),w=p.quality||.8;if(A){let y=f[i(306)](R,w),s=new Image;s[i(269)]=y,s[i(319)]=function(){const b=i;n[b(249)]({url:y,start:C*v+1,end:C*v+D}),k&&(globalThis[b(296)][b(244)][b(285)](),o.removeTempContainer(),n[b(308)](S=>{const r=b;let l=document[r(264)]("a"),E=x.name||"download.jpg";E.indexOf(".")==-1&&(E+=r(299));let H=E[r(277)](".")[r(313)](),U=E[r(274)]("."+H,"")+"_"+S[r(247)]+"-"+S.end+"."+H;l[r(305)][r(252)]=r(260),l[r(324)]("download",U),l.setAttribute("href",S.url),document[r(248)][r(293)](l),l.click(),l.remove()})),_()};return}if(G==i(303)){n[i(249)](f[i(306)](R,w)),k&&(globalThis[i(296)][i(244)].clear(),o[i(255)](),c[i(261)](n)),_();return}G==i(307)&&f[i(263)](function(y){const s=i;n.push(y),k&&(globalThis[s(296)].queue.clear(),o[s(255)](),c.resolve(n)),_()},R,w)})}globalThis[t(296)][t(244)][t(283)]()}catch(n){console[t(251)]("toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): "),console[t(295)](n)}})}return c[e(281)]()})};function P(){var a=["10691648SshWqB","toImage","add toImage Api","47859RWiGWs","newPrintTemplate","0.3.0","380Zvmnqw","280257PVHSWQ","1238470IzGoiT","1036938rOqJaR","360OChzye","add toImage Api to PrintTemplate","201753Nwglds","206945BFAQaP","114GtnTYb"];return P=function(){return a},P()}function g(a,x){var e=P();return g=function(o,c){o=o-403;var A=e[o];return A},g(a,x)}(function(a,x){for(var e=g,o=a();[];)try{var c=parseInt(e(412))/1+-parseInt(e(413))/2+parseInt(e(408))/3*(-parseInt(e(411))/4)+parseInt(e(403))/5*(parseInt(e(404))/6)+-parseInt(e(414))/7+parseInt(e(405))/8+-parseInt(e(417))/9*(-parseInt(e(415))/10);if(c===x)break;o.push(o.shift())}catch(A){o.push(o.shift())}})(P,927212);function d(a){var x=g;return{name:x(407),description:x(407),hooks:[{hook:x(409),name:x(416),description:x(416),priority:1,run:({template:e,options:o})=>{var c=x;Object.defineProperty(e,c(406),{value:M,enumerable:![],writable:!![],configurable:!![]})}}],leastHiprintVersion:x(410)}}return d});
1
+ (function(p,_){typeof exports=="object"&&typeof module!="undefined"?module.exports=_(require("html-to-image")):typeof define=="function"&&define.amd?define(["html-to-image"],_):(p=typeof globalThis!="undefined"?globalThis:p||self,p.pluginApiImage=_(p.htmlToImage))})(this,function(p){"use strict";var $=(p,_,w)=>new Promise((I,q)=>{var j=b=>{try{h(w.next(b))}catch(a){q(a)}},C=b=>{try{h(w.throw(b))}catch(a){q(a)}},h=b=>b.done?I(b.value):Promise.resolve(b.value).then(j,C);h((w=w.apply(p,_)).next())});function _(a){if(a&&a.__esModule)return a;const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(x,e,o.get?o:{enumerable:!0,get:()=>a[e]})}}return x.default=a,Object.freeze(x)}const w=_(p);(function(a,x){const e=I,o=a();for(;[];)try{if(-parseInt(e(171))/1+parseInt(e(153))/2+-parseInt(e(163))/3+parseInt(e(162))/4*(parseInt(e(209))/5)+parseInt(e(190))/6*(parseInt(e(136))/7)+parseInt(e(141))/8+-parseInt(e(180))/9===x)break;o.push(o.shift())}catch(l){o.push(o.shift())}})(j,126671);function I(a,x){const e=j();return I=function(o,l){return o=o-129,e[o]},I(a,x)}const q=function(a,x){return $(this,null,function*(){const e=I;let o=this,l=globalThis.$.Deferred(),P=!![],v=10,S=(f,g)=>{const u=I,k=Math.floor(f/g*100);console.log(u(137),f,u(159),g),console[u(131)](u(174),k+"%")};if(this[e(167)][e(173)]){let f=globalThis.$[e(191)]({filter:t=>{const n=e;return t.tagName!=n(145)||t[n(170)]==n(145)&&([n(139),n(204),n(146),n(152),n(185),n(156),"svg"].includes(t.src.split(".")[n(151)]().toLowerCase())||t[n(183)]!=t[n(188)]||t.src[n(140)](n(207))>-1&&t[n(183)]!=t[n(188)]||t[n(183)][n(140)](n(133))>-1)},backgroundColor:"#fff"},x||{}),g=yield this[e(142)](a,x);x&&x[e(192)]!=null&&(P=x[e(192)]),x&&x[e(157)]!=null&&(S=x.onProgress),x&&x[e(186)]!=null&&(v=x[e(186)]),globalThis.$(g)[e(198)](e(206),"")[e(198)](e(134),""),this.createTempContainer();let u=this[e(129)]();this[e(138)](g,f),u[e(160)](g[0]);let k=u[e(132)](e(130))[e(173)];globalThis.$(g).css(e(172)),this.loadAllImages(g,function(){const t=e;try{let n=[],z=Math.ceil(k/v),V=k%v;const d=document.createElement("canvas"),G=d.getContext("2d"),H=u[t(206)]()*f[t(189)];for(let M=0;M<z;M++){G.clearRect(0,0,d[t(206)],d.height);const R=M==z-1;let J=0,L=R?V:v;for(let m=0;m<L;m++){G[t(165)](0,0,d.width,d[t(134)]);const r=M*v+m,E=u.find(t(130))[r];globalThis.hinnn[t(197)][t(201)](function(U){const T=t;w[T(203)](E,f)[T(166)](function(y){const i=T;let A=y.getContext("2d");A[i(184)]=![];let O=y[i(169)](i(195),f[i(196)]||.92),c=new Image;c.src=O,c[i(193)]=function(){const s=i;m===0&&(d[s(206)]=H,d.height=c[s(134)]*L),J+=c[s(134)],G[s(194)](c,0,J-c[s(134)],H,c[s(134)]),S(r+1,k),U()}})})}globalThis[t(202)][t(197)][t(201)](function(m){const r=t;let E=f.type||r(195),U=f[r(161)]||r(149),T=f[r(196)]||.8;if(P){let y=d[r(169)](E,T),i=new Image;i.src=y,i.onload=function(){const A=r;n[A(177)]({url:y,start:M*v+1,end:M*v+L}),R&&(globalThis[A(202)].queue.clear(),o[A(176)](),n.forEach(O=>{const c=A;let s=document[c(208)]("a"),D=x[c(168)]||c(175);D.indexOf(".")==-1&&(D+=".jpg");let N=D[c(164)](".")[c(151)](),B=D.replace("."+N,"")+"_"+O[c(205)]+"-"+O[c(158)]+"."+N;s[c(179)][c(154)]=c(147),s[c(181)](c(135),B),s.setAttribute(c(143),O[c(149)]),document.body[c(155)](s),s[c(144)](),s.remove()})),m()};return}if(U==r(149)){n[r(177)](d[r(169)](E,T)),R&&(globalThis[r(202)][r(197)][r(182)](),o[r(176)](),l.resolve(n)),m();return}U==r(187)&&d[r(200)](function(y){const i=r;n[i(177)](y),R&&(globalThis[i(202)][i(197)][i(182)](),o[i(176)](),l.resolve(n)),m()},E,T)})}globalThis[t(202)].queue[t(178)]()}catch(n){console[t(148)](t(150)),console[t(131)](n)}})}return l[e(199)]()})};function j(){const a=["onload","drawImage","image/jpeg","quality","queue","css","promise","toBlob","add","hinnn","toCanvas","jpeg","start","width","http","createElement","17845aJMMFM","getTempContainer",".hiprint-printPanel .hiprint-printPaper","log","find","base64","height","download","7nvjuUG","cur","svg2canvas","jpg","indexOf","1382496wmAJVv","getHtml","href","click","IMG","png","none","error","url","toImage \u5931\u8D25(\u53EF\u80FD\u60A8\u7684\u56FE\u7247\u8D44\u6E90\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D): ","pop","gif","15804rtxQjn","display","appendChild","webp","onProgress","end","total","html","toType","148gHZyHi","291942JmkdKg","split","clearRect","then","printPanels","name","toDataURL","tagName","170103UJzqEe","position:fixed","length","toImage percent: ","download.jpg","removeTempContainer","push","run","style","987210lTTdIf","setAttribute","clear","src","imageSmoothingEnabled","bmp","limit","blob","baseURI","pixelRatio","1146066cwCEsY","extend","isDownload"];return j=function(){return a},j()}function C(a,x){var e=h();return C=function(o,l){o=o-313;var P=e[o];return P},C(a,x)}(function(a,x){for(var e=C,o=a();[];)try{var l=-parseInt(e(326))/1+-parseInt(e(318))/2*(parseInt(e(320))/3)+-parseInt(e(319))/4*(-parseInt(e(315))/5)+-parseInt(e(313))/6+-parseInt(e(324))/7+-parseInt(e(314))/8*(-parseInt(e(322))/9)+parseInt(e(327))/10;if(l===x)break;o.push(o.shift())}catch(P){o.push(o.shift())}})(h,130981);function h(){var a=["3505exymMF","0.3.0","defineProperty","10046WLLdyV","108zUjlNU","45GjvuCS","add toImage Api to PrintTemplate","532503BbhERj","newPrintTemplate","1158864uGPodT","add toImage Api","247842GfECTD","6807500veISyt","1189746zLKxMA","16TrvwwC"];return h=function(){return a},h()}function b(a){var x=C;return{name:x(325),description:x(325),hooks:[{hook:x(323),name:x(321),description:"add toImage Api to PrintTemplate",priority:1,run:({template:e,options:o})=>{var l=x;Object[l(317)](e,"toImage",{value:q,enumerable:![],writable:!![],configurable:!![]})}}],leastHiprintVersion:x(316)}}return b});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sv-print/plugin-api-image",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "add image api to print template",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",