Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/g-plugin-svg-picker

Package Overview
Dependencies
Maintainers
64
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-svg-picker - npm Package Compare versions

Comparing version 1.9.15 to 1.9.16

6

dist/index.esm.js

@@ -28,4 +28,4 @@ import { __awaiter, __generator, __values, __extends } from 'tslib';

SVGPickerPlugin.prototype.pick = function (svgElementMap, doc, result) {
var _a, e_1, _b;
var topmost = result.topmost, clientX = (_a = result.position, _a.clientX), clientY = _a.clientY;
var e_1, _a;
var topmost = result.topmost, _b = result.position, clientX = _b.clientX, clientY = _b.clientY;
try {

@@ -51,3 +51,3 @@ var targets = [];

try {
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}

@@ -54,0 +54,0 @@ finally { if (e_1) throw e_1.error; }

@@ -30,4 +30,4 @@ 'use strict';

SVGPickerPlugin.prototype.pick = function (svgElementMap, doc, result) {
var _a, e_1, _b;
var topmost = result.topmost, clientX = (_a = result.position, _a.clientX), clientY = _a.clientY;
var e_1, _a;
var topmost = result.topmost, _b = result.position, clientX = _b.clientX, clientY = _b.clientY;
try {

@@ -53,3 +53,3 @@ var targets = [];

try {
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}

@@ -56,0 +56,0 @@ finally { if (e_1) throw e_1.error; }

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],n):n(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVGPicker={}),t.window.G)}(this,(function(t,n){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},e(t,n)};function r(t,n,e,r){return new(e||(e=Promise))((function(o,i){function c(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,u)}a((r=r.apply(t,n||[])).next())}))}function o(t,n){var e,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(c=0)),c;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&o[3]>u[1])){c.label=u[1];break}if(6===u[0]&&o[1]>c.label){c.label=o[1],o=u;break}if(o&&o[2]>c.label){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=n.call(t,c)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var i=function(){function t(){}return t.prototype.apply=function(n,e){var i=this,c=n.config.document,u=n.renderingService,a=n.svgElementMap;u.hooks.pick.tapPromise(t.tag,(function(t){return r(i,void 0,void 0,(function(){return o(this,(function(n){return[2,this.pick(a,c,t)]}))}))})),u.hooks.pickSync.tap(t.tag,(function(t){return i.pick(a,c,t)}))},t.prototype.pick=function(t,n,e){var r,o,i,c=e.topmost,u=(r=e.position).clientX,a=r.clientY;try{var l=[];try{for(var f=function(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}((n||document).elementsFromPoint(u,a)),p=f.next();!p.done;p=f.next()){var s=t.get(p.value);if(s&&s.isInteractive()&&(l.push(s),c))return e.picked=l,e}}catch(t){o={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}e.picked=l}catch(t){e.picked=[]}return e},t.tag="SVGPicker",t}(),c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.name="svg-picker",n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+n+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n.prototype.init=function(){this.addRenderingPlugin(new i)},n.prototype.destroy=function(){this.removeAllRenderingPlugins()},n}(n.AbstractRendererPlugin);t.Plugin=c}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],n):n(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVGPicker={}),t.window.G)}(this,(function(t,n){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},e(t,n)};function r(t,n,e,r){return new(e||(e=Promise))((function(o,i){function c(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,u)}a((r=r.apply(t,n||[])).next())}))}function o(t,n){var e,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(c=0)),c;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&o[3]>u[1])){c.label=u[1];break}if(6===u[0]&&o[1]>c.label){c.label=o[1],o=u;break}if(o&&o[2]>c.label){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=n.call(t,c)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var i=function(){function t(){}return t.prototype.apply=function(n,e){var i=this,c=n.config.document,u=n.renderingService,a=n.svgElementMap;u.hooks.pick.tapPromise(t.tag,(function(t){return r(i,void 0,void 0,(function(){return o(this,(function(n){return[2,this.pick(a,c,t)]}))}))})),u.hooks.pickSync.tap(t.tag,(function(t){return i.pick(a,c,t)}))},t.prototype.pick=function(t,n,e){var r,o,i=e.topmost,c=e.position,u=c.clientX,a=c.clientY;try{var l=[];try{for(var f=function(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}((n||document).elementsFromPoint(u,a)),p=f.next();!p.done;p=f.next()){var s=t.get(p.value);if(s&&s.isInteractive()&&(l.push(s),i))return e.picked=l,e}}catch(t){r={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}e.picked=l}catch(t){e.picked=[]}return e},t.tag="SVGPicker",t}(),c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.name="svg-picker",n}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+n+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n.prototype.init=function(){this.addRenderingPlugin(new i)},n.prototype.destroy=function(){this.removeAllRenderingPlugins()},n}(n.AbstractRendererPlugin);t.Plugin=c}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@antv/g-plugin-svg-picker",
"version": "1.9.15",
"version": "1.9.16",
"description": "A G plugin for picking in SVG",

@@ -36,4 +36,4 @@ "keywords": [

"tslib": "^2.5.3",
"@antv/g-lite": "1.2.13",
"@antv/g-plugin-svg-renderer": "1.10.15"
"@antv/g-lite": "1.2.14",
"@antv/g-plugin-svg-renderer": "1.10.16"
},

@@ -40,0 +40,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc