Skip to content

@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

PropertyTypeDescriptionDefined in
idnumberStable target id assigned at compile time. Referenced by ImageTargetAnchor.targetId.components/ImageTarget.ts:8
urlstringSource image URL or localasset:// path.components/ImageTarget.ts:10
widthnumberImage width in pixels.components/ImageTarget.ts:12
heightnumberImage height in pixels.components/ImageTarget.ts:14
storageDir?stringLocal directory the source image is stored in (desktop projects).components/ImageTarget.ts:16
fileName?stringLocal file name for the source image (desktop projects).components/ImageTarget.ts:18