UNPKG

svg-artisan

Version:

Simple SVG builder for Node.

40 lines (39 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = a; exports.g = g; exports.circle = circle; exports.text = text; exports.tspan = tspan; exports.foreignObject = foreignObject; exports.line = line; exports.rect = rect; exports.path = path; const RawElement_1 = require("./RawElement"); function a(attributes, content) { return RawElement_1.RawElement.create('a', attributes, content); } function g(attributes, content) { return RawElement_1.RawElement.create('g', attributes, content); } function circle(attributes, content) { return RawElement_1.RawElement.create('circle', attributes, content); } function text(attributes, content) { return RawElement_1.RawElement.create('text', attributes, content); } function tspan(attributes, content) { return RawElement_1.RawElement.create('tspan', attributes, content); } function foreignObject(attributes, content) { return RawElement_1.RawElement.create('foreignObject', attributes, content); } function line(attributes, content) { return RawElement_1.RawElement.create('line', attributes, content); } function rect(attributes, content) { return RawElement_1.RawElement.create('rect', attributes, content); } function path(attributes, content) { return RawElement_1.RawElement.create('path', attributes, content); }