UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

10 lines (8 loc) 254 B
import { ObjectExt } from '../../common' import type { AttrDefinition } from './index' export const fill: AttrDefinition = { qualify: ObjectExt.isPlainObject, set(fill, { view }) { return `url(#${view.graph.defineGradient(fill as any)})` }, }