@lingbi/studio 0.6.0 → 0.8.0
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.
- package/Application.d.ts +2 -0
- package/StudioToolbarState.d.ts +3 -0
- package/StudioWorkspace.d.ts +2 -1
- package/assets/StabilityWorkerEntry-CXCNaUyw.js +19816 -0
- package/index.js +391 -16
- package/package.json +5 -1
package/Application.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class Application {
|
|
|
10
10
|
private downloadController;
|
|
11
11
|
private downloadError;
|
|
12
12
|
private downloadSuccess;
|
|
13
|
+
private simulationOutcome;
|
|
13
14
|
private downloading;
|
|
14
15
|
private readonly exportContextFactory;
|
|
15
16
|
private exportSceneContext;
|
|
@@ -76,6 +77,7 @@ export declare class Application {
|
|
|
76
77
|
private startInventory;
|
|
77
78
|
private confirmInventoryAndStart;
|
|
78
79
|
private handleBooleanRequested;
|
|
80
|
+
private handleSimulationRequested;
|
|
79
81
|
private handleModelVisibilityRequested;
|
|
80
82
|
private createExportJobFromCurrentScene;
|
|
81
83
|
private createInventoryJobFromCurrentScene;
|
package/StudioToolbarState.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/** Studio-owned state projected onto the bottom toolbar. */
|
|
2
2
|
export interface StudioToolbarState {
|
|
3
|
+
readonly simulationEnabled?: boolean;
|
|
4
|
+
readonly simulationInProgress?: boolean;
|
|
5
|
+
readonly simulationOutcome?: 'success' | 'failure';
|
|
3
6
|
readonly booleanEnabled?: boolean;
|
|
4
7
|
readonly booleanInProgress?: boolean;
|
|
5
8
|
readonly booleanReediting?: boolean;
|
package/StudioWorkspace.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare class StudioWorkspace {
|
|
|
14
14
|
private static readonly BOTTOM_TOOLBAR_VIEWPORT_GAP;
|
|
15
15
|
private static readonly BOTTOM_TOOLBAR_VIEWPORT_BOTTOM_INSET;
|
|
16
16
|
private readonly booleanButtonElement;
|
|
17
|
+
private readonly simulationButtonElement;
|
|
17
18
|
private readonly booleanOperationOverlayElement;
|
|
18
19
|
private readonly booleanOperationStatusElement;
|
|
19
20
|
private readonly booleanEditConfirmationElement;
|
|
@@ -36,7 +37,7 @@ export declare class StudioWorkspace {
|
|
|
36
37
|
private readonly styleElement;
|
|
37
38
|
private currentEditActive;
|
|
38
39
|
private modelPanelVisible;
|
|
39
|
-
constructor(container: HTMLElement, onEditRequested: () => void, onEditExited: () => void, onDownloadRequested: () => void, onBooleanRequested?: () => void, onBooleanEditConfirmed?: () => void, onBooleanEditCancelled?: () => void, onModelVisibilityRequested?: (role: StudioModelRole, visible: boolean) => void, onInventoryRequested?: () => void, onEditOperationBlocked?: () => void);
|
|
40
|
+
constructor(container: HTMLElement, onEditRequested: () => void, onEditExited: () => void, onDownloadRequested: () => void, onBooleanRequested?: () => void, onBooleanEditConfirmed?: () => void, onBooleanEditCancelled?: () => void, onModelVisibilityRequested?: (role: StudioModelRole, visible: boolean) => void, onInventoryRequested?: () => void, onEditOperationBlocked?: () => void, onSimulationRequested?: () => void);
|
|
40
41
|
/** Applies Application's combined renderer and download state. */
|
|
41
42
|
setToolbarState(state: StudioToolbarState): void;
|
|
42
43
|
getViewportBottomInset(): number;
|