1.0.4 • Published 2 years ago

@sv-westbridge-orebro/image-renderer-custom v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

This is a Sitevision package for handeling ImageRenderer

This package is for handeling the most common use cases with the interface ImageRenderer.

imageNode Sitevision page node imageAlt alt text imageSizeObj the return value from getImageSize

export function renderImageFromNode(imageNode, imageAlt, imageSizeObj) {
}

returns a image HTML element.

Insert "small", "medium" or "large" in the input parameter imageSize

export function getImageSize(imageSize) {
}

returns a imageSize which should be used in the renderImageFromNode() method.