@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / ImageTargetReference
Type Alias: ImageTargetReference
ts
type ImageTargetReference = {
id: number;
url: string;
width: number;
height: number;
storageDir?: string;
fileName?: string;
};Defined in: components/ImageTarget.ts:6
Single uploaded image used as input to the image-target compiler.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
id | number | Stable target id assigned at compile time. Referenced by ImageTargetAnchor.targetId. | components/ImageTarget.ts:8 |
url | string | Source image URL or localasset:// path. | components/ImageTarget.ts:10 |
width | number | Image width in pixels. | components/ImageTarget.ts:12 |
height | number | Image height in pixels. | components/ImageTarget.ts:14 |
storageDir? | string | Local directory the source image is stored in (desktop projects). | components/ImageTarget.ts:16 |
fileName? | string | Local file name for the source image (desktop projects). | components/ImageTarget.ts:18 |

