Constructors
Methods
StaticcreateCircle
- createCircle(
p: TPoint,
r: number,
attrs?: { [key: string]: string },
): SVGCircleElement Parameters
- p: TPoint
- r: number
- attrs: { [key: string]: string } = {}
Returns SVGCircleElement
StaticcreateComponentTransfert
- createComponentTransfert(): SVGFEComponentTransferElement
Returns SVGFEComponentTransferElement
StaticcreateDefs
- createDefs(): SVGDefsElement
Returns SVGDefsElement
StaticcreateDropShadow
- createDropShadow(
__namedParameters: {
color?: string;
deviation?: number;
dx?: number;
dy?: number;
opacity?: number;
},
): SVGFEDropShadowElement Parameters
- __namedParameters: {
color?: string;
deviation?: number;
dx?: number;
dy?: number;
opacity?: number;
}
Returns SVGFEDropShadowElement
StaticcreateFilter
- createFilter(id: string, attrs?: { [key: string]: string }): SVGFilterElement
Parameters
- id: string
- attrs: { [key: string]: string } = {}
Returns SVGFilterElement
StaticcreateForeignObject
- createForeignObject(
box: TBox,
node: HTMLElement,
attrs?: { [key: string]: string },
): SVGForeignObjectElement Parameters
- box: TBox
- node: HTMLElement
- attrs: { [key: string]: string } = {}
Returns SVGForeignObjectElement
StaticcreateGroup
- createGroup(attrs?: { [key: string]: string }): SVGGElement
Parameters
- attrs: { [key: string]: string } = {}
Returns SVGGElement
StaticcreateLayer
- createLayer(boundingBox: TBox, attrs?: { [key: string]: string }): SVGSVGElement
Parameters
- boundingBox: TBox
- attrs: { [key: string]: string } = {}
Returns SVGSVGElement
StaticcreateLine
- createLine(
p1: TPoint,
p2: TPoint,
attrs?: { [key: string]: string },
): SVGLineElement Returns SVGLineElement
StaticcreateMarker
- createMarker(id: string, attrs?: { [key: string]: string }): SVGMarkerElement
Parameters
- id: string
- attrs: { [key: string]: string } = {}
Returns SVGMarkerElement
StaticcreatePath
- createPath(attrs?: { [key: string]: string }): SVGPathElement
Parameters
- attrs: { [key: string]: string } = {}
Returns SVGPathElement
StaticcreatePolygon
- createPolygon(
points: number[],
attrs?: { [key: string]: string },
): SVGPolylineElement Parameters
- points: number[]
- attrs: { [key: string]: string } = {}
Returns SVGPolylineElement
StaticcreateRect
- createRect(box: TBox, attrs?: { [key: string]: string }): SVGRectElement
Parameters
- box: TBox
- attrs: { [key: string]: string } = {}
Returns SVGRectElement
StaticcreateText
- createText(
p: TPoint,
text: string,
attrs?: { [key: string]: string },
): SVGTextElement Parameters
- p: TPoint
- text: string
- attrs: { [key: string]: string } = {}
Returns SVGTextElement
StaticcreateTransfertFunctionTable
- createTransfertFunctionTable(
type: "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR",
values: string,
): SVGFEFuncAElement Parameters
- type: "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR"
- values: string
Returns SVGFEFuncAElement
StaticcreateTSpan
- createTSpan(text: string, attrs?: { [key: string]: string }): SVGTSpanElement
Parameters
- text: string
- attrs: { [key: string]: string } = {}
Returns SVGTSpanElement