@eeue56/coed
Version:
Write HTML in pure TS
217 lines (216 loc) • 8.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.svg = svg;
exports.g = g;
exports.a = a;
exports.defs = defs;
exports.symbol = symbol;
exports.marker = marker;
exports.mask = mask;
exports.pattern = pattern;
exports.clipPath = clipPath;
exports.foreignObject = foreignObject;
exports.svgSwitch = svgSwitch;
exports.circle = circle;
exports.ellipse = ellipse;
exports.line = line;
exports.path = path;
exports.polygon = polygon;
exports.polyline = polyline;
exports.rect = rect;
exports.image = image;
exports.text = text;
exports.tspan = tspan;
exports.textPath = textPath;
exports.use = use;
exports.linearGradient = linearGradient;
exports.radialGradient = radialGradient;
exports.stop = stop;
exports.filter = filter;
exports.feBlend = feBlend;
exports.feColorMatrix = feColorMatrix;
exports.feComponentTransfer = feComponentTransfer;
exports.feComposite = feComposite;
exports.feConvolveMatrix = feConvolveMatrix;
exports.feDiffuseLighting = feDiffuseLighting;
exports.feDisplacementMap = feDisplacementMap;
exports.feDropShadow = feDropShadow;
exports.feFlood = feFlood;
exports.feGaussianBlur = feGaussianBlur;
exports.feImage = feImage;
exports.feMerge = feMerge;
exports.feMorphology = feMorphology;
exports.feOffset = feOffset;
exports.feSpecularLighting = feSpecularLighting;
exports.feTile = feTile;
exports.feTurbulence = feTurbulence;
exports.animate = animate;
exports.animateMotion = animateMotion;
exports.animateTransform = animateTransform;
exports.svgSet = svgSet;
exports.mpath = mpath;
exports.styleEl = styleEl;
exports.scriptEl = scriptEl;
exports.desc = desc;
exports.title = title;
const coed_1 = require("./coed");
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
function svg(events, attributes, children) {
return (0, coed_1.nodeNS)("svg", SVG_NAMESPACE, events, attributes, children);
}
function g(events, attributes, children) {
return (0, coed_1.nodeNS)("g", SVG_NAMESPACE, events, attributes, children);
}
function a(events, attributes, children) {
return (0, coed_1.nodeNS)("a", SVG_NAMESPACE, events, attributes, children);
}
function defs(events, attributes, children) {
return (0, coed_1.nodeNS)("defs", SVG_NAMESPACE, events, attributes, children);
}
function symbol(events, attributes, children) {
return (0, coed_1.nodeNS)("symbol", SVG_NAMESPACE, events, attributes, children);
}
function marker(events, attributes, children) {
return (0, coed_1.nodeNS)("marker", SVG_NAMESPACE, events, attributes, children);
}
function mask(events, attributes, children) {
return (0, coed_1.nodeNS)("mask", SVG_NAMESPACE, events, attributes, children);
}
function pattern(events, attributes, children) {
return (0, coed_1.nodeNS)("pattern", SVG_NAMESPACE, events, attributes, children);
}
function clipPath(events, attributes, children) {
return (0, coed_1.nodeNS)("clipPath", SVG_NAMESPACE, events, attributes, children);
}
function foreignObject(events, attributes, children) {
return (0, coed_1.nodeNS)("foreignObject", SVG_NAMESPACE, events, attributes, children);
}
function svgSwitch(events, attributes, children) {
return (0, coed_1.nodeNS)("switch", SVG_NAMESPACE, events, attributes, children);
}
function circle(events, attributes) {
return (0, coed_1.voidNodeNS)("circle", SVG_NAMESPACE, events, attributes);
}
function ellipse(events, attributes) {
return (0, coed_1.voidNodeNS)("ellipse", SVG_NAMESPACE, events, attributes);
}
function line(events, attributes) {
return (0, coed_1.voidNodeNS)("line", SVG_NAMESPACE, events, attributes);
}
function path(events, attributes) {
return (0, coed_1.voidNodeNS)("path", SVG_NAMESPACE, events, attributes);
}
function polygon(events, attributes) {
return (0, coed_1.voidNodeNS)("polygon", SVG_NAMESPACE, events, attributes);
}
function polyline(events, attributes) {
return (0, coed_1.voidNodeNS)("polyline", SVG_NAMESPACE, events, attributes);
}
function rect(events, attributes) {
return (0, coed_1.voidNodeNS)("rect", SVG_NAMESPACE, events, attributes);
}
function image(events, attributes) {
return (0, coed_1.voidNodeNS)("image", SVG_NAMESPACE, events, attributes);
}
function text(events, attributes) {
return (0, coed_1.voidNodeNS)("text", SVG_NAMESPACE, events, attributes);
}
function tspan(events, attributes) {
return (0, coed_1.voidNodeNS)("tspan", SVG_NAMESPACE, events, attributes);
}
function textPath(events, attributes) {
return (0, coed_1.voidNodeNS)("textPath", SVG_NAMESPACE, events, attributes);
}
function use(events, attributes) {
return (0, coed_1.voidNodeNS)("use", SVG_NAMESPACE, events, attributes);
}
function linearGradient(events, attributes) {
return (0, coed_1.voidNodeNS)("linearGradient", SVG_NAMESPACE, events, attributes);
}
function radialGradient(events, attributes) {
return (0, coed_1.voidNodeNS)("radialGradient", SVG_NAMESPACE, events, attributes);
}
function stop(events, attributes) {
return (0, coed_1.voidNodeNS)("stop", SVG_NAMESPACE, events, attributes);
}
function filter(events, attributes) {
return (0, coed_1.voidNodeNS)("filter", SVG_NAMESPACE, events, attributes);
}
function feBlend(events, attributes) {
return (0, coed_1.voidNodeNS)("feBlend", SVG_NAMESPACE, events, attributes);
}
function feColorMatrix(events, attributes) {
return (0, coed_1.voidNodeNS)("feColorMatrix", SVG_NAMESPACE, events, attributes);
}
function feComponentTransfer(events, attributes) {
return (0, coed_1.voidNodeNS)("feComponentTransfer", SVG_NAMESPACE, events, attributes);
}
function feComposite(events, attributes) {
return (0, coed_1.voidNodeNS)("feComposite", SVG_NAMESPACE, events, attributes);
}
function feConvolveMatrix(events, attributes) {
return (0, coed_1.voidNodeNS)("feConvolveMatrix", SVG_NAMESPACE, events, attributes);
}
function feDiffuseLighting(events, attributes) {
return (0, coed_1.voidNodeNS)("feDiffuseLighting", SVG_NAMESPACE, events, attributes);
}
function feDisplacementMap(events, attributes) {
return (0, coed_1.voidNodeNS)("feDisplacementMap", SVG_NAMESPACE, events, attributes);
}
function feDropShadow(events, attributes) {
return (0, coed_1.voidNodeNS)("feDropShadow", SVG_NAMESPACE, events, attributes);
}
function feFlood(events, attributes) {
return (0, coed_1.voidNodeNS)("feFlood", SVG_NAMESPACE, events, attributes);
}
function feGaussianBlur(events, attributes) {
return (0, coed_1.voidNodeNS)("feGaussianBlur", SVG_NAMESPACE, events, attributes);
}
function feImage(events, attributes) {
return (0, coed_1.voidNodeNS)("feImage", SVG_NAMESPACE, events, attributes);
}
function feMerge(events, attributes) {
return (0, coed_1.voidNodeNS)("feMerge", SVG_NAMESPACE, events, attributes);
}
function feMorphology(events, attributes) {
return (0, coed_1.voidNodeNS)("feMorphology", SVG_NAMESPACE, events, attributes);
}
function feOffset(events, attributes) {
return (0, coed_1.voidNodeNS)("feOffset", SVG_NAMESPACE, events, attributes);
}
function feSpecularLighting(events, attributes) {
return (0, coed_1.voidNodeNS)("feSpecularLighting", SVG_NAMESPACE, events, attributes);
}
function feTile(events, attributes) {
return (0, coed_1.voidNodeNS)("feTile", SVG_NAMESPACE, events, attributes);
}
function feTurbulence(events, attributes) {
return (0, coed_1.voidNodeNS)("feTurbulence", SVG_NAMESPACE, events, attributes);
}
function animate(events, attributes) {
return (0, coed_1.voidNodeNS)("animate", SVG_NAMESPACE, events, attributes);
}
function animateMotion(events, attributes) {
return (0, coed_1.voidNodeNS)("animateMotion", SVG_NAMESPACE, events, attributes);
}
function animateTransform(events, attributes) {
return (0, coed_1.voidNodeNS)("animateTransform", SVG_NAMESPACE, events, attributes);
}
function svgSet(events, attributes) {
return (0, coed_1.voidNodeNS)("set", SVG_NAMESPACE, events, attributes);
}
function mpath(events, attributes) {
return (0, coed_1.voidNodeNS)("mpath", SVG_NAMESPACE, events, attributes);
}
function styleEl(events, attributes) {
return (0, coed_1.voidNodeNS)("style", SVG_NAMESPACE, events, attributes);
}
function scriptEl(events, attributes) {
return (0, coed_1.voidNodeNS)("script", SVG_NAMESPACE, events, attributes);
}
function desc(events, attributes) {
return (0, coed_1.voidNodeNS)("desc", SVG_NAMESPACE, events, attributes);
}
function title(events, attributes) {
return (0, coed_1.voidNodeNS)("title", SVG_NAMESPACE, events, attributes);
}