Skip to content

Draggable

Draggable

Todo

SH: Strip the Chef Leo logic from this class and make it generic and customizable

Extends

Constructors

new Draggable()

new Draggable(): Draggable

Returns

Draggable

Overrides

Selectable.constructor

Source

src/input/Draggable.ts:19

Properties

childrenEditable

childrenEditable: boolean = true

Inherited from

Selectable.childrenEditable

Source

src/gameobjects/Container.ts:22


editable

editable: boolean = true

Inherited from

Selectable.editable

Source

src/gameobjects/Container.ts:21


onDeselected

readonly onDeselected: (p) => void[]

Inherited from

Selectable.onDeselected

Source

src/input/Selectable.ts:17


onSelected

readonly onSelected: (p) => void[]

Inherited from

Selectable.onSelected

Source

src/input/Selectable.ts:16


__dill_pixel_top_level_class

static __dill_pixel_top_level_class: boolean = true

Inherited from

Selectable.__dill_pixel_top_level_class

Source

src/gameobjects/Container.ts:20

Accessors

add

get add(): Add

Returns

Add

Source

src/gameobjects/Container.ts:120


app

get app(): T

Returns

T

Source

src/gameobjects/Container.ts:128


dragThreshold

set dragThreshold(pValue): void

Sets drag threshold

Parameters

pValue: number

Source

src/input/Draggable.ts:48


editMode

get editMode(): boolean

set editMode(value): void

Parameters

value: boolean

Returns

boolean

Source

src/gameobjects/Container.ts:107


focusPosition

get focusPosition(): Point

set focusPosition(value): void

Parameters

value: Point

Returns

Point

Source

src/gameobjects/Container.ts:83


focusSize

get focusSize(): Point

set focusSize(value): void

Parameters

value: Point

Returns

Point

Source

src/gameobjects/Container.ts:91


focusable

get focusable(): boolean

set focusable(value): void

Parameters

value: boolean

Returns

boolean

Source

src/gameobjects/Container.ts:99


isDragging

get isDragging(): boolean

Gets whether is dragging

Returns

boolean

Source

src/input/Draggable.ts:33


isSelected

get isSelected(): boolean

Gets whether is selected

Returns

boolean

Source

src/input/Selectable.ts:65


make

get make(): typeof Make

Returns

typeof Make

Source

src/gameobjects/Container.ts:124


useAsCaptionTarget

get useAsCaptionTarget(): boolean

set useAsCaptionTarget(value): void

Parameters

value: boolean

Returns

boolean

Source

src/gameobjects/Container.ts:61


visuals

get visuals(): Container<DisplayObject>

Gets visuals

Returns

Container<DisplayObject>

Source

src/input/Draggable.ts:40


voiceover

get voiceover(): string

set voiceover(value): void

Parameters

value: string

Returns

string

Source

src/gameobjects/Container.ts:69

Methods

addVisual()

addVisual(pVisual): void

Parameters

pVisual: Container<DisplayObject>

Returns

void

Source

src/input/Draggable.ts:152


attachVisuals()

attachVisuals(): void

Attaches visuals

Returns

void

Source

src/input/Draggable.ts:125


deselect()

deselect(): void

Deselects draggable

Returns

void

Overrides

Selectable.deselect

Source

src/input/Draggable.ts:69


destroy()

destroy(_options?): void

Parameters

_options?: boolean | IDestroyOptions

Returns

void

Inherited from

Selectable.destroy

Source

src/gameobjects/Container.ts:132


disableEditMode()

disableEditMode(): void

Returns

void

Inherited from

Selectable.disableEditMode

Source

src/gameobjects/Container.ts:173


drop()

drop(): void

Drops draggable

Returns

void

Source

src/input/Draggable.ts:132


enableEditMode()

enableEditMode(): void

Returns

void

Inherited from

Selectable.enableEditMode

Source

src/gameobjects/Container.ts:169


getFocusPosition()

getFocusPosition(): Point

Gets focus position

Returns

Point

PIXI.Point

Inherited from

Selectable.getFocusPosition

Source

src/input/Selectable.ts:129


getFocusSize()

getFocusSize(): IPoint

Gets focus size

Returns

IPoint

PIXI.Point

Inherited from

Selectable.getFocusSize

Source

src/input/Selectable.ts:141


isFocusable()

isFocusable(): boolean

Returns

boolean

true if this focusable can be focused Defaults to this.interactive && this.worldVisible

Inherited from

Selectable.isFocusable

Source

src/gameobjects/Container.ts:165


onFocusActivated()

onFocusActivated(): void

onFocusActivated

Returns

void

Inherited from

Selectable.onFocusActivated

Source

src/input/Selectable.ts:120


onFocusBegin()

onFocusBegin(): void

onFocusBegin

Returns

void

Inherited from

Selectable.onFocusBegin

Source

src/input/Selectable.ts:106


onFocusEnd()

onFocusEnd(): void

onFocusEnd

Returns

void

Inherited from

Selectable.onFocusEnd

Source

src/input/Selectable.ts:113


onResize()

onResize(_size): void

Parameters

_size: IPoint

Returns

void

Inherited from

Selectable.onResize

Source

src/gameobjects/Container.ts:179


removeAppListeners()

removeAppListeners(): void

Returns

void

Source

src/input/Draggable.ts:136


select()

select(): void

Selects draggable

Returns

void

Overrides

Selectable.select

Source

src/input/Draggable.ts:61


toggleSelected()

toggleSelected(): void

Toggles selected

Returns

void

Inherited from

Selectable.toggleSelected

Source

src/input/Selectable.ts:95


update()

update(_deltaTime): void

Parameters

_deltaTime: number

Returns

void

Inherited from

Selectable.update

Source

src/gameobjects/Container.ts:183