UNPKG

svg-boundings

Version:

Get bounding rect of SVG shape elements.

21 lines (18 loc) 609 B
'use strict'; var boundingOfImage = require('./lib/image_bounding'); var boundingOfShape = require('./lib/shape_bounding'); var boundingOfText = require('./lib/text_bounding'); var boundingOfGradient = require('./lib/gradient_bounding'); module.exports = { line: boundingOfShape.line, rect: boundingOfShape.rect, circle: boundingOfShape.circle, ellipse: boundingOfShape.ellipse, polygon: boundingOfShape.polygon, polyline: boundingOfShape.polyline, path: boundingOfShape.path, shape: boundingOfShape.shape, image: boundingOfImage, text: boundingOfText, gradient: boundingOfGradient };