UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

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