@antv/g-svg
Advanced tools
Comparing version 0.1.0-beta.5 to 0.1.0-beta.6
import { AbstractCanvas } from '@antv/g-base'; | ||
import { ChangeType } from '@antv/g-base/lib/types'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import Group from './group'; | ||
@@ -5,0 +5,0 @@ import Defs from './defs'; |
@@ -6,3 +6,3 @@ import { __assign, __extends } from "tslib"; | ||
import EventController from '@antv/g-base/lib/event/event-contoller'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import Group from './group'; | ||
@@ -9,0 +9,0 @@ import Defs from './defs'; |
import { AbstractGroup } from '@antv/g-base'; | ||
import { ChangeType } from '@antv/g-base/lib/types'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import Defs from './defs'; | ||
@@ -5,0 +5,0 @@ declare class Group extends AbstractGroup { |
import { __extends } from "tslib"; | ||
import { AbstractGroup } from '@antv/g-base'; | ||
import { each } from '@antv/util'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import { drawChildren, applyClipChildren, drawPathChildren, refreshElement } from './util/draw'; | ||
@@ -6,0 +6,0 @@ import { setClip } from './util/svg'; |
@@ -0,6 +1,6 @@ | ||
import * as Shape from './shape'; | ||
export declare const version: any; | ||
export { BBox } from '@antv/g-base'; | ||
export { Event } from '@antv/g-base'; | ||
export { default as Canvas } from './canvas'; | ||
export { default as Group } from './group'; | ||
export { default as Shape } from './shape'; | ||
export { Shape }; |
@@ -0,8 +1,8 @@ | ||
import * as Shape from './shape'; | ||
var pkg = require('../package.json'); | ||
export var version = pkg.version; | ||
export { BBox } from '@antv/g-base'; | ||
export { Event } from '@antv/g-base'; | ||
export { default as Canvas } from './canvas'; | ||
export { default as Group } from './group'; | ||
export { default as Shape } from './shape'; | ||
export { Shape }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { AbstractShape, BBox } from '@antv/g-base'; | ||
import { ShapeAttrs, ChangeType } from '@antv/g-base/lib/types'; | ||
import { AbstractShape } from '@antv/g-base'; | ||
import { ShapeAttrs, ChangeType, BBox } from '@antv/g-base/lib/types'; | ||
import { IShape } from '../interfaces'; | ||
@@ -4,0 +4,0 @@ import Defs from '../defs'; |
import { __extends } from "tslib"; | ||
import { AbstractShape, BBox } from '@antv/g-base'; | ||
import { AbstractShape } from '@antv/g-base'; | ||
import { setShadow, setTransform, setClip } from '../util/svg'; | ||
@@ -48,3 +48,12 @@ import { createDom } from '../util/dom'; | ||
var maxY = y + height + halfWidth; | ||
return BBox.fromRange(minX, minY, maxX, maxY); | ||
return { | ||
x: minX, | ||
y: minY, | ||
minX: minX, | ||
minY: minY, | ||
maxX: maxX, | ||
maxY: maxY, | ||
width: width + lineWidth, | ||
height: height + lineWidth, | ||
}; | ||
}; | ||
@@ -51,0 +60,0 @@ ShapeBase.prototype.isFill = function () { |
@@ -1,2 +0,11 @@ | ||
import Shape from './base'; | ||
export default Shape; | ||
export { default as Circle } from './circle'; | ||
export { default as Dom } from './dom'; | ||
export { default as Ellipse } from './ellipse'; | ||
export { default as Image } from './image'; | ||
export { default as Line } from './line'; | ||
export { default as Marker } from './marker'; | ||
export { default as Path } from './path'; | ||
export { default as Polygon } from './polygon'; | ||
export { default as Polyline } from './polyline'; | ||
export { default as Rect } from './rect'; | ||
export { default as Text } from './text'; |
@@ -1,25 +0,12 @@ | ||
import Shape from './base'; | ||
import Circle from './circle'; | ||
import Dom from './dom'; | ||
import Ellipse from './ellipse'; | ||
import Image from './image'; | ||
import Line from './line'; | ||
import Marker from './marker'; | ||
import Path from './path'; | ||
import Polygon from './polygon'; | ||
import Polyline from './polyline'; | ||
import Rect from './rect'; | ||
import Text from './text'; | ||
Shape['Circle'] = Circle; | ||
Shape['Dom'] = Dom; | ||
Shape['Ellipse'] = Ellipse; | ||
Shape['Image'] = Image; | ||
Shape['Line'] = Line; | ||
Shape['Marker'] = Marker; | ||
Shape['Path'] = Path; | ||
Shape['Polygon'] = Polygon; | ||
Shape['Polyline'] = Polyline; | ||
Shape['Rect'] = Rect; | ||
Shape['Text'] = Text; | ||
export default Shape; | ||
export { default as Circle } from './circle'; | ||
export { default as Dom } from './dom'; | ||
export { default as Ellipse } from './ellipse'; | ||
export { default as Image } from './image'; | ||
export { default as Line } from './line'; | ||
export { default as Marker } from './marker'; | ||
export { default as Path } from './path'; | ||
export { default as Polygon } from './polygon'; | ||
export { default as Polyline } from './polyline'; | ||
export { default as Rect } from './rect'; | ||
export { default as Text } from './text'; | ||
//# sourceMappingURL=index.js.map |
import { AbstractCanvas } from '@antv/g-base'; | ||
import { ChangeType } from '@antv/g-base/lib/types'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import Group from './group'; | ||
@@ -5,0 +5,0 @@ import Defs from './defs'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var event_contoller_1 = require("@antv/g-base/lib/event/event-contoller"); | ||
var shape_1 = require("./shape"); | ||
var Shape = require("./shape"); | ||
var group_1 = require("./group"); | ||
@@ -36,3 +36,3 @@ var defs_1 = require("./defs"); | ||
Canvas.prototype.getShapeBase = function () { | ||
return shape_1.default; | ||
return Shape; | ||
}; | ||
@@ -39,0 +39,0 @@ Canvas.prototype.getGroupBase = function () { |
import { AbstractGroup } from '@antv/g-base'; | ||
import { ChangeType } from '@antv/g-base/lib/types'; | ||
import Shape from './shape'; | ||
import * as Shape from './shape'; | ||
import Defs from './defs'; | ||
@@ -5,0 +5,0 @@ declare class Group extends AbstractGroup { |
@@ -6,3 +6,3 @@ "use strict"; | ||
var util_1 = require("@antv/util"); | ||
var shape_1 = require("./shape"); | ||
var Shape = require("./shape"); | ||
var draw_1 = require("./util/draw"); | ||
@@ -52,3 +52,3 @@ var svg_1 = require("./util/svg"); | ||
Group.prototype.getShapeBase = function () { | ||
return shape_1.default; | ||
return Shape; | ||
}; | ||
@@ -55,0 +55,0 @@ Group.prototype.getGroupBase = function () { |
@@ -0,6 +1,6 @@ | ||
import * as Shape from './shape'; | ||
export declare const version: any; | ||
export { BBox } from '@antv/g-base'; | ||
export { Event } from '@antv/g-base'; | ||
export { default as Canvas } from './canvas'; | ||
export { default as Group } from './group'; | ||
export { default as Shape } from './shape'; | ||
export { Shape }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Shape = require("./shape"); | ||
exports.Shape = Shape; | ||
var pkg = require('../package.json'); | ||
exports.version = pkg.version; | ||
var g_base_1 = require("@antv/g-base"); | ||
exports.BBox = g_base_1.BBox; | ||
var g_base_2 = require("@antv/g-base"); | ||
exports.Event = g_base_2.Event; | ||
exports.Event = g_base_1.Event; | ||
var canvas_1 = require("./canvas"); | ||
@@ -13,4 +13,2 @@ exports.Canvas = canvas_1.default; | ||
exports.Group = group_1.default; | ||
var shape_1 = require("./shape"); | ||
exports.Shape = shape_1.default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { AbstractShape, BBox } from '@antv/g-base'; | ||
import { ShapeAttrs, ChangeType } from '@antv/g-base/lib/types'; | ||
import { AbstractShape } from '@antv/g-base'; | ||
import { ShapeAttrs, ChangeType, BBox } from '@antv/g-base/lib/types'; | ||
import { IShape } from '../interfaces'; | ||
@@ -4,0 +4,0 @@ import Defs from '../defs'; |
@@ -50,3 +50,12 @@ "use strict"; | ||
var maxY = y + height + halfWidth; | ||
return g_base_1.BBox.fromRange(minX, minY, maxX, maxY); | ||
return { | ||
x: minX, | ||
y: minY, | ||
minX: minX, | ||
minY: minY, | ||
maxX: maxX, | ||
maxY: maxY, | ||
width: width + lineWidth, | ||
height: height + lineWidth, | ||
}; | ||
}; | ||
@@ -53,0 +62,0 @@ ShapeBase.prototype.isFill = function () { |
@@ -1,2 +0,11 @@ | ||
import Shape from './base'; | ||
export default Shape; | ||
export { default as Circle } from './circle'; | ||
export { default as Dom } from './dom'; | ||
export { default as Ellipse } from './ellipse'; | ||
export { default as Image } from './image'; | ||
export { default as Line } from './line'; | ||
export { default as Marker } from './marker'; | ||
export { default as Path } from './path'; | ||
export { default as Polygon } from './polygon'; | ||
export { default as Polyline } from './polyline'; | ||
export { default as Rect } from './rect'; | ||
export { default as Text } from './text'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var base_1 = require("./base"); | ||
var circle_1 = require("./circle"); | ||
exports.Circle = circle_1.default; | ||
var dom_1 = require("./dom"); | ||
exports.Dom = dom_1.default; | ||
var ellipse_1 = require("./ellipse"); | ||
exports.Ellipse = ellipse_1.default; | ||
var image_1 = require("./image"); | ||
exports.Image = image_1.default; | ||
var line_1 = require("./line"); | ||
exports.Line = line_1.default; | ||
var marker_1 = require("./marker"); | ||
exports.Marker = marker_1.default; | ||
var path_1 = require("./path"); | ||
exports.Path = path_1.default; | ||
var polygon_1 = require("./polygon"); | ||
exports.Polygon = polygon_1.default; | ||
var polyline_1 = require("./polyline"); | ||
exports.Polyline = polyline_1.default; | ||
var rect_1 = require("./rect"); | ||
exports.Rect = rect_1.default; | ||
var text_1 = require("./text"); | ||
base_1.default['Circle'] = circle_1.default; | ||
base_1.default['Dom'] = dom_1.default; | ||
base_1.default['Ellipse'] = ellipse_1.default; | ||
base_1.default['Image'] = image_1.default; | ||
base_1.default['Line'] = line_1.default; | ||
base_1.default['Marker'] = marker_1.default; | ||
base_1.default['Path'] = path_1.default; | ||
base_1.default['Polygon'] = polygon_1.default; | ||
base_1.default['Polyline'] = polyline_1.default; | ||
base_1.default['Rect'] = rect_1.default; | ||
base_1.default['Text'] = text_1.default; | ||
exports.default = base_1.default; | ||
exports.Text = text_1.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@antv/g-svg", | ||
"version": "0.1.0-beta.5", | ||
"version": "0.1.0-beta.6", | ||
"description": "A canvas library which providing 2d", | ||
@@ -57,3 +57,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@antv/g-base": "^0.1.0-beta.5", | ||
"@antv/g-base": "^0.1.0-beta.6", | ||
"@antv/util": "~2.0.0", | ||
@@ -63,3 +63,3 @@ "detect-browser": "^4.6.0" | ||
"__npminstall_done": false, | ||
"gitHead": "dfe406eabeb080b0200809ee347c03a555f4af91" | ||
"gitHead": "118171c0ea71a649565ec0278c1e41b6a97f2f65" | ||
} |
Sorry, the diff of this file is too big to display
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5221
1032533
Updated@antv/g-base@^0.1.0-beta.6