Skip to content

Documentation / @ripl/svg / createContext

Function: createContext() ​

createContext(target, options?): SVGContext

Defined in: svg/src/index.ts:840

Creates an SVG rendering context attached to the given DOM target.

Parameters ​

ParameterType
targetstring | HTMLElement
options?ContextOptions<Record<string, unknown>>

Returns ​

SVGContext