documentationfor yFiles for HTML 2.6

ImageNodeStyle

A node style that can use an image for the visual representation of a node.

Inheritance Hierarchy
ImageNodeStyle
Implemented Interfaces

Remarks

This style can be used together with ImageNodeStyleRenderer instances.

Examples

const node = graph.createNode(
  [0, 0, 50, 50],
  new ImageNodeStyle({
    // path to the image or data URI which should be referenced in the SVGImageElement
    image: './resources/my-image.png'
  })
)

Type Details

yfiles module
styles-other
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.styles.ImageNodeStyle

See Also

Constructors

Properties

Methods

Static Methods