UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

18 lines (16 loc) 274 B
import { getImageUrlHook, createShape } from './util' export const Image = createShape( 'image', { attrs: { image: { refWidth: '100%', refHeight: '100%', }, }, propHooks: getImageUrlHook(), }, { selector: 'image', }, )