UNPKG

html-spec-tags

Version:

All HTML tags supported by the current spec. With types!

334 lines (333 loc) 10.2 kB
/** * A string literal type that only matches the SVG spec tag names. * * @category Tag */ export type SvgSpecTagName = keyof typeof svgSpecConstructorsByTagName; /** * All current SVG spec tag names mapped to their respective element constructors. * * Generated from `SVGElementTagNameMap` in `typescript/lib/lib.dom.d.ts`: * https://raw.githubusercontent.com/microsoft/TypeScript/main/src/lib/dom.generated.d.ts * * @category Tag */ export declare const svgSpecConstructorsByTagName: { readonly a: { new (): SVGAElement; prototype: SVGAElement; }; readonly animate: { new (): SVGAnimateElement; prototype: SVGAnimateElement; }; readonly animateMotion: { new (): SVGAnimateMotionElement; prototype: SVGAnimateMotionElement; }; readonly animateTransform: { new (): SVGAnimateTransformElement; prototype: SVGAnimateTransformElement; }; readonly circle: { new (): SVGCircleElement; prototype: SVGCircleElement; }; readonly clipPath: { new (): SVGClipPathElement; prototype: SVGClipPathElement; }; readonly defs: { new (): SVGDefsElement; prototype: SVGDefsElement; }; readonly desc: { new (): SVGDescElement; prototype: SVGDescElement; }; readonly ellipse: { new (): SVGEllipseElement; prototype: SVGEllipseElement; }; readonly feBlend: { new (): SVGFEBlendElement; prototype: SVGFEBlendElement; readonly SVG_FEBLEND_MODE_UNKNOWN: 0; readonly SVG_FEBLEND_MODE_NORMAL: 1; readonly SVG_FEBLEND_MODE_MULTIPLY: 2; readonly SVG_FEBLEND_MODE_SCREEN: 3; readonly SVG_FEBLEND_MODE_DARKEN: 4; readonly SVG_FEBLEND_MODE_LIGHTEN: 5; readonly SVG_FEBLEND_MODE_OVERLAY: 6; readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; readonly SVG_FEBLEND_MODE_EXCLUSION: 12; readonly SVG_FEBLEND_MODE_HUE: 13; readonly SVG_FEBLEND_MODE_SATURATION: 14; readonly SVG_FEBLEND_MODE_COLOR: 15; readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; }; readonly feColorMatrix: { new (): SVGFEColorMatrixElement; prototype: SVGFEColorMatrixElement; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; }; readonly feComponentTransfer: { new (): SVGFEComponentTransferElement; prototype: SVGFEComponentTransferElement; }; readonly feComposite: { new (): SVGFECompositeElement; prototype: SVGFECompositeElement; readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; }; readonly feConvolveMatrix: { new (): SVGFEConvolveMatrixElement; prototype: SVGFEConvolveMatrixElement; readonly SVG_EDGEMODE_UNKNOWN: 0; readonly SVG_EDGEMODE_DUPLICATE: 1; readonly SVG_EDGEMODE_WRAP: 2; readonly SVG_EDGEMODE_NONE: 3; }; readonly feDiffuseLighting: { new (): SVGFEDiffuseLightingElement; prototype: SVGFEDiffuseLightingElement; }; readonly feDisplacementMap: { new (): SVGFEDisplacementMapElement; prototype: SVGFEDisplacementMapElement; readonly SVG_CHANNEL_UNKNOWN: 0; readonly SVG_CHANNEL_R: 1; readonly SVG_CHANNEL_G: 2; readonly SVG_CHANNEL_B: 3; readonly SVG_CHANNEL_A: 4; }; readonly feDistantLight: { new (): SVGFEDistantLightElement; prototype: SVGFEDistantLightElement; }; readonly feDropShadow: { new (): SVGFEDropShadowElement; prototype: SVGFEDropShadowElement; }; readonly feFlood: { new (): SVGFEFloodElement; prototype: SVGFEFloodElement; }; readonly feFuncA: { new (): SVGFEFuncAElement; prototype: SVGFEFuncAElement; }; readonly feFuncB: { new (): SVGFEFuncBElement; prototype: SVGFEFuncBElement; }; readonly feFuncG: { new (): SVGFEFuncGElement; prototype: SVGFEFuncGElement; }; readonly feFuncR: { new (): SVGFEFuncRElement; prototype: SVGFEFuncRElement; }; readonly feGaussianBlur: { new (): SVGFEGaussianBlurElement; prototype: SVGFEGaussianBlurElement; }; readonly feImage: { new (): SVGFEImageElement; prototype: SVGFEImageElement; }; readonly feMerge: { new (): SVGFEMergeElement; prototype: SVGFEMergeElement; }; readonly feMergeNode: { new (): SVGFEMergeNodeElement; prototype: SVGFEMergeNodeElement; }; readonly feMorphology: { new (): SVGFEMorphologyElement; prototype: SVGFEMorphologyElement; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; }; readonly feOffset: { new (): SVGFEOffsetElement; prototype: SVGFEOffsetElement; }; readonly fePointLight: { new (): SVGFEPointLightElement; prototype: SVGFEPointLightElement; }; readonly feSpecularLighting: { new (): SVGFESpecularLightingElement; prototype: SVGFESpecularLightingElement; }; readonly feSpotLight: { new (): SVGFESpotLightElement; prototype: SVGFESpotLightElement; }; readonly feTile: { new (): SVGFETileElement; prototype: SVGFETileElement; }; readonly feTurbulence: { new (): SVGFETurbulenceElement; prototype: SVGFETurbulenceElement; readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; readonly SVG_STITCHTYPE_UNKNOWN: 0; readonly SVG_STITCHTYPE_STITCH: 1; readonly SVG_STITCHTYPE_NOSTITCH: 2; }; readonly filter: { new (): SVGFilterElement; prototype: SVGFilterElement; }; readonly foreignObject: { new (): SVGForeignObjectElement; prototype: SVGForeignObjectElement; }; readonly g: { new (): SVGGElement; prototype: SVGGElement; }; readonly image: { new (): SVGImageElement; prototype: SVGImageElement; }; readonly line: { new (): SVGLineElement; prototype: SVGLineElement; }; readonly linearGradient: { new (): SVGLinearGradientElement; prototype: SVGLinearGradientElement; }; readonly marker: { new (): SVGMarkerElement; prototype: SVGMarkerElement; readonly SVG_MARKERUNITS_UNKNOWN: 0; readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; readonly SVG_MARKERUNITS_STROKEWIDTH: 2; readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; }; readonly mask: { new (): SVGMaskElement; prototype: SVGMaskElement; }; readonly metadata: { new (): SVGMetadataElement; prototype: SVGMetadataElement; }; readonly mpath: { new (): SVGMPathElement; prototype: SVGMPathElement; }; readonly path: { new (): SVGPathElement; prototype: SVGPathElement; }; readonly pattern: { new (): SVGPatternElement; prototype: SVGPatternElement; }; readonly polygon: { new (): SVGPolygonElement; prototype: SVGPolygonElement; }; readonly polyline: { new (): SVGPolylineElement; prototype: SVGPolylineElement; }; readonly radialGradient: { new (): SVGRadialGradientElement; prototype: SVGRadialGradientElement; }; readonly rect: { new (): SVGRectElement; prototype: SVGRectElement; }; readonly script: { new (): SVGScriptElement; prototype: SVGScriptElement; }; readonly set: { new (): SVGSetElement; prototype: SVGSetElement; }; readonly stop: { new (): SVGStopElement; prototype: SVGStopElement; }; readonly style: { new (): SVGStyleElement; prototype: SVGStyleElement; }; readonly svg: { new (): SVGSVGElement; prototype: SVGSVGElement; }; readonly switch: { new (): SVGSwitchElement; prototype: SVGSwitchElement; }; readonly symbol: { new (): SVGSymbolElement; prototype: SVGSymbolElement; }; readonly text: { new (): SVGTextElement; prototype: SVGTextElement; }; readonly textPath: { new (): SVGTextPathElement; prototype: SVGTextPathElement; readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; readonly TEXTPATH_METHODTYPE_ALIGN: 1; readonly TEXTPATH_METHODTYPE_STRETCH: 2; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; readonly TEXTPATH_SPACINGTYPE_AUTO: 1; readonly TEXTPATH_SPACINGTYPE_EXACT: 2; }; readonly title: { new (): SVGTitleElement; prototype: SVGTitleElement; }; readonly tspan: { new (): SVGTSpanElement; prototype: SVGTSpanElement; }; readonly use: { new (): SVGUseElement; prototype: SVGUseElement; }; readonly view: { new (): SVGViewElement; prototype: SVGViewElement; }; }; /** * All possible SVG spec tag names within a single array. * * @category Tag */ export declare const allSvgSpecTagNames: ReadonlyArray<SvgSpecTagName>;