Represents the properties for the ScrollableCanvas component.

interface IScrollableCanvas {
    newPosition: number;
    renderer: Renderer;
    setSvgContent: ((svg) => void);
    svgContent: string;
    windowHeight: number;
    windowWidth: number;
}

Properties

newPosition: number

The new x-coordinate of the canvas.

renderer: Renderer

Reference to Renderer.

setSvgContent: ((svg) => void)

Set SVG context of the main picture with the new value

Type declaration

    • (svg): void
    • Parameters

      • svg: string

        The SVG content.

      Returns void

Function

svgContent: string

SVG string of the main picture

windowHeight: number

The height of the canvas.

windowWidth: number

The width of the canvas.