@templmf/temp-solf-lmf 0.0.94 → 0.0.96
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/new/@antv/component@2.1.11/es2022/component.mjs +15 -0
- package/new/@antv/component@2.1.11/es2022/esm/animation.mjs +3 -0
- package/new/@antv/component@2.1.11/es2022/esm/core.mjs +3 -0
- package/new/@antv/component@2.1.11/es2022/esm/ui/axis/utils.mjs +3 -0
- package/new/@antv/component@2.1.11/es2022/esm/util/layout.mjs +3 -0
- package/new/@antv/g-canvas@2.0.0/es2022/g-canvas.mjs +20 -0
- package/new/@antv/g-lite@2.7.0/es2022/g-lite.mjs +22 -0
- package/new/@antv/g-math@3.1.0/es2022/g-math.mjs +17 -0
- package/new/@antv/g-plugin-dragndrop@2.1.1/es2022/g-plugin-dragndrop.mjs +18 -0
- package/new/@antv/g@6.3.1/es2022/g.mjs +24 -0
- package/new/bubblesets-js@^2.3.4 +3 -0
- package/new/html2canvas@1.4.1/es2022/html2canvas.mjs +30 -0
- package/new/html2canvas@v1.4.1 +3 -0
- package/new/svg-path-parser@1.1.0/es2022/svg-path-parser.mjs +4 -0
- package/new/svg-path-parser@^1.1.0 +3 -0
- package/new/tslib@2.8.1/es2022/tslib.mjs +3 -0
- package/new/tslib@^2.0.0 +3 -0
- package/package.json +1 -1
- package/@antv/algorithm@0.1.26/es2022/algorithm.mjs +0 -3
- package/@antv/component@2.1.7/es2022/component.mjs +0 -15
- package/@antv/event-emitter@0.1.3/es2022/event-emitter.mjs +0 -3
- package/@antv/g-canvas@2.0.48/es2022/g-canvas.mjs +0 -18
- package/@antv/g-plugin-dragndrop@2.0.38/es2022/g-plugin-dragndrop.mjs +0 -18
- package/@antv/g6 +0 -13
- package/@antv/g6@5.1.1/es2022/g6.mjs +0 -125
- package/@antv/g@6.1.28/es2022/g.mjs +0 -15
- package/@antv/graphlib@2.0.4/es2022/graphlib.mjs +0 -3
- package/@antv/hierarchy@0.7.1/es2022/hierarchy.mjs +0 -3
- package/@antv/layout@2.0.0/es2022/layout.mjs +0 -20
- package/@antv/util@3.3.11/es2022/util.mjs +0 -3
- package/bubblesets-js@2.3.4/es2022/bubblesets-js.mjs +0 -4
- package/echarts +0 -8
- package/echarts@6.0.0/es2022/echarts.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/bar/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/bar/installPictorialBar.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/boxplot/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/candlestick/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/chord/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/custom/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/effectScatter/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/funnel/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/gauge/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/graph/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/heatmap/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/line/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/lines/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/map/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/parallel/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/pie/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/radar/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/sankey/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/scatter/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/sunburst/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/themeRiver/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/tree/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/chart/treemap/install.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/export/charts.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/export/components.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/export/core.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/export/features.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/export/renderers.mjs +0 -3
- package/echarts@6.0.0/es2022/lib/extension.mjs +0 -3
- package/runtime-core.mjs +0 -29
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* esm.sh - @antv/g-canvas@2.0.48 */
|
|
2
|
-
function x(e){"@babel/helpers - typeof";return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(e)}function U(e,t){if(x(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(x(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H(e){var t=U(e,"string");return x(t)=="symbol"?t:t+""}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H(r.key),r)}}function D(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(e)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B=function(){return!!e})()}function q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(e,t){if(t&&(x(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}function F(e,t,n){return t=R(t),J(e,B()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},T(e,t)}function z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}import{setDOMSize as lt,RenderReason as mt,AbstractRendererPlugin as yt,AbstractRenderer as vt}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";import*as tt from"/@antv/g-plugin-canvas-path-generator@2.1.22/es2022/g-plugin-canvas-path-generator.mjs";import*as et from"/@antv/g-plugin-canvas-picker@2.1.27/es2022/g-plugin-canvas-picker.mjs";import*as rt from"/@antv/g-plugin-canvas-renderer@2.3.3/es2022/g-plugin-canvas-renderer.mjs";import*as nt from"/@antv/g-plugin-dom-interaction@2.1.27/es2022/g-plugin-dom-interaction.mjs";import*as ot from"/@antv/g-plugin-html-renderer@2.1.27/es2022/g-plugin-html-renderer.mjs";import*as it from"/@antv/g-plugin-image-loader@2.1.26/es2022/g-plugin-image-loader.mjs";function A(e,t){this.v=e,this.k=t}function m(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}m=function(c,o,u,a){function f(p,g){m(c,p,function(y){return this._invoke(p,g,y)})}o?i?i(c,o,{value:u,enumerable:!a,configurable:!a,writable:!a}):c[o]=u:(f("next",0),f("throw",1),f("return",2))},m(e,t,n,r)}function S(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(y,I,at,ut){var ct=I&&I.prototype instanceof o?I:o,K=Object.create(ct.prototype);return m(K,"_invoke",function(st,ft,pt){var C,l,v,$=0,M=pt||[],w=!1,_={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(h,P){return C=h,l=0,v=e,_.n=P,c}};function k(b,h){for(l=b,v=h,t=0;!w&&$&&!P&&t<M.length;t++){var P,d=M[t],L=_.p,G=d[2];b>3?(P=G===h)&&(v=d[(l=d[4])?5:(l=3,3)],d[4]=d[5]=e):d[0]<=L&&((P=b<2&&L<d[1])?(l=0,_.v=h,_.n=d[1]):L<G&&(P=b<3||d[0]>h||h>G)&&(d[4]=b,d[5]=h,_.n=G,l=0))}if(P||b>1)return c;throw w=!0,h}return function(b,h,P){if($>1)throw TypeError("Generator is already running");for(w&&h===1&&k(h,P),l=h,v=P;(t=l<2?e:v)||!w;){C||(l?l<3?(l>1&&(_.n=-1),k(l,v)):_.n=v:_.v=v);try{if($=2,C){if(l||(b="next"),t=C[b]){if(!(t=t.call(C,v)))throw TypeError("iterator result is not an object");if(!t.done)return t;v=t.value,l<2&&(l=0)}else l===1&&(t=C.return)&&t.call(C),l<2&&(v=TypeError("The iterator does not provide a '"+b+"' method"),l=1);C=e}else if((t=(w=_.n<0)?v:st.call(ft,_))!==c)break}catch(d){C=e,l=1,v=d}finally{$=1}}return{value:t,done:w}}}(y,at,ut),!0),K}var c={};function o(){}function u(){}function a(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(m(t={},r,function(){return this}),t),p=a.prototype=o.prototype=Object.create(f);function g(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,a):(y.__proto__=a,m(y,i,"GeneratorFunction")),y.prototype=Object.create(p),y}return u.prototype=a,m(p,"constructor",a),m(a,"constructor",u),u.displayName="GeneratorFunction",m(a,i,"GeneratorFunction"),m(p),m(p,i,"Generator"),m(p,r,function(){return this}),m(p,"toString",function(){return"[object Generator]"}),(S=function(){return{w:s,m:g}})()}function O(e,t){function n(i,s,c,o){try{var u=e[i](s),a=u.value;return a instanceof A?t.resolve(a.v).then(function(f){n("next",f,c,o)},function(f){n("throw",f,c,o)}):t.resolve(a).then(function(f){u.value=f,c(u)},function(f){return n("throw",f,c,o)})}catch(f){o(f)}}var r;this.next||(m(O.prototype),m(O.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),m(this,"_invoke",function(i,s,c){function o(){return new t(function(u,a){n(i,c,u,a)})}return r=r?r.then(o,o):o()},!0)}function N(e,t,n,r,i){return new O(S().w(e,t,n,r),i||Promise)}function Q(e,t,n,r,i){var s=N(e,t,n,r,i);return s.next().then(function(c){return c.done?c.value:s.next()})}function W(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in t)return i.value=r,i.done=!1,i;return i.done=!0,i}}function Y(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")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(x(e)+" is not iterable")}function j(){"use strict";var e=S(),t=e.m(j),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(c){var o=typeof c=="function"&&c.constructor;return!!o&&(o===n||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(c){var o,u;return function(a){o||(o={stop:function(){return u(a.a,2)},catch:function(){return a.v},abrupt:function(p,g){return u(a.a,i[p],g)},delegateYield:function(p,g,y){return o.resultName=g,u(a.d,Y(p),y)},finish:function(p){return u(a.f,p)}},u=function(p,g,y){a.p=o.prev,a.n=o.next;try{return p(g,y)}finally{o.next=a.n}}),o.resultName&&(o[o.resultName]=a.v,o.resultName=void 0),o.sent=a.v,o.next=a.n;try{return c.call(this,o)}finally{a.p=o.prev,a.n=o.next}}}return(j=function(){return{wrap:function(u,a,f,p){return e.w(s(u),a,f,p&&p.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(u,a){return new A(u,a)},AsyncIterator:O,async:function(u,a,f,p,g){return(r(a)?N:Q)(s(u),a,f,p,g)},keys:W,values:Y}})()}function X(e,t,n,r,i,s,c){try{var o=e[s](c),u=o.value}catch(a){return void n(a)}o.done?t(u):Promise.resolve(u).then(r,i)}function Z(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function c(u){X(s,r,i,c,o,"next",u)}function o(u){X(s,r,i,c,o,"throw",u)}c(void 0)})}}import{isString as ht}from"/@antv/util@^3.3.5?target=es2022";var dt=function(){function e(t){E(this,e),this.renderingContext=t.renderingContext,this.canvasConfig=t.config}return D(e,[{key:"init",value:function(){var n=this.canvasConfig,r=n.container,i=n.canvas;if(i)this.$canvas=i,r&&i.parentElement!==r&&r.appendChild(i),this.$container=i.parentElement,this.canvasConfig.container=this.$container;else if(r&&(this.$container=ht(r)?document.getElementById(r):r,this.$container)){var s=document.createElement("canvas");this.$container.appendChild(s),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=s}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(n,r){var i=this.canvasConfig.devicePixelRatio;this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*n,this.$canvas.height=this.dpr*r,lt(this.$canvas,n,r)),this.renderingContext.renderReasons.add(mt.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(n){this.$container&&this.$container.style&&(this.$container.style.cursor=n)}},{key:"toDataURL",value:function(){var t=Z(j().mark(function r(){var i,s,c,o=arguments;return j().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=o.length>0&&o[0]!==void 0?o[0]:{},s=i.type,c=i.encoderOptions,u.abrupt("return",this.context.canvas.toDataURL(s,c));case 1:case"end":return u.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}])}(),gt=function(e){function t(){var n;E(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=F(this,t,[].concat(i)),n.name="canvas-context-register",n}return z(t,e),D(t,[{key:"init",value:function(){this.context.ContextService=dt}},{key:"destroy",value:function(){delete this.context.ContextService}}])}(yt),be=function(e){function t(n){var r;return E(this,t),r=F(this,t,[n]),r.registerPlugin(new gt),r.registerPlugin(new it.Plugin),r.registerPlugin(new tt.Plugin),r.registerPlugin(new rt.Plugin),r.registerPlugin(new nt.Plugin),r.registerPlugin(new et.Plugin),r.registerPlugin(new ot.Plugin),r}return z(t,e),D(t)}(vt);export{tt as CanvasPathGenerator,et as CanvasPicker,rt as CanvasRenderer,nt as DomInteraction,ot as HTMLRenderer,it as ImageLoader,be as Renderer};
|
|
3
|
-
/*! Bundled license information:
|
|
4
|
-
|
|
5
|
-
@babel/runtime/helpers/esm/regenerator.js:
|
|
6
|
-
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
7
|
-
|
|
8
|
-
@antv/g-canvas/dist/index.esm.js:
|
|
9
|
-
(*!
|
|
10
|
-
* @antv/g-canvas
|
|
11
|
-
* @description A renderer implemented by Canvas 2D API
|
|
12
|
-
* @version 2.0.48
|
|
13
|
-
* @date 7/30/2025, 1:38:18 PM
|
|
14
|
-
* @author AntVis
|
|
15
|
-
* @docs https://g.antv.antgroup.com/
|
|
16
|
-
*)
|
|
17
|
-
*/
|
|
18
|
-
//# sourceMappingURL=g-canvas.mjs.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* esm.sh - @antv/g-plugin-dragndrop@2.0.38 */
|
|
2
|
-
function x(r){"@babel/helpers - typeof";return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(r)}function W(r,t){if(x(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t||"default");if(x(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function B(r){var t=W(r,"string");return x(t)=="symbol"?t:t+""}function Z(r,t,e){return(t=B(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function $(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),e.push.apply(e,n)}return e}function U(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?$(Object(e),!0).forEach(function(n){Z(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):$(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function M(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,B(n.key),n)}}function H(r,t,e){return t&&tt(r.prototype,t),e&&tt(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function D(r){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(r)}function J(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J=function(){return!!r})()}function rt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function et(r,t){if(t&&(x(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rt(r)}function nt(r,t,e){return t=D(t),et(r,J()?Reflect.construct(t,e||[],D(r).constructor):t.apply(r,e))}function K(r,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},K(r,t)}function ot(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&K(r,t)}import{AbstractRendererPlugin as st}from"/@antv/g-lite@2.3.2/es2022/g-lite.mjs";function L(r,t){this.v=r,this.k=t}function y(r,t,e,n){var c=Object.defineProperty;try{c({},"",{})}catch{c=0}y=function(u,o,f,a){function s(p,b){y(u,p,function(m){return this._invoke(p,b,m)})}o?c?c(u,o,{value:f,enumerable:!a,configurable:!a,writable:!a}):u[o]=f:(s("next",0),s("throw",1),s("return",2))},y(r,t,e,n)}function N(){var r,t,e=typeof Symbol=="function"?Symbol:{},n=e.iterator||"@@iterator",c=e.toStringTag||"@@toStringTag";function d(m,E,V,z){var O=E&&E.prototype instanceof o?E:o,T=Object.create(O.prototype);return y(T,"_invoke",function(C,Y,F){var v,i,g,k=0,G=F||[],j=!1,h={p:0,n:0,v:r,a:_,f:_.bind(r,4),d:function(w,S){return v=w,i=0,g=r,h.n=S,u}};function _(l,w){for(i=l,g=w,t=0;!j&&k&&!S&&t<G.length;t++){var S,P=G[t],q=h.p,I=P[2];l>3?(S=I===w)&&(g=P[(i=P[4])?5:(i=3,3)],P[4]=P[5]=r):P[0]<=q&&((S=l<2&&q<P[1])?(i=0,h.v=w,h.n=P[1]):q<I&&(S=l<3||P[0]>w||w>I)&&(P[4]=l,P[5]=w,h.n=I,i=0))}if(S||l>1)return u;throw j=!0,w}return function(l,w,S){if(k>1)throw TypeError("Generator is already running");for(j&&w===1&&_(w,S),i=w,g=S;(t=i<2?r:g)||!j;){v||(i?i<3?(i>1&&(h.n=-1),_(i,g)):h.n=g:h.v=g);try{if(k=2,v){if(i||(l="next"),t=v[l]){if(!(t=t.call(v,g)))throw TypeError("iterator result is not an object");if(!t.done)return t;g=t.value,i<2&&(i=0)}else i===1&&(t=v.return)&&t.call(v),i<2&&(g=TypeError("The iterator does not provide a '"+l+"' method"),i=1);v=r}else if((t=(j=h.n<0)?g:C.call(Y,h))!==u)break}catch(P){v=r,i=1,g=P}finally{k=1}}return{value:t,done:j}}}(m,V,z),!0),T}var u={};function o(){}function f(){}function a(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(y(t={},n,function(){return this}),t),p=a.prototype=o.prototype=Object.create(s);function b(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,a):(m.__proto__=a,y(m,c,"GeneratorFunction")),m.prototype=Object.create(p),m}return f.prototype=a,y(p,"constructor",a),y(a,"constructor",f),f.displayName="GeneratorFunction",y(a,c,"GeneratorFunction"),y(p),y(p,c,"Generator"),y(p,n,function(){return this}),y(p,"toString",function(){return"[object Generator]"}),(N=function(){return{w:d,m:b}})()}function R(r,t){function e(c,d,u,o){try{var f=r[c](d),a=f.value;return a instanceof L?t.resolve(a.v).then(function(s){e("next",s,u,o)},function(s){e("throw",s,u,o)}):t.resolve(a).then(function(s){f.value=s,u(f)},function(s){return e("throw",s,u,o)})}catch(s){o(s)}}var n;this.next||(y(R.prototype),y(R.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),y(this,"_invoke",function(c,d,u){function o(){return new t(function(f,a){e(c,u,f,a)})}return n=n?n.then(o,o):o()},!0)}function X(r,t,e,n,c){return new R(N().w(r,t,e,n),c||Promise)}function it(r,t,e,n,c){var d=X(r,t,e,n,c);return d.next().then(function(u){return u.done?u.value:d.next()})}function at(r){var t=Object(r),e=[];for(var n in t)e.unshift(n);return function c(){for(;e.length;)if((n=e.pop())in t)return c.value=n,c.done=!1,c;return c.done=!0,c}}function Q(r){if(r!=null){var t=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],e=0;if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}}}throw new TypeError(x(r)+" is not iterable")}function A(){"use strict";var r=N(),t=r.m(A),e=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(u){var o=typeof u=="function"&&u.constructor;return!!o&&(o===e||(o.displayName||o.name)==="GeneratorFunction")}var c={throw:1,return:2,break:3,continue:3};function d(u){var o,f;return function(a){o||(o={stop:function(){return f(a.a,2)},catch:function(){return a.v},abrupt:function(p,b){return f(a.a,c[p],b)},delegateYield:function(p,b,m){return o.resultName=b,f(a.d,Q(p),m)},finish:function(p){return f(a.f,p)}},f=function(p,b,m){a.p=o.prev,a.n=o.next;try{return p(b,m)}finally{o.next=a.n}}),o.resultName&&(o[o.resultName]=a.v,o.resultName=void 0),o.sent=a.v,o.next=a.n;try{return u.call(this,o)}finally{a.p=o.prev,a.n=o.next}}}return(A=function(){return{wrap:function(f,a,s,p){return r.w(d(f),a,s,p&&p.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(f,a){return new L(f,a)},AsyncIterator:R,async:function(f,a,s,p,b){return(n(a)?X:it)(d(f),a,s,p,b)},keys:at,values:Q}})()}function ut(r,t,e,n,c,d,u){try{var o=r[d](u),f=o.value}catch(a){return void e(a)}o.done?t(f):Promise.resolve(f).then(n,c)}function ct(r){return function(){var t=this,e=arguments;return new Promise(function(n,c){var d=r.apply(t,e);function u(f){ut(d,n,c,u,o,"next",f)}function o(f){ut(d,n,c,u,o,"throw",f)}u(void 0)})}}import{distanceSquareRoot as pt}from"/@antv/util@^3.3.5?target=es2022";var ft=function(){function r(t){M(this,r),this.dragndropPluginOptions=t}return H(r,[{key:"apply",value:function(e){var n=this,c=e.renderingService,d=e.renderingContext,u=d.root.ownerDocument,o=u.defaultView,f=function(s){var p=s.target,b=p===u,m=b&&n.dragndropPluginOptions.isDocumentDraggable?u:p.closest&&p.closest("[draggable=true]");if(m){var E=!1,V=s.timeStamp,z=[s.clientX,s.clientY],O=null,T=[s.clientX,s.clientY],C=function(){var F=ct(A().mark(function v(i){var g,k,G,j,h,_;return A().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(E){l.next=2;break}if(g=i.timeStamp-V,k=pt([i.clientX,i.clientY],z),!(g<=n.dragndropPluginOptions.dragstartTimeThreshold||k<=n.dragndropPluginOptions.dragstartDistanceThreshold)){l.next=1;break}return l.abrupt("return");case 1:i.type="dragstart",m.dispatchEvent(i),E=!0;case 2:if(i.type="drag",i.dx=i.clientX-T[0],i.dy=i.clientY-T[1],m.dispatchEvent(i),T=[i.clientX,i.clientY],b){l.next=4;break}return G=n.dragndropPluginOptions.overlap==="pointer"?[i.canvasX,i.canvasY]:p.getBounds().center,l.next=3,u.elementsFromPoint(G[0],G[1]);case 3:j=l.sent,h=j[j.indexOf(p)+1],_=h?.closest("[droppable=true]")||(n.dragndropPluginOptions.isDocumentDroppable?u:null),O!==_&&(O&&(i.type="dragleave",i.target=O,O.dispatchEvent(i)),_&&(i.type="dragenter",i.target=_,_.dispatchEvent(i)),O=_,O&&(i.type="dragover",i.target=O,O.dispatchEvent(i)));case 4:case"end":return l.stop()}},v)}));return function(i){return F.apply(this,arguments)}}();o.addEventListener("pointermove",C);var Y=function(v){if(E){v.detail={preventClick:!0};var i=v.clone();O&&(i.type="drop",i.target=O,O.dispatchEvent(i)),i.type="dragend",m.dispatchEvent(i),E=!1}o.removeEventListener("pointermove",C)};p.addEventListener("pointerup",Y,{once:!0}),p.addEventListener("pointerupoutside",Y,{once:!0})}};c.hooks.init.tap(r.tag,function(){o.addEventListener("pointerdown",f)}),c.hooks.destroy.tap(r.tag,function(){o.removeEventListener("pointerdown",f)})}}])}();ft.tag="Dragndrop";var vr=function(r){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return M(this,t),e=nt(this,t),e.name="dragndrop",e.options=n,e}return ot(t,r),H(t,[{key:"init",value:function(){this.addRenderingPlugin(new ft(U({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)}}])}(st);export{vr as Plugin};
|
|
3
|
-
/*! Bundled license information:
|
|
4
|
-
|
|
5
|
-
@babel/runtime/helpers/esm/regenerator.js:
|
|
6
|
-
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
7
|
-
|
|
8
|
-
@antv/g-plugin-dragndrop/dist/index.esm.js:
|
|
9
|
-
(*!
|
|
10
|
-
* @antv/g-plugin-dragndrop
|
|
11
|
-
* @description A G plugin for Drag n Drop implemented with PointerEvents
|
|
12
|
-
* @version 2.0.38
|
|
13
|
-
* @date 7/30/2025, 1:35:41 PM
|
|
14
|
-
* @author AntVis
|
|
15
|
-
* @docs https://g.antv.antgroup.com/
|
|
16
|
-
*)
|
|
17
|
-
*/
|
|
18
|
-
//# sourceMappingURL=g-plugin-dragndrop.mjs.map
|
package/@antv/g6
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* esm.sh - @antv/g6@5.1.1 */
|
|
2
|
-
import "/@antv/algorithm@^0.1.26?target=es2022";
|
|
3
|
-
import "/@antv/component@^2.1.7?target=es2022";
|
|
4
|
-
import "/@antv/event-emitter@^0.1.3?target=es2022";
|
|
5
|
-
import "/@antv/g-canvas@^2.0.48?target=es2022";
|
|
6
|
-
import "/@antv/g-plugin-dragndrop@^2.0.38?target=es2022";
|
|
7
|
-
import "/@antv/g@^6.1.28?target=es2022";
|
|
8
|
-
import "/@antv/graphlib@^2.0.4?target=es2022";
|
|
9
|
-
import "/@antv/hierarchy@^0.7.1?target=es2022";
|
|
10
|
-
import "/@antv/layout@^2.0.0?target=es2022";
|
|
11
|
-
import "/@antv/util@^3.3.11?target=es2022";
|
|
12
|
-
import "/bubblesets-js@^2.3.4?target=es2022";
|
|
13
|
-
export * from "/@antv/g6@5.1.1/es2022/g6.mjs";
|