You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
18 KiB
13 lines
18 KiB
|
4 months ago
|
/*!
|
||
|
|
* @antv/g-plugin-image-loader
|
||
|
|
* @description A G plugin for loading image
|
||
|
|
* @version 2.1.26
|
||
|
|
* @date 7/30/2025, 1:35:52 PM
|
||
|
|
* @author AntVis
|
||
|
|
* @docs https://g.antv.antgroup.com/
|
||
|
|
*/
|
||
|
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.ImageLoader={}),e.window.G)}(this,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function o(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function f(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){this.v=e,this.k=t}function h(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}h=function(e,t,n,r){function o(t,n){h(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},h(e,t,n,r)}function p(){
|
||
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||
|
|
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=Object.create((r&&r.prototype instanceof u?r:u).prototype);return h(c,"_invoke",function(n,r,i){var o,u,c,f=0,l=i||[],s=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,u=0,c=e,h.n=n,a}};function p(n,r){for(u=n,c=r,t=0;!s&&f&&!i&&l.length>t;t++){var i,o=l[t],p=h.p,v=o[2];n>3?(i=v===r)&&(c=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):p>=o[0]&&((i=2>n&&o[1]>p)?(u=0,h.v=r,h.n=o[1]):v>p&&(i=3>n||o[0]>r||r>v)&&(o[4]=n,o[5]=r,h.n=v,u=0))}if(i||n>1)return a;throw s=!0,r}return function(i,l,v){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&p(l,v),u=l,c=v;(t=2>u?e:c)||!s;){o||(u?3>u?(u>1&&(h.n=-1),p(u,c)):h.n=c:h.v=c);try{if(f=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,2>u&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),2>u&&(c=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(s=0>h.n)?c:n.call(r,h))!==a)break}catch(t){o=e,u=1,c=t}finally{f=1}}return{value:t,done:s}}}(n,i,o),!0),c}var a={};function u(){}function c(){}function f(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(h(t={},r,function(){return this}),t),s=f.prototype=u.prototype=Object.create(l);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,h(e,i,"GeneratorFunction")),e.prototype=Object.create(s),e}return c.prototype=f,h(s,"constructor",f),h(f,"constructor",c),c.displayName="GeneratorFunction",h(f,i,"GeneratorFunction"),h(s),h(s,i,"Generator"),h(s,r,function(){return this}),h(s,"toString",function(){return"[object Generator]"}),(p=function(){return{w:o,m:v}})()}function v(e,t){function n(r,i,o,a){try{var u=e[r](i),c=u.value;return c instanceof s?t.resolve(c.v).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return n("throw",e,o,a)})}catch(e){a(e)}}var r;this.next||(h(v.prototype),h(v.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),h(this,"_invoke",function(e,i,o){function a(){return new t(function(t,r){n(e,o,t,r)})}return r=r?r.then(a,a):a()},!0)}function d(e,t,n,r,i){return new v(p().w(e,t,n,r),i||Promise)}function y(e,t,n,r,i){var o=d(e,t,n,r,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function g(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function m(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")}function b(){var e=p(),t=e.m(b),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,m(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(b=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new s(e,t)},AsyncIterator:v,async:function(e,t,n,i,a){return(r(t)?d:y)(o(e),t,n,i,a)},keys:g,values:m}})()}function w(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){var n=Object.keys(e);if(Object.getOwnProp
|
||
|
|
//# sourceMappingURL=index.umd.min.js.map
|