Screen
Extends:
Direct Subclass:
Base class for app workspaces
attributes:
inherit-scale : don't resize to fit whole screen, use cssbox scaling
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
|
|
public static |
newSTRUCT(): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public get |
borders: * |
|
public get |
ctx: * |
|
public set |
|
|
public |
|
|
public |
globalCSS: * |
|
public |
|
|
public |
keymap: * |
|
public |
listen_timer: * |
|
public get |
listening: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
oldpos: * |
|
public |
pos: * |
|
public |
sareas: *[] |
|
public |
screenborders: *[] |
|
public |
screenverts: *[] |
|
public |
size: * |
|
public |
|
|
public |
|
|
public |
uidata: * |
Private Members | ||
private |
|
|
private |
_ctx: * |
|
private |
|
|
private |
|
|
private |
_edgemap: {} |
|
private |
_idmap: {} |
|
private |
_last_ckey1: * |
|
private |
|
|
private |
|
|
private |
_popups: *[] |
|
private |
_resize_callbacks: *[] |
|
private |
_screen_id: * |
|
private |
_update_gen: * |
|
private |
_vertmap: {} |
Method Summary
Public Methods | ||
public |
add(child: *): * |
|
public |
addEventListener(type: *, cb: *, options: *): * |
|
public |
|
|
public |
appendChild(child: *): * |
|
public |
areaDragTool(sarea: *) |
|
public |
areasBorder(sarea1: *, sarea2: *): boolean |
|
public |
|
|
public |
checkAreaConstraint(sarea: *, checkOnly: boolean): * |
|
public |
|
|
public |
|
|
public |
clear() |
|
public |
collapseArea(sarea: *, border: *): * merges sarea into the screen area opposite to sarea |
|
public |
|
|
public |
|
|
public |
copy(): * |
|
public |
destroy() |
|
public |
draggablePopup(x: *, y: *): * |
|
public |
draw() |
|
public |
|
|
public |
execKeyMap(e: *): * |
|
public |
findScreenArea(x: *, y: *): * |
|
public |
floatArea(area: *): * |
|
public |
freeBorder(b: *, sarea: *) |
|
public |
getBoolAttribute(attr: *, defaultval: boolean): * |
|
public |
getHotKey(toolpath: *): * |
|
public |
getScreenBorder(sarea: *, v1: *, v2: *, side: *): * |
|
public |
getScreenVert(pos: *, added_id: string, floating: boolean): * |
|
public |
hasBorder(b: *): * |
|
public |
|
|
public |
init() |
|
public |
isBorderMovable(b: *, limit: number): * |
|
public |
isBorderOuter(border: *): * |
|
public |
killBorder(b: *): * |
|
public |
killScreenVertex(v: *): * |
|
public |
|
|
public |
load() |
|
public |
|
|
public |
|
|
public |
loadSTRUCT(reader: *): * |
|
public |
loadUIData(str: *) |
|
public |
|
|
public |
|
|
public |
mergeGlobalCSS(style: *): * |
|
public |
minmaxArea(sarea: *, mm: *): * |
|
public |
moveAttachTool(sarea: *, mpos: *, elem: *, pointerId: *) |
|
public |
moveBorder(b: *, df: *, strict: boolean): * |
|
public |
moveBorderSimple(b: *, df: *, strict: boolean): boolean |
|
public |
moveBorderUnused(b: *, df: *, strict: boolean): boolean |
|
public |
moveBorderWithoutVerts(halfedge: *, df: *) |
|
public |
newScreenArea(): * |
|
public |
on_keydown(e: *): * |
|
public |
on_keypress(e: *): * |
|
public |
on_keyup(e: *): * |
|
public |
|
|
public |
pickElement(x: *, y: *, args: *): * |
|
public |
popup(popupDelay: *): * |
|
public |
popupArea(area_class: *): * |
|
public |
popupMenu(menu: *, x: *, y: *): * |
|
public |
|
|
public |
|
|
public |
|
|
public |
regenScreenMesh(snapLimit: *) |
|
public |
|
|
public |
removeArea(sarea: *) |
|
public |
removeAreaTool(border: *) |
|
public |
removeEventListener(type: *, cb: *, options: *): * |
|
public |
replaceArea(dst: *, src: *) |
|
public |
save() |
|
public |
saveUIData(): * |
|
public |
setCSS() |
|
public |
setPos(x: *, y: *) |
|
public |
setPosSize(x: *, y: *, w: *, h: *) |
|
public |
setSize(w: *, h: *) |
|
public |
snapScreenVerts(fitToSize: boolean) |
|
public |
solveAreaConstraints(snapArgument: boolean) |
|
public |
|
|
public |
|
|
public |
test_struct(appstate: *): * |
|
public |
toJSON(): * |
|
public |
unlisten() |
|
public |
update() |
|
public |
|
|
public |
|
|
public |
|
|
public |
update_intern(): * |
|
public |
walkBorderLine(b: *): * |
Private Methods | ||
private |
* _allAreas() |
|
private |
_calcSizeKey(w: *, h: *, x: *, y: *, dpi: *, scale: *): * |
|
private |
|
|
private |
|
|
private |
_fireResizeCB(oldsize: *) |
|
private |
_get_debug_overlay(): * |
|
private |
|
|
private |
|
|
private |
makes a popup at x,y and returns a new container-x for it |
|
private |
_recalcAABB(save: boolean): undefined[] |
|
private |
|
|
private |
|
Static Public Methods
Public Constructors
public constructor() source
Public Members
public allBordersMovable: * source
public get borders: * source
public get ctx: * source
public set ctx source
public globalCSS: * source
public keymap: * source
public listen_timer: * source
public get listening: * source
public oldpos: * source
public pos: * source
public sareas: *[] source
public screenborders: *[] source
public screenverts: *[] source
public size: * source
public uidata: * source
Private Members
private _ctx: * source
private _debug_overlay: * source
private _edgemap: {} source
private _idmap: {} source
private _last_ckey1: * source
private _last_scrollstyle_key: * source
private _popups: *[] source
private _resize_callbacks: *[] source
private _screen_id: * source
private _update_gen: * source
private _vertmap: {} source
Public Methods
public addEventListener(type: *, cb: *, options: *): * source
Params:
Name | Type | Attribute | Description |
type | * | ||
cb | * | ||
options | * |
Return:
* |
public afterSTRUCT() source
public areaDragTool(sarea: *) source
Params:
Name | Type | Attribute | Description |
sarea | * |
|
public areasBorder(sarea1: *, sarea2: *): boolean source
Params:
Name | Type | Attribute | Description |
sarea1 | * | ||
sarea2 | * |
public calcTabOrder() source
public checkAreaConstraint(sarea: *, checkOnly: boolean): * source
Params:
Name | Type | Attribute | Description |
sarea | * | ||
checkOnly | boolean |
|
Return:
* |
public checkCSSSize() source
public cleanupBorders() source
public clear() source
public collapseArea(sarea: *, border: *): * source
merges sarea into the screen area opposite to sarea
Params:
Name | Type | Attribute | Description |
sarea | * | ||
border | * |
Return:
* |
public completeSetCSS() source
public completeUpdate() source
public destroy() source
public draw() source
public drawUpdate() source
public freeBorder(b: *, sarea: *) source
Params:
Name | Type | Attribute | Description |
b | * | ||
sarea | * |
public getBoolAttribute(attr: *, defaultval: boolean): * source
Params:
Name | Type | Attribute | Description |
attr | * | ||
defaultval | boolean |
|
Return:
* |
public getScreenBorder(sarea: *, v1: *, v2: *, side: *): * source
Params:
Name | Type | Attribute | Description |
sarea | * | ||
v1 | * | ||
v2 | * | ||
side | * |
Return:
* |
public hintPickerTool() source
public init() source
public isBorderMovable(b: *, limit: number): * source
Params:
Name | Type | Attribute | Description |
b | * | ||
limit | number |
|
Return:
* |
public listen(args: {"updateSize": boolean}) source
Params:
Name | Type | Attribute | Description |
args | {"updateSize": boolean} |
|
public load() source
public loadFromVerts() source
public loadJSON(obj: *, schedule_resize: boolean) source
Params:
Name | Type | Attribute | Description |
obj | * | ||
schedule_resize | boolean |
|
public loadUIData(str: *) source
Params:
Name | Type | Attribute | Description |
str | * |
public makeBorders() source
public mergeBlankAreas() source
public mergeGlobalCSS(style: *): * source
Params:
Name | Type | Attribute | Description |
style | * | May be a string, a CSSStyleSheet instance, or a style tag |
Return:
* | Promise fulfilled when style has been merged |
public minmaxArea(sarea: *, mm: *): * source
Params:
Name | Type | Attribute | Description |
sarea | * | ||
mm | * |
|
Return:
* |
public moveAttachTool(sarea: *, mpos: *, elem: *, pointerId: *) source
Params:
Name | Type | Attribute | Description |
sarea | * | ||
mpos | * |
|
|
elem | * | ||
pointerId | * |
public moveBorder(b: *, df: *, strict: boolean): * source
Params:
Name | Type | Attribute | Description |
b | * | ||
df | * | ||
strict | boolean |
|
Return:
* |
public moveBorderSimple(b: *, df: *, strict: boolean): boolean source
Params:
Name | Type | Attribute | Description |
b | * | ||
df | * | ||
strict | boolean |
|
public moveBorderUnused(b: *, df: *, strict: boolean): boolean source
Params:
Name | Type | Attribute | Description |
b | * | ||
df | * | ||
strict | boolean |
|
public moveBorderWithoutVerts(halfedge: *, df: *) source
Params:
Name | Type | Attribute | Description |
halfedge | * | ||
df | * |
public on_resize(oldsize: *, newsize: *, _set_key: boolean) source
Params:
Name | Type | Attribute | Description |
oldsize | * | ||
newsize | * |
|
|
_set_key | boolean |
|
public pickElement(x: *, y: *, args: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
args | * | arguments : {sx, sy, nodeclass, excluded_classes} |
Return:
* |
public popup(popupDelay: *): * source
Params:
Name | Type | Attribute | Description |
popupDelay | * | : if non-zero, wait for popup to layout for popupDelay miliseconds, then move the popup so it's fully inside the window (if it's outsize). |
Return:
* |
public popupArea(area_class: *): * source
Params:
Name | Type | Attribute | Description |
area_class | * |
Return:
* |
public popupMenu(menu: *, x: *, y: *): * source
Params:
Name | Type | Attribute | Description |
menu | * | ||
x | * | ||
y | * |
Return:
* |
public purgeUpdateStack() source
public regenBorders() source
public regenBorders_stage2() source
public regenScreenMesh(snapLimit: *) source
Params:
Name | Type | Attribute | Description |
snapLimit | * |
|
public remove(trigger_destroy: boolean): * source
Params:
Name | Type | Attribute | Description |
trigger_destroy | boolean |
|
Return:
* |
public removeArea(sarea: *) source
Params:
Name | Type | Attribute | Description |
sarea | * |
public removeAreaTool(border: *) source
Params:
Name | Type | Attribute | Description |
border | * |
public removeEventListener(type: *, cb: *, options: *): * source
Params:
Name | Type | Attribute | Description |
type | * | ||
cb | * | ||
options | * |
Return:
* |
public replaceArea(dst: *, src: *) source
Params:
Name | Type | Attribute | Description |
dst | * | ||
src | * |
public save() source
public setCSS() source
public setPos(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public setPosSize(x: *, y: *, w: *, h: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
w | * | ||
h | * |
public setSize(w: *, h: *) source
Params:
Name | Type | Attribute | Description |
w | * | ||
h | * |
public snapScreenVerts(fitToSize: boolean) source
Params:
Name | Type | Attribute | Description |
fitToSize | boolean |
|
public solveAreaConstraints(snapArgument: boolean) source
Params:
Name | Type | Attribute | Description |
snapArgument | boolean |
|
public splitTool() source
public test_struct(appstate: *): * source
Params:
Name | Type | Attribute | Description |
appstate | * |
|
Return:
* |
public unlisten() source
public update() source
public updateDebugBoxes() source
public updateScrollStyling() source
public updateSize() source
Private Methods
private * _allAreas() source
private _calcSizeKey(w: *, h: *, x: *, y: *, dpi: *, scale: *): * source
Params:
Name | Type | Attribute | Description |
w | * | ||
h | * | ||
x | * | ||
y | * | ||
dpi | * | ||
scale | * |
Return:
* |
private _enterPopupSafe() source
private _exitPopupSafe() source
private _fireResizeCB(oldsize: *) source
Params:
Name | Type | Attribute | Description |
oldsize | * |
|
private _internalRegenAll() source
private _ondestroy() source
private _popup(owning_node: *, elem_or_x: *, y: *, closeOnMouseOut: boolean): * source
makes a popup at x,y and returns a new container-x for it
Params:
Name | Type | Attribute | Description |
owning_node | * | ||
elem_or_x | * | ||
y | * | ||
closeOnMouseOut | boolean |
|
Return:
* |
private _recalcAABB(save: boolean): undefined[] source
Params:
Name | Type | Attribute | Description |
save | boolean |
|