@antv/g-plugin-canvas-renderer
Advanced tools
Comparing version 1.0.0-alpha.28 to 1.0.0-alpha.29
@@ -6,24 +6,25 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "RBush", { | ||
Object.defineProperty(exports, "PathGenerator", { | ||
enumerable: true, | ||
get: function get() { | ||
return _rbush.default; | ||
return _paths.PathGenerator; | ||
} | ||
}); | ||
Object.defineProperty(exports, "StyleRenderer", { | ||
Object.defineProperty(exports, "PathGeneratorFactory", { | ||
enumerable: true, | ||
get: function get() { | ||
return _styles.StyleRenderer; | ||
return _paths.PathGeneratorFactory; | ||
} | ||
}); | ||
Object.defineProperty(exports, "PathGeneratorFactory", { | ||
exports.Plugin = void 0; | ||
Object.defineProperty(exports, "RBush", { | ||
enumerable: true, | ||
get: function get() { | ||
return _paths.PathGeneratorFactory; | ||
return _rbush.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "PathGenerator", { | ||
Object.defineProperty(exports, "RBushNode", { | ||
enumerable: true, | ||
get: function get() { | ||
return _paths.PathGenerator; | ||
return _RBushNode.RBushNode; | ||
} | ||
@@ -37,9 +38,8 @@ }); | ||
}); | ||
Object.defineProperty(exports, "RBushNode", { | ||
Object.defineProperty(exports, "StyleRenderer", { | ||
enumerable: true, | ||
get: function get() { | ||
return _RBushNode.RBushNode; | ||
return _styles.StyleRenderer; | ||
} | ||
}); | ||
exports.Plugin = void 0; | ||
@@ -173,21 +173,24 @@ var _g = require("@antv/g"); | ||
var Plugin = function () { | ||
var Plugin = | ||
/** @class */ | ||
function () { | ||
function Plugin() {} | ||
Plugin.prototype.init = function (container) { | ||
container.load(containerModule); | ||
container.load(containerModule, true); | ||
}; | ||
Plugin.prototype.destroy = function (container) {// @ts-ignore | ||
// container.container.unload(containerModule); | ||
// // container.unload(containerModule); | ||
// container.remove(ImagePool); | ||
// container.remove(RBushRoot); | ||
// container.remove(DefaultRenderer); | ||
// container.remove(ImageRenderer); | ||
// container.remove(TextRenderer); | ||
// container.remove(StyleRendererFactory); | ||
// container.remove(GradientPool); | ||
// container.remove(CanvasRendererPlugin); | ||
// container.remove(LoadImagePlugin); | ||
Plugin.prototype.destroy = function (container) { | ||
// @ts-ignore | ||
// container.unload(containerModule); | ||
container.remove(_ImagePool.ImagePool); | ||
container.remove(_CanvasRendererPlugin.RBushRoot); | ||
container.remove(_styles.DefaultRenderer); | ||
container.remove(_Image.ImageRenderer); | ||
container.remove(_Text.TextRenderer); | ||
container.remove(_styles.StyleRenderer); | ||
container.remove(_styles.StyleRendererFactory); | ||
container.remove(_GradientPool.GradientPool); | ||
container.remove(_CanvasRendererPlugin.CanvasRendererPlugin); | ||
container.remove(_LoadImagePlugin.LoadImagePlugin); | ||
}; | ||
@@ -194,0 +197,0 @@ |
{ | ||
"name": "@antv/g-plugin-canvas-renderer", | ||
"version": "1.0.0-alpha.28", | ||
"version": "1.0.0-alpha.29", | ||
"description": "A G plugin of renderer implementation with Canvas2D API", | ||
@@ -8,5 +8,8 @@ "main": "lib/index.js", | ||
"types": "es/index.d.ts", | ||
"unpkg": "dist/index.umd.js", | ||
"files": [ | ||
"package.json", | ||
"dist", | ||
"es", | ||
"lib", | ||
"LICENSE", | ||
@@ -33,4 +36,4 @@ "README.md" | ||
"dependencies": { | ||
"@antv/g": "^1.0.0-alpha.28", | ||
"@antv/g-math": "^1.0.0-alpha.8", | ||
"@antv/g": "^1.0.0-alpha.29", | ||
"@antv/g-math": "^1.0.0-alpha.9", | ||
"@antv/path-util": "^2.0.14", | ||
@@ -55,3 +58,3 @@ "mana-syringe": "^0.2.1", | ||
"homepage": "https://github.com/antvis/g#readme", | ||
"gitHead": "b8af919853fa578b4aa6c5e84715948085ac0170" | ||
"gitHead": "97b0cd921c395a28d0432b33db157723b7967db1" | ||
} |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
91
0
1
175098
2961
2
Updated@antv/g@^1.0.0-alpha.29
Updated@antv/g-math@^1.0.0-alpha.9