Interface Item<T>

getLocus item

interface Item<T> {
    x: number;
    y: number;
    z: number;
    width: BiggerThenZeroNumber;
    height: BiggerThenZeroNumber;
    ratio: BiggerThenZeroNumber;
    rotation: number;
    scale: PositiveNumber;
    locked: GlLock;
    visibility: GlVisibility;
    parent: 0 | ObjectId;
    id: ObjectId;
    creator: string;
    created: Date;
    editor: string;
    edited: Date;
    lastFocus?: string;
    focusedBy?: string;
    data: T;
    sizeOnDisk: number;
    version?: number;
}

Type Parameters

Hierarchy (view full)

Properties

x: number

x coordinate relative to the top-level corner of parent

y: number

y coordinate relative to the top-level corner of parent

z: number

Z-index

width in space pixels

height in space pixels

width/height

rotation: number

Rotation angle in deg

Scale of the item on screen

locked: GlLock

Block moving/editing

visibility: GlVisibility

Hide from others

parent: 0 | ObjectId

Parent object

Identifier of item

creator: string

Identifier of user who created this item

created: Date

ISO 8601 string

editor: string

Identifier of user who edited it last time

edited: Date

ISO 8601 string

lastFocus?: string

Identifier of user who focused the item last time

focusedBy?: string

Identifier of user who keeps in focus the item now

data: T

getLocus item data

sizeOnDisk: number

Size of file in MiB

version?: number

Client version which created this item