接口 IImagePropertyItem实验性

A property item which supports Image properties

interface IImagePropertyItem {
    enable: boolean;
    id: string;
    imageHeight: number;
    imageWidth: number;
    paneId: string;
    typeName: PropertyItemType;
    value: Readonly<string | ImageResourceData>;
    visible: boolean;
    resizeImage(width: number, height: number): void;
}

层级 (查看完整内容)

属性

enable: boolean

If the item is enabled in the UI.

id: string

Unique ID for the property item.

imageHeight: number

Height of the image.

imageWidth: number

Width of the image.

paneId: string

The parent pane id.

The type name of the target property.

value: Readonly<string | ImageResourceData>

Current value of the property item.

visible: boolean

If the item should be visible in the UI.

方法

  • 实验性

    参数

    • width: number

      New width of the image.

    • height: number

      New height of the image.

    返回 void

    Updates the size of the image.