@antv/g-plugin-dragndrop 1.6.20 → 1.6.22

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.
@@ -1,12 +1,9 @@
1
- import type { RenderingPlugin, RenderingService } from '@antv/g-lite';
2
- import { RenderingContext, SceneGraphService } from '@antv/g-lite';
3
- import { DragndropPluginOptions } from './tokens';
1
+ import type { RenderingPlugin, RenderingPluginContext } from '@antv/g-lite';
2
+ import type { DragndropPluginOptions } from './interfaces';
4
3
  export declare class DragndropPlugin implements RenderingPlugin {
5
- protected sceneGraphService: SceneGraphService;
6
- private renderingContext;
7
4
  private dragndropPluginOptions;
8
5
  static tag: string;
9
- constructor(sceneGraphService: SceneGraphService, renderingContext: RenderingContext, dragndropPluginOptions: DragndropPluginOptions);
10
- apply(renderingService: RenderingService): void;
6
+ constructor(dragndropPluginOptions: DragndropPluginOptions);
7
+ apply(context: RenderingPluginContext): void;
11
8
  }
12
9
  //# sourceMappingURL=DragndropPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DragndropPlugin.d.ts","sourceRoot":"","sources":["../src/DragndropPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,eAAe,EACf,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,gBAAgB,EAEhB,iBAAiB,EAElB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,qBACa,eAAgB,YAAW,eAAe;IAKnD,SAAS,CAAC,iBAAiB,EAAE,iBAAiB;IAG9C,OAAO,CAAC,gBAAgB;IAGxB,OAAO,CAAC,sBAAsB;IAVhC,MAAM,CAAC,GAAG,SAAe;gBAIb,iBAAiB,EAAE,iBAAiB,EAGtC,gBAAgB,EAAE,gBAAgB,EAGlC,sBAAsB,EAAE,sBAAsB;IAGxD,KAAK,CAAC,gBAAgB,EAAE,gBAAgB;CAgJzC"}
