Documentation
Types
CommonDisplayableConfig

CommonDisplayableConfig

type CommonDisplayableConfig = {
    /**
     * Rotation of the element, in degrees
     * @default 0
     */
    rotation?: number;
    /**
     * Position of the element
     * @default {@link CommonPosition.Positions.Center}
     */
    position?: RawPosition | IPosition;
    /**
     * Opacity of the element, between 0 and 1
     * @default 1
     */
    opacity?: number;
    /**
     * Alt text of the element
     */
    alt?: string;
    /**
     * Scale of the element on x axis, use negative value to invert the scale
     * @default 1
     */
    scaleX?: number;
    /**
     * Scale of the element on y axis, use negative value to invert the scale
     * @default 1
     */
    scaleY?: number;
    /**
     * Zoom of the element, use `1` to keep the original size
     * @default 1
     */
    zoom?: number;
};