@arkadiuminc/sdk 2.78.7 → 2.78.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,8 +4,12 @@ export declare const DEBUG_MENU_ROOT_ID = "arkadium-sdk-debug-menu";
|
|
|
4
4
|
export declare class DebugMenu {
|
|
5
5
|
private readonly deps;
|
|
6
6
|
private anchor;
|
|
7
|
+
private header;
|
|
8
|
+
private minimized;
|
|
7
9
|
constructor(deps: IDebugMenuDependencies);
|
|
8
10
|
mount(): void;
|
|
11
|
+
private toggleMinimized;
|
|
12
|
+
private applyHeaderLayout;
|
|
9
13
|
destroy(): void;
|
|
10
14
|
}
|
|
11
15
|
export declare function mountDebugMenu(deps: IDebugMenuDependencies): void;
|
|
@@ -9,6 +9,13 @@ export declare function applySnapPosition(element: HTMLElement, edge: SnapEdge,
|
|
|
9
9
|
export declare type DraggableEdgeAnchorOptions = {
|
|
10
10
|
margin?: number;
|
|
11
11
|
initialEdge?: SnapEdge;
|
|
12
|
+
resizable?: boolean;
|
|
13
|
+
minWidth?: number;
|
|
14
|
+
minHeight?: number;
|
|
15
|
+
maxWidth?: number;
|
|
16
|
+
maxHeight?: number;
|
|
17
|
+
/** Size limits and resize clamping use this element's box (defaults to mount parent). */
|
|
18
|
+
boundsElement?: HTMLElement;
|
|
12
19
|
};
|
|
13
20
|
/**
|
|
14
21
|
* Wraps content in a fixed-position panel that can be dragged and snaps to the nearest viewport edge on release.
|
|
@@ -23,11 +30,50 @@ export declare class DraggableEdgeAnchor {
|
|
|
23
30
|
private isDragging;
|
|
24
31
|
private pointerId;
|
|
25
32
|
private resizeObserver;
|
|
33
|
+
private readonly resizable;
|
|
34
|
+
private readonly minWidth;
|
|
35
|
+
private readonly minHeight;
|
|
36
|
+
private readonly maxWidthCap?;
|
|
37
|
+
private readonly maxHeightCap?;
|
|
38
|
+
private readonly boundsElementOption?;
|
|
39
|
+
private boundsElement;
|
|
40
|
+
private boundsResizeObserver;
|
|
41
|
+
private resizeHandleRow;
|
|
42
|
+
private resizeHandleSouthEast;
|
|
43
|
+
private resizeHandleSouthWest;
|
|
44
|
+
private snappedEdge;
|
|
45
|
+
private isResizing;
|
|
46
|
+
private resizeCorner;
|
|
47
|
+
private resizeStartWidth;
|
|
48
|
+
private resizeStartHeight;
|
|
49
|
+
private resizeStartLeft;
|
|
50
|
+
private resizeStartTop;
|
|
51
|
+
private resizeStartPointerX;
|
|
52
|
+
private resizeStartPointerY;
|
|
53
|
+
private minimized;
|
|
54
|
+
private expandedWidth;
|
|
55
|
+
private expandedHeight;
|
|
26
56
|
constructor(content: HTMLElement, options?: DraggableEdgeAnchorOptions);
|
|
57
|
+
private createCornerResizeHandle;
|
|
27
58
|
get element(): HTMLDivElement;
|
|
28
59
|
setDragHandle(handle: HTMLElement): void;
|
|
60
|
+
setMinimized(minimized: boolean): void;
|
|
29
61
|
mount(parent?: HTMLElement): void;
|
|
30
62
|
destroy(): void;
|
|
31
63
|
snapToClosestEdge(): void;
|
|
64
|
+
private snapToBottomEdge;
|
|
65
|
+
private updateResizeHandleVisibility;
|
|
66
|
+
private getBoundsRect;
|
|
67
|
+
private getBoundsSize;
|
|
68
|
+
private getBoundsContentBox;
|
|
69
|
+
private applyBoundsLimits;
|
|
70
|
+
private getMaxWidth;
|
|
71
|
+
private getMaxHeight;
|
|
32
72
|
private bindDragEvents;
|
|
73
|
+
private bindCornerResizeEvents;
|
|
74
|
+
/**
|
|
75
|
+
* SE: top-left corner fixed — moves the right and bottom edges.
|
|
76
|
+
* SW: top-right corner fixed — moves the left and bottom edges.
|
|
77
|
+
*/
|
|
78
|
+
private applyCornerResize;
|
|
33
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkadiuminc/sdk",
|
|
3
|
-
"version": "2.78.
|
|
3
|
+
"version": "2.78.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/pkg/arkadium-sdk.umd.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"node": "^24.22.1"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
+
"start": "http-server dist -p 8080 -c-1 --cors",
|
|
22
23
|
"preview:tsc": "tsc --project example/game/simple-game/tsconfig.json",
|
|
23
24
|
"preview:build": "tsc --project example/game/simple-game/tsconfig.json && vite build --config src/example/game/simple-game/vite.config.js",
|
|
24
25
|
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
|
@@ -96,6 +97,7 @@
|
|
|
96
97
|
"cz-conventional-changelog": "^3.3.0",
|
|
97
98
|
"fake-indexeddb": "^6.2.5",
|
|
98
99
|
"happy-dom": "^14.0.0",
|
|
100
|
+
"http-server": "^14.1.1",
|
|
99
101
|
"husky": "^9.0.11",
|
|
100
102
|
"lint-staged": "^13.0.3",
|
|
101
103
|
"lodash.camelcase": "^4.3.0",
|