1
+ {"version":3,"file":"DragndropPlugin.d.ts","sourceRoot":"","sources":["../src/DragndropPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,eAAe,EACf,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D,qBAAa,eAAgB,YAAW,eAAe;IAGzC,OAAO,CAAC,sBAAsB;IAF1C,MAAM,CAAC,GAAG,SAAe;gBAEL,sBAAsB,EAAE,sBAAsB;IAElE,KAAK,CAAC,OAAO,EAAE,sBAAsB;CAiJtC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AbstractRendererPlugin } from '@antv/g-lite';
2
- import { DragndropPluginOptions } from './tokens';
2
+ import type { DragndropPluginOptions } from './interfaces';
3
3
  export declare class Plugin extends AbstractRendererPlugin {
4
4
  private options;
5
5
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAU,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAMlD,qBAAa,MAAO,SAAQ,sBAAsB;IAGpC,OAAO,CAAC,OAAO;IAF3B,IAAI,SAAe;gBAEC,OAAO,GAAE,OAAO,CAAC,sBAAsB,CAAM;IAIjE,IAAI,IAAI,IAAI;IAaZ,OAAO,IAAI,IAAI;CAIhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D,qBAAa,MAAO,SAAQ,sBAAsB;IAGpC,OAAO,CAAC,OAAO;IAF3B,IAAI,SAAe;gBAEC,OAAO,GAAE,OAAO,CAAC,sBAAsB,CAAM;IAIjE,IAAI,IAAI,IAAI;IAYZ,OAAO,IAAI,IAAI;CAGhB"}
package/dist/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
- import { Syringe, singleton, RenderingPluginContribution, inject, SceneGraphService, RenderingContext, Module, AbstractRendererPlugin } from '@antv/g-lite';
2
- import { __decorate, __param } from 'tslib';
1
+ import { AbstractRendererPlugin } from '@antv/g-lite';
3
2
  import { distanceSquareRoot } from '@antv/util';
4
3
 
5
4
  function _regeneratorRuntime() {
@@ -415,25 +414,18 @@ function _setPrototypeOf(o, p) {
415
414
  return _setPrototypeOf(o, p);
416
415
  }
417
416
 
418
- var DragndropPluginOptions = Syringe.defineToken('');
419
-
420
- var _class;
421
-
422
- var DragndropPlugin_1;
423
- var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
424
- function DragndropPlugin(sceneGraphService, renderingContext, dragndropPluginOptions) {
425
- this.sceneGraphService = void 0;
426
- this.renderingContext = void 0;
417
+ var DragndropPlugin = /*#__PURE__*/function () {
418
+ function DragndropPlugin(dragndropPluginOptions) {
427
419
  this.dragndropPluginOptions = void 0;
428
- this.sceneGraphService = sceneGraphService;
429
- this.renderingContext = renderingContext;
430
420
  this.dragndropPluginOptions = dragndropPluginOptions;
431
421
  }
432
422
 
433
423
  var _proto = DragndropPlugin.prototype;
434
424
 
435
- _proto.apply = function apply(renderingService) {
436
- var document = this.renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
425
+ _proto.apply = function apply(context) {
426
+ var renderingService = context.renderingService,
427
+ renderingContext = context.renderingContext;
428
+ var document = renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
437
429
 
438
430
  var canvas = document.defaultView;
439
431
  var _this$dragndropPlugin = this.dragndropPluginOptions,
@@ -586,7 +578,7 @@ var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
586
578
  }
587
579
  };
588
580
 
589
- renderingService.hooks.init.tapPromise(DragndropPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
581
+ renderingService.hooks.init.tapPromise(DragndropPlugin.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
590
582
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
591
583
  while (1) {
592
584
  switch (_context2.prev = _context2.next) {
@@ -600,20 +592,15 @@ var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
600
592
  }
601
593
  }, _callee2);
602
594
  })));
603
- renderingService.hooks.destroy.tap(DragndropPlugin_1.tag, function () {
595
+ renderingService.hooks.destroy.tap(DragndropPlugin.tag, function () {
604
596
  canvas.removeEventListener('pointerdown', handlePointerdown);
605
597
  });
606
598
  };
607
599
 
608
600
  return DragndropPlugin;
609
- }(), _class.tag = 'Dragndrop', _class);
610
- DragndropPlugin = DragndropPlugin_1 = __decorate([singleton({
611
- contrib: RenderingPluginContribution
612
- }), __param(0, inject(SceneGraphService)), __param(1, inject(RenderingContext)), __param(2, inject(DragndropPluginOptions))], DragndropPlugin);
613
-
614
- var containerModule = Module(function (register) {
615
- register(DragndropPlugin);
616
- });
601
+ }();
602
+ DragndropPlugin.tag = 'Dragndrop';
603
+
617
604
  var Plugin = /*#__PURE__*/function (_AbstractRendererPlug) {
618
605
  _inheritsLoose(Plugin, _AbstractRendererPlug);
619
606
 
@@ -634,21 +621,17 @@ var Plugin = /*#__PURE__*/function (_AbstractRendererPlug) {
634
621
  var _proto = Plugin.prototype;
635
622
 
636
623
  _proto.init = function init() {
637
- this.container.register(DragndropPluginOptions, {
638
- useValue: _extends({
639
- overlap: 'pointer',
640
- isDocumentDraggable: false,
641
- isDocumentDroppable: false,
642
- dragstartDistanceThreshold: 0,
643
- dragstartTimeThreshold: 0
644
- }, this.options)
645
- });
646
- this.container.load(containerModule, true);
624
+ this.addRenderingPlugin(new DragndropPlugin(_extends({
625
+ overlap: 'pointer',
626
+ isDocumentDraggable: false,
627
+ isDocumentDroppable: false,
628
+ dragstartDistanceThreshold: 0,
629
+ dragstartTimeThreshold: 0
630
+ }, this.options)));
647
631
  };
648
632
 
649
633
  _proto.destroy = function destroy() {
650
- this.container.remove(DragndropPluginOptions);
651
- this.container.unload(containerModule);
634
+ this.removeAllRenderingPlugins();
652
635
  };
653
636
 
654
637
  return Plugin;
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var gLite = require('@antv/g-lite');
6
- var tslib = require('tslib');
7
6
  var util = require('@antv/util');
8
7
 
9
8
  function _regeneratorRuntime() {
@@ -419,25 +418,18 @@ function _setPrototypeOf(o, p) {
419
418
  return _setPrototypeOf(o, p);
420
419
  }
421
420
 
422
- var DragndropPluginOptions = gLite.Syringe.defineToken('');
423
-
424
- var _class;
425
-
426
- var DragndropPlugin_1;
427
- var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
428
- function DragndropPlugin(sceneGraphService, renderingContext, dragndropPluginOptions) {
429
- this.sceneGraphService = void 0;
430
- this.renderingContext = void 0;
421
+ var DragndropPlugin = /*#__PURE__*/function () {
422
+ function DragndropPlugin(dragndropPluginOptions) {
431
423
  this.dragndropPluginOptions = void 0;
432
- this.sceneGraphService = sceneGraphService;
433
- this.renderingContext = renderingContext;
434
424
  this.dragndropPluginOptions = dragndropPluginOptions;
435
425
  }
436
426
 
437
427
  var _proto = DragndropPlugin.prototype;
438
428
 
439
- _proto.apply = function apply(renderingService) {
440
- var document = this.renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
429
+ _proto.apply = function apply(context) {
430
+ var renderingService = context.renderingService,
431
+ renderingContext = context.renderingContext;
432
+ var document = renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
441
433
 
442
434
  var canvas = document.defaultView;
443
435
  var _this$dragndropPlugin = this.dragndropPluginOptions,
@@ -590,7 +582,7 @@ var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
590
582
  }
591
583
  };
592
584
 
593
- renderingService.hooks.init.tapPromise(DragndropPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
585
+ renderingService.hooks.init.tapPromise(DragndropPlugin.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
594
586
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
595
587
  while (1) {
596
588
  switch (_context2.prev = _context2.next) {
@@ -604,20 +596,15 @@ var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
604
596
  }
605
597
  }, _callee2);
606
598
  })));
607
- renderingService.hooks.destroy.tap(DragndropPlugin_1.tag, function () {
599
+ renderingService.hooks.destroy.tap(DragndropPlugin.tag, function () {
608
600
  canvas.removeEventListener('pointerdown', handlePointerdown);
609
601
  });
610
602
  };
611
603
 
612
604
  return DragndropPlugin;
613
- }(), _class.tag = 'Dragndrop', _class);
614
- DragndropPlugin = DragndropPlugin_1 = tslib.__decorate([gLite.singleton({
615
- contrib: gLite.RenderingPluginContribution
616
- }), tslib.__param(0, gLite.inject(gLite.SceneGraphService)), tslib.__param(1, gLite.inject(gLite.RenderingContext)), tslib.__param(2, gLite.inject(DragndropPluginOptions))], DragndropPlugin);
617
-
618
- var containerModule = gLite.Module(function (register) {
619
- register(DragndropPlugin);
620
- });
605
+ }();
606
+ DragndropPlugin.tag = 'Dragndrop';
607
+
621
608
  var Plugin = /*#__PURE__*/function (_AbstractRendererPlug) {
622
609
  _inheritsLoose(Plugin, _AbstractRendererPlug);
623
610
 
@@ -638,21 +625,17 @@ var Plugin = /*#__PURE__*/function (_AbstractRendererPlug) {
638
625
  var _proto = Plugin.prototype;
639
626
 
640
627
  _proto.init = function init() {
641
- this.container.register(DragndropPluginOptions, {
642
- useValue: _extends({
643
- overlap: 'pointer',
644
- isDocumentDraggable: false,
645
- isDocumentDroppable: false,
646
- dragstartDistanceThreshold: 0,
647
- dragstartTimeThreshold: 0
648
- }, this.options)
649
- });
650
- this.container.load(containerModule, true);
628
+ this.addRenderingPlugin(new DragndropPlugin(_extends({
629
+ overlap: 'pointer',
630
+ isDocumentDraggable: false,
631
+ isDocumentDroppable: false,
632
+ dragstartDistanceThreshold: 0,
633
+ dragstartTimeThreshold: 0
634
+ }, this.options)));
651
635
  };
652
636
 
653
637
  _proto.destroy = function destroy() {
654
- this.container.remove(DragndropPluginOptions);
655
- this.container.unload(containerModule);
638
+ this.removeAllRenderingPlugins();
656
639
  };
657
640
 
658
641
  return Plugin;
package/dist/index.umd.js CHANGED
@@ -417,55 +417,22 @@
417
417
  return _setPrototypeOf(o, p);
418
418
  }
419
419
 
420
- /******************************************************************************
421
- Copyright (c) Microsoft Corporation.
422
-
423
- Permission to use, copy, modify, and/or distribute this software for any
424
- purpose with or without fee is hereby granted.
425
-
426
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
427
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
428
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
429
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
430
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
431
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
432
- PERFORMANCE OF THIS SOFTWARE.
433
- ***************************************************************************** */
434
-
435
- function __decorate(decorators, target, key, desc) {
436
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
437
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
438
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
439
- return c > 3 && r && Object.defineProperty(target, key, r), r;
440
- }
441
-
442
- function __param(paramIndex, decorator) {
443
- return function (target, key) { decorator(target, key, paramIndex); }
444
- }
445
-
446
420
  function distanceSquareRoot(a, b) {
447
421
  return Math.sqrt((a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]));
448
422
  }
449
423
 
450
- var DragndropPluginOptions = gLite.Syringe.defineToken('');
451
-
452
- var _class;
453
-
454
- var DragndropPlugin_1;
455
- var DragndropPlugin = DragndropPlugin_1 = (_class = /*#__PURE__*/function () {
456
- function DragndropPlugin(sceneGraphService, renderingContext, dragndropPluginOptions) {
457
- this.sceneGraphService = void 0;
458
- this.renderingContext = void 0;
424
+ var DragndropPlugin = /*#__PURE__*/function () {
425
+ function DragndropPlugin(dragndropPluginOptions) {
459
426
  this.dragndropPluginOptions = void 0;
460
- this.sceneGraphService = sceneGraphService;
461
- this.renderingContext = renderingContext;
462
427
  this.dragndropPluginOptions = dragndropPluginOptions;
463
428
  }
464
429
 
465
430
  var _proto = DragndropPlugin.prototype;
466
431
 
467
- _proto.apply = function apply(renderingService) {
468
- var document = this.renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
432
+ _proto.apply = function apply(context) {
433
+ var renderingService = context.renderingService,
434
+ renderingContext = context.renderingContext;
435
+ var document = renderingContext.root.ownerDocument; // TODO: should we add an option like `draggable` to Canvas
469
436
 
470
437
  var canvas = document.defaultView;
471
438
  var _this$dragndropPlugin = this.dragndropPluginOptions,
@@ -618,7 +585,7 @@
618
585
  }
619
586
  };
620
587
 
621
- renderingService.hooks.init.tapPromise(DragndropPlugin_1.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
588
+ renderingService.hooks.init.tapPromise(DragndropPlugin.tag, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
622
589
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
623
590
  while (1) {
624
591
  switch (_context2.prev = _context2.next) {
@@ -632,20 +599,15 @@
632
599
  }
633
600
  }, _callee2);
634
601
  })));
635
- renderingService.hooks.destroy.tap(DragndropPlugin_1.tag, function () {
602
+ renderingService.hooks.destroy.tap(DragndropPlugin.tag, function () {
636
603
  canvas.removeEventListener('pointerdown', handlePointerdown);
637
604
  });
638
605
  };
639
606
 
640
607
  return DragndropPlugin;
641
- }(), _class.tag = 'Dragndrop', _class);
642
- DragndropPlugin = DragndropPlugin_1 = __decorate([gLite.singleton({
643
- contrib: gLite.RenderingPluginContribution
644
- }), __param(0, gLite.inject(gLite.SceneGraphService)), __param(1, gLite.inject(gLite.RenderingContext)), __param(2, gLite.inject(DragndropPluginOptions))], DragndropPlugin);
645
-
646
- var containerModule = gLite.Module(function (register) {
647
- register(DragndropPlugin);
648
- });
608
+ }();
609
+ DragndropPlugin.tag = 'Dragndrop';
610
+
649
611
  var Plugin = /*#__PURE__*/function (_AbstractRendererPlug) {
650
612
  _inheritsLoose(Plugin, _AbstractRendererPlug);
651
613
 
@@ -666,21 +628,17 @@
666
628
  var _proto = Plugin.prototype;
667
629
 
668
630
  _proto.init = function init() {
669
- this.container.register(DragndropPluginOptions, {
670
- useValue: _extends({
671
- overlap: 'pointer',
672
- isDocumentDraggable: false,
673
- isDocumentDroppable: false,
674
- dragstartDistanceThreshold: 0,
675
- dragstartTimeThreshold: 0
676
- }, this.options)
677
- });
678
- this.container.load(containerModule, true);
631
+ this.addRenderingPlugin(new DragndropPlugin(_extends({
632
+ overlap: 'pointer',
633
+ isDocumentDraggable: false,
634
+ isDocumentDroppable: false,
635
+ dragstartDistanceThreshold: 0,
636
+ dragstartTimeThreshold: 0
637
+ }, this.options)));
679
638
  };
680
639
 
681
640
  _proto.destroy = function destroy() {
682
- this.container.remove(DragndropPluginOptions);
683
- this.container.unload(containerModule);
641
+ this.removeAllRenderingPlugins();
684
642
  };
685
643
 
686
644
  return Plugin;
@@ -1,3 +1,3 @@
1
1
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.Dragndrop={}),t.window.G)}(this,(function(t,e){"use strict";function r(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(j([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=d.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=d,u(m,"constructor",d),u(d,"constructor",p),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),u(m,c,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function c(t,e){return function(r,n){e(r,n,t)}}var u,s,l=e.Syringe.defineToken(""),f=(u=function(){function t(t,e,r){this.sceneGraphService=void 0,this.renderingContext=void 0,this.dragndropPluginOptions=void 0,this.sceneGraphService=t,this.renderingContext=e,this.dragndropPluginOptions=r}return t.prototype.apply=function(t){var e=this.renderingContext.root.ownerDocument,n=e.defaultView,i=this.dragndropPluginOptions,a=i.overlap,c=i.isDocumentDraggable,u=i.isDocumentDroppable,l=i.dragstartDistanceThreshold,f=i.dragstartTimeThreshold,h=function(t){var i=t.target,s=i===e,h=s&&c?e:i.closest&&i.closest("[draggable=true]");if(h){var p=function(){var t=o(r().mark((function t(n){var o,c,p,w,b,x;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d){t.next=8;break}if(o=n.timeStamp-v,r=[n.clientX,n.clientY],E=y,c=Math.sqrt((r[0]-E[0])*(r[0]-E[0])+(r[1]-E[1])*(r[1]-E[1])),o>f&&c>l){t.next=5;break}return t.abrupt("return");case 5:n.type="dragstart",h.dispatchEvent(n),d=!0;case 8:if(n.type="drag",n.dx=n.clientX-m[0],n.dy=n.clientY-m[1],h.dispatchEvent(n),m=[n.clientX,n.clientY],s){t.next=21;break}return p="pointer"===a?[n.canvasX,n.canvasY]:i.getBounds().center,t.next=17,e.elementsFromPoint(p[0],p[1]);case 17:b=(w=t.sent)[w.indexOf(i)+1],x=(null==b?void 0:b.closest("[droppable=true]"))||(u?e:null),g!==x&&(g&&(n.type="dragleave",n.target=g,g.dispatchEvent(n)),x&&(n.type="dragenter",n.target=x,x.dispatchEvent(n)),(g=x)&&(n.type="dragover",n.target=g,g.dispatchEvent(n)));case 21:case"end":return t.stop()}var r,E}),t)})));return function(e){return t.apply(this,arguments)}}(),d=!1,v=t.timeStamp,y=[t.clientX,t.clientY],g=null,m=[t.clientX,t.clientY];n.addEventListener("pointermove",p);var w=function(){d&&(g&&(t.type="drop",t.target=g,g.dispatchEvent(t)),t.type="dragend",t.detail={preventClick:!0},h.dispatchEvent(t),d=!1),n.removeEventListener("pointermove",p)};i.addEventListener("pointerup",w,{once:!0}),i.addEventListener("pointerupoutside",w,{once:!0})}};t.hooks.init.tapPromise(s.tag,o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.addEventListener("pointerdown",h);case 1:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(s.tag,(function(){n.removeEventListener("pointerdown",h)}))},t}(),u.tag="Dragndrop",s=u);f=s=function(t,e,r,n){var o,i=arguments.length,a=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(3>i?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([e.singleton({contrib:e.RenderingPluginContribution}),c(0,e.inject(e.SceneGraphService)),c(1,e.inject(e.RenderingContext)),c(2,e.inject(l))],f);var h=e.Module((function(t){t(f)}));t.Plugin=function(t){var e,r;function n(e){var r;return void 0===e&&(e={}),(r=t.call(this)||this).options=void 0,r.name="dragndrop",r.options=e,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,a(e,r);var o=n.prototype;return o.init=function(){this.container.register(l,{useValue:i({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)}),this.container.load(h,!0)},o.destroy=function(){this.container.remove(l),this.container.unload(h)},n}(e.AbstractRendererPlugin),Object.defineProperty(t,"__esModule",{value:!0})}));
3
+ r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof p?e:p).prototype),i=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=d.prototype=p.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return h.prototype=d,u(m,"constructor",d),u(d,"constructor",h),h.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),u(m,c,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}var c=function(){function t(t){this.dragndropPluginOptions=void 0,this.dragndropPluginOptions=t}return t.prototype.apply=function(e){var n=e.renderingService,i=e.renderingContext.root.ownerDocument,a=i.defaultView,c=this.dragndropPluginOptions,u=c.overlap,s=c.isDocumentDraggable,l=c.isDocumentDroppable,f=c.dragstartDistanceThreshold,p=c.dragstartTimeThreshold,h=function(t){var e=t.target,n=e===i,c=n&&s?i:e.closest&&e.closest("[draggable=true]");if(c){var h=function(){var t=o(r().mark((function t(o){var a,s,h,w,b,x;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d){t.next=8;break}if(a=o.timeStamp-v,r=[o.clientX,o.clientY],E=y,s=Math.sqrt((r[0]-E[0])*(r[0]-E[0])+(r[1]-E[1])*(r[1]-E[1])),a>p&&s>f){t.next=5;break}return t.abrupt("return");case 5:o.type="dragstart",c.dispatchEvent(o),d=!0;case 8:if(o.type="drag",o.dx=o.clientX-m[0],o.dy=o.clientY-m[1],c.dispatchEvent(o),m=[o.clientX,o.clientY],n){t.next=21;break}return h="pointer"===u?[o.canvasX,o.canvasY]:e.getBounds().center,t.next=17,i.elementsFromPoint(h[0],h[1]);case 17:b=(w=t.sent)[w.indexOf(e)+1],x=(null==b?void 0:b.closest("[droppable=true]"))||(l?i:null),g!==x&&(g&&(o.type="dragleave",o.target=g,g.dispatchEvent(o)),x&&(o.type="dragenter",o.target=x,x.dispatchEvent(o)),(g=x)&&(o.type="dragover",o.target=g,g.dispatchEvent(o)));case 21:case"end":return t.stop()}var r,E}),t)})));return function(e){return t.apply(this,arguments)}}(),d=!1,v=t.timeStamp,y=[t.clientX,t.clientY],g=null,m=[t.clientX,t.clientY];a.addEventListener("pointermove",h);var w=function(){d&&(g&&(t.type="drop",t.target=g,g.dispatchEvent(t)),t.type="dragend",t.detail={preventClick:!0},c.dispatchEvent(t),d=!1),a.removeEventListener("pointermove",h)};e.addEventListener("pointerup",w,{once:!0}),e.addEventListener("pointerupoutside",w,{once:!0})}};n.hooks.init.tapPromise(t.tag,o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a.addEventListener("pointerdown",h);case 1:case"end":return t.stop()}}),t)})))),n.hooks.destroy.tap(t.tag,(function(){a.removeEventListener("pointerdown",h)}))},t}();c.tag="Dragndrop",t.Plugin=function(t){var e,r;function n(e){var r;return void 0===e&&(e={}),(r=t.call(this)||this).options=void 0,r.name="dragndrop",r.options=e,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,a(e,r);var o=n.prototype;return o.init=function(){this.addRenderingPlugin(new c(i({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},o.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -1,5 +1,3 @@
1
- import { Syringe } from '@antv/g-lite';
2
- export declare const DragndropPluginOptions: Syringe.DefinedToken;
3
1
  export interface DragndropPluginOptions {
4
2
  /**
5
3
  * How drops are checked for. The allowed values are:
@@ -27,4 +25,4 @@ export interface DragndropPluginOptions {
27
25
  */
28
26
  dragstartDistanceThreshold: number;
29
27
  }
30
- //# sourceMappingURL=tokens.d.ts.map
28
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE9B;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;CACpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-plugin-dragndrop",
3
- "version": "1.6.20",
3
+ "version": "1.6.22",
4
4
  "description": "A G plugin for Drag n Drop implemented with PointerEvents",
5
5
  "keywords": [
6
6
  "antv",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "0475e6c71d65b5d7214e6f2053d46e2670f8192b"
42
+ "gitHead": "c80e315d8611880f433168adad28dd31f2ad5980"
43
43
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,eAAO,MAAM,sBAAsB,sBAA0B,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE9B;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;CACpC"}