@babylonjs/inspector 9.2.0 → 9.2.2
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/lib/components/debug/debugPane.d.ts +1 -1
- package/lib/components/properties/postProcesses/postProcessProperties.d.ts +1 -1
- package/lib/components/properties/propertiesPane.d.ts +1 -1
- package/lib/components/properties/textures/texturePreview.d.ts +38 -0
- package/lib/components/scene/sceneExplorer.d.ts +5 -0
- package/lib/components/stats/statsPane.d.ts +1 -1
- package/lib/components/tools/toolsPane.d.ts +1 -1
- package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +1 -1
- package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +2 -2
- package/lib/{extensionsListService-eRZtqcfj.js → extensionsListService-B_R2ChvJ.js} +2 -2
- package/lib/extensionsListService-B_R2ChvJ.js.map +1 -0
- package/lib/hooks/settingsHooks.d.ts +0 -8
- package/lib/{index-FWuITINA.js → index-DB_fpb1t.js} +550 -234
- package/lib/index-DB_fpb1t.js.map +1 -0
- package/lib/index.d.ts +25 -21
- package/lib/index.js +1 -1
- package/lib/inspectable.d.ts +6 -1
- package/lib/inspector.d.ts +1 -1
- package/lib/legacy/inspectableCustomPropertiesService.d.ts +1 -1
- package/lib/misc/textureTools.d.ts +2 -1
- package/lib/{quickCreateToolsService-MzZbVrvr.js → quickCreateToolsService-DaBqYmZw.js} +2 -2
- package/lib/{quickCreateToolsService-MzZbVrvr.js.map → quickCreateToolsService-DaBqYmZw.js.map} +1 -1
- package/lib/{reflectorService-DdPEZLjO.js → reflectorService-5IVRhqd-.js} +2 -2
- package/lib/reflectorService-5IVRhqd-.js.map +1 -0
- package/lib/services/cli/cliConnectionStatus.d.ts +10 -4
- package/lib/services/cli/entityQueryService.d.ts +1 -1
- package/lib/services/cli/inspectableBridgeService.d.ts +5 -1
- package/lib/services/cli/inspectableCommandRegistry.d.ts +1 -1
- package/lib/services/cli/perfTraceCommandService.d.ts +1 -1
- package/lib/services/cli/screenshotCommandService.d.ts +1 -1
- package/lib/services/cli/shaderCommandService.d.ts +1 -1
- package/lib/services/cli/statsCommandService.d.ts +1 -1
- package/lib/services/cliConnectionStatusService.d.ts +2 -2
- package/lib/services/gizmoService.d.ts +1 -1
- package/lib/services/gizmoToolbarService.d.ts +2 -2
- package/lib/services/globalSettings.d.ts +2 -3
- package/lib/services/highlightService.d.ts +3 -3
- package/lib/services/inspectorSettingsService.d.ts +3 -0
- package/lib/services/miniStatsService.d.ts +2 -2
- package/lib/services/panes/debugService.d.ts +3 -3
- package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/animationPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/atmospherePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/audioPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/cameraPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/commonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/lightPropertiesServices.d.ts +1 -1
- package/lib/services/panes/properties/materialPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/metadataPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/nodePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/physicsPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/postProcessPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/propertiesService.d.ts +3 -3
- package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/scenePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/skeletonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/spritePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/texturePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/transformPropertiesService.d.ts +1 -1
- package/lib/services/panes/scene/animationGroupExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/atmosphereExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/disposableCommandService.d.ts +1 -1
- package/lib/services/panes/scene/effectLayersExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/frameGraphExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/guiExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/materialExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/nodeExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/particleSystemExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/postProcessExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/sceneExplorerService.d.ts +2 -2
- package/lib/services/panes/scene/skeletonExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/soundExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/texturesExplorerService.d.ts +1 -1
- package/lib/services/panes/statsService.d.ts +3 -3
- package/lib/services/panes/tools/captureService.d.ts +1 -1
- package/lib/services/panes/tools/exportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +4 -2
- package/lib/services/panes/tools/import/gltfValidationService.d.ts +1 -1
- package/lib/services/panes/tools/reflectorService.d.ts +1 -1
- package/lib/services/panes/toolsService.d.ts +3 -3
- package/lib/services/pickingService.d.ts +3 -3
- package/lib/services/sceneContext.d.ts +1 -1
- package/lib/services/selectionService.d.ts +4 -4
- package/lib/services/textureEditor/textureEditorService.d.ts +1 -1
- package/lib/services/userFeedbackService.d.ts +2 -2
- package/lib/services/watcherService.d.ts +5 -5
- package/package.json +1 -1
- package/lib/components/errorBoundary.d.ts +0 -31
- package/lib/components/extensibleAccordion.d.ts +0 -67
- package/lib/components/pane.d.ts +0 -4
- package/lib/components/teachingMoment.d.ts +0 -20
- package/lib/components/theme.d.ts +0 -10
- package/lib/components/uxContextProvider.d.ts +0 -2
- package/lib/contexts/extensionManagerContext.d.ts +0 -6
- package/lib/contexts/settingsContext.d.ts +0 -3
- package/lib/extensibility/builtInsExtensionFeed.d.ts +0 -21
- package/lib/extensibility/extensionFeed.d.ts +0 -113
- package/lib/extensibility/extensionManager.d.ts +0 -111
- package/lib/extensionsListService-eRZtqcfj.js.map +0 -1
- package/lib/hooks/observableHooks.d.ts +0 -35
- package/lib/hooks/resourceHooks.d.ts +0 -20
- package/lib/hooks/teachingMomentHooks.d.ts +0 -34
- package/lib/hooks/themeHooks.d.ts +0 -17
- package/lib/hooks/useResizeHandle.d.ts +0 -35
- package/lib/index-FWuITINA.js.map +0 -1
- package/lib/misc/assert.d.ts +0 -5
- package/lib/misc/graphUtils.d.ts +0 -44
- package/lib/misc/observableCollection.d.ts +0 -23
- package/lib/modularTool.d.ts +0 -42
- package/lib/modularity/serviceContainer.d.ts +0 -64
- package/lib/modularity/serviceDefinition.d.ts +0 -64
- package/lib/reflectorService-DdPEZLjO.js.map +0 -1
- package/lib/services/extensionsListService.d.ts +0 -3
- package/lib/services/panes/settingsService.d.ts +0 -25
- package/lib/services/reactContextService.d.ts +0 -18
- package/lib/services/settingsStore.d.ts +0 -55
- package/lib/services/shellService.d.ts +0 -256
- package/lib/services/shellSettingsService.d.ts +0 -3
- package/lib/services/themeSelectorService.d.ts +0 -3
- package/lib/services/themeService.d.ts +0 -60
- package/lib/themes/babylonTheme.d.ts +0 -3
package/lib/misc/assert.d.ts
DELETED
package/lib/misc/graphUtils.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Performs a topological sort on a graph.
|
|
3
|
-
* @param graph The set of nodes that make up the graph.
|
|
4
|
-
* @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
|
|
5
|
-
* @param onSortedNode A function that is called for each node in the sorted order.
|
|
6
|
-
* @remarks
|
|
7
|
-
* This function allocates. Do not use it in the hot path. Instead use an instance of GraphUtils.
|
|
8
|
-
*/
|
|
9
|
-
export declare function SortGraph<NodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT>, onSortedNode: (node: NodeT) => void): void;
|
|
10
|
-
/**
|
|
11
|
-
* Traverses a graph.
|
|
12
|
-
* @param graph The set of nodes that make up the graph.
|
|
13
|
-
* @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
|
|
14
|
-
* @param onBeforeTraverse A function that is called before traversing each node.
|
|
15
|
-
* @param onAfterTraverse A function that is called after traversing each node.
|
|
16
|
-
* @remarks
|
|
17
|
-
* This function allocates. Do not use it in the hot path. Instead use an instance of GraphUtils.
|
|
18
|
-
*/
|
|
19
|
-
export declare function TraverseGraph<NodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT> | null | undefined, onBeforeTraverse?: (node: NodeT) => void, onAfterTraverse?: (node: NodeT) => void): void;
|
|
20
|
-
/**
|
|
21
|
-
* A utility class for performing graph operations.
|
|
22
|
-
* @remarks
|
|
23
|
-
* The class allocates new objects, but each operation (e.g. sort, traverse) is allocation free. This is useful when used in the hot path.
|
|
24
|
-
*/
|
|
25
|
-
export declare class GraphUtils<DefaultNodeT = unknown> {
|
|
26
|
-
private readonly _traversalState;
|
|
27
|
-
private _isTraversing;
|
|
28
|
-
/**
|
|
29
|
-
* Performs a topological sort on a graph.
|
|
30
|
-
* @param graph The set of nodes that make up the graph.
|
|
31
|
-
* @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
|
|
32
|
-
* @param onSortedNode A function that is called for each node in the sorted order.
|
|
33
|
-
*/
|
|
34
|
-
sort<NodeT extends DefaultNodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT>, onSortedNode: (node: NodeT) => void): void;
|
|
35
|
-
/**
|
|
36
|
-
* Traverses a graph.
|
|
37
|
-
* @param graph The set of nodes that make up the graph.
|
|
38
|
-
* @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
|
|
39
|
-
* @param onBeforeTraverse A function that is called before traversing each node.
|
|
40
|
-
* @param onAfterTraverse A function that is called after traversing each node.
|
|
41
|
-
*/
|
|
42
|
-
traverse<NodeT extends DefaultNodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT> | null | undefined, onBeforeTraverse?: (node: NodeT) => void, onAfterTraverse?: (node: NodeT) => void): void;
|
|
43
|
-
private _traverseCore;
|
|
44
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type IDisposable, type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* A collection of items that can be observed for changes.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ObservableCollection<T> {
|
|
6
|
-
private readonly _items;
|
|
7
|
-
private readonly _keys;
|
|
8
|
-
private readonly _observable;
|
|
9
|
-
/**
|
|
10
|
-
* An observable that notifies observers when the collection changes.
|
|
11
|
-
*/
|
|
12
|
-
get observable(): IReadonlyObservable<void>;
|
|
13
|
-
/**
|
|
14
|
-
* The items in the collection.
|
|
15
|
-
*/
|
|
16
|
-
get items(): readonly T[];
|
|
17
|
-
/**
|
|
18
|
-
* Adds an item to the collection.
|
|
19
|
-
* @param item The item to add.
|
|
20
|
-
* @returns A disposable that removes the item from the collection when disposed.
|
|
21
|
-
*/
|
|
22
|
-
add(item: T): IDisposable;
|
|
23
|
-
}
|
package/lib/modularTool.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type IExtensionFeed } from "./extensibility/extensionFeed";
|
|
3
|
-
import { type WeaklyTypedServiceDefinition, ServiceContainer } from "./modularity/serviceContainer";
|
|
4
|
-
import { type ShellServiceOptions } from "./services/shellService";
|
|
5
|
-
import { type ThemeMode } from "./services/themeService";
|
|
6
|
-
export type ModularToolOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* The namespace for the tool, used for scoping persisted settings and other storage.
|
|
9
|
-
*/
|
|
10
|
-
namespace: string;
|
|
11
|
-
/**
|
|
12
|
-
* The container element where the tool will be rendered.
|
|
13
|
-
*/
|
|
14
|
-
containerElement: HTMLElement;
|
|
15
|
-
/**
|
|
16
|
-
* The service definitions to be registered with the tool.
|
|
17
|
-
*/
|
|
18
|
-
serviceDefinitions: readonly WeaklyTypedServiceDefinition[];
|
|
19
|
-
/**
|
|
20
|
-
* The theme mode to use. If not specified, the default is "system", which uses the system/browser preference, and the last used mode is persisted.
|
|
21
|
-
*/
|
|
22
|
-
themeMode?: ThemeMode;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to show the theme selector in the toolbar. Default is true.
|
|
25
|
-
*/
|
|
26
|
-
showThemeSelector?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The extension feeds that provide optional extensions the user can install.
|
|
29
|
-
*/
|
|
30
|
-
extensionFeeds?: readonly IExtensionFeed[];
|
|
31
|
-
/**
|
|
32
|
-
* An optional parent ServiceContainer. Dependencies not found in the tool's own container
|
|
33
|
-
* will be resolved from this parent.
|
|
34
|
-
*/
|
|
35
|
-
parentContainer?: ServiceContainer;
|
|
36
|
-
} & ShellServiceOptions;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a modular tool with a base set of common tool services, including the toolbar/side pane basic UI layout.
|
|
39
|
-
* @param options The options for the tool.
|
|
40
|
-
* @returns A token that can be used to dispose of the tool.
|
|
41
|
-
*/
|
|
42
|
-
export declare function MakeModularTool(options: ModularToolOptions): IDisposable;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type IService, type ServiceDefinition } from "./serviceDefinition";
|
|
3
|
-
export type WeaklyTypedServiceDefinition = Omit<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>, "factory"> & {
|
|
4
|
-
/**
|
|
5
|
-
* A factory function responsible for creating a service instance.
|
|
6
|
-
*/
|
|
7
|
-
factory: (...args: any) => ReturnType<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>["factory"]>;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* A service container manages the lifetimes of a set of services.
|
|
11
|
-
* It takes care of instantiating the services in the correct order based on their dependencies,
|
|
12
|
-
* passing dependencies through to services, and disposing of services when the container is disposed.
|
|
13
|
-
*/
|
|
14
|
-
export declare class ServiceContainer implements IDisposable {
|
|
15
|
-
private readonly _friendlyName;
|
|
16
|
-
private readonly _parent?;
|
|
17
|
-
private _isDisposed;
|
|
18
|
-
private readonly _serviceDefinitions;
|
|
19
|
-
private readonly _serviceDependents;
|
|
20
|
-
private readonly _serviceInstances;
|
|
21
|
-
private readonly _children;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new ServiceContainer.
|
|
24
|
-
* @param _friendlyName A human-readable name for debugging.
|
|
25
|
-
* @param _parent An optional parent container. Dependencies not found locally will be resolved from the parent.
|
|
26
|
-
*/
|
|
27
|
-
constructor(_friendlyName: string, _parent?: ServiceContainer | undefined);
|
|
28
|
-
/**
|
|
29
|
-
* Adds a set of service definitions in the service container.
|
|
30
|
-
* The services are sorted based on their dependencies.
|
|
31
|
-
* @param args The service definitions to register, and optionally an abort signal.
|
|
32
|
-
* @returns A disposable that will remove the service definition from the service container.
|
|
33
|
-
*/
|
|
34
|
-
addServicesAsync(...args: WeaklyTypedServiceDefinition[] | [...serviceDefinitions: WeaklyTypedServiceDefinition[], abortSignal: AbortSignal]): Promise<IDisposable>;
|
|
35
|
-
/**
|
|
36
|
-
* Registers a service definition in the service container.
|
|
37
|
-
* @param serviceDefinition The service definition to register.
|
|
38
|
-
* @param abortSignal An optional abort signal.
|
|
39
|
-
* @returns A disposable that will remove the service definition from the service container.
|
|
40
|
-
*/
|
|
41
|
-
addServiceAsync<Produces extends IService<symbol>[] = [], Consumes extends IService<symbol>[] = []>(serviceDefinition: ServiceDefinition<Produces, Consumes>, abortSignal?: AbortSignal): Promise<IDisposable>;
|
|
42
|
-
private _addServiceAsync;
|
|
43
|
-
/**
|
|
44
|
-
* Resolves a dependency by contract identity for a consuming service.
|
|
45
|
-
* Checks local services first, then walks up the parent chain.
|
|
46
|
-
* Registers the consumer as a dependent in whichever container owns the dependency.
|
|
47
|
-
* @param contract The contract identity to resolve.
|
|
48
|
-
* @param consumer The service definition that consumes this dependency.
|
|
49
|
-
* @returns The resolved service instance.
|
|
50
|
-
*/
|
|
51
|
-
private _resolveDependency;
|
|
52
|
-
/**
|
|
53
|
-
* Removes a consumer from the dependent set for a given contract, checking locally first then the parent chain.
|
|
54
|
-
* @param contract The contract identity.
|
|
55
|
-
* @param consumer The service definition to remove as a dependent.
|
|
56
|
-
*/
|
|
57
|
-
private _removeDependentFromChain;
|
|
58
|
-
private _removeService;
|
|
59
|
-
/**
|
|
60
|
-
* Disposes the service container and all contained services.
|
|
61
|
-
* Throws if this container is still a parent of any live child containers.
|
|
62
|
-
*/
|
|
63
|
-
dispose(): void;
|
|
64
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* A helper to create a service factory function from a class constructor.
|
|
4
|
-
* @param constructor The class to create a factory function for.
|
|
5
|
-
* @returns A factory function that creates an instance of the class.
|
|
6
|
-
*/
|
|
7
|
-
export declare function ConstructorFactory<Class extends new (...args: any) => any>(constructor: Class): (...args: ConstructorParameters<Class>) => InstanceType<Class>;
|
|
8
|
-
declare const Contract: unique symbol;
|
|
9
|
-
/**
|
|
10
|
-
* This interface must be implemented by all service contracts.
|
|
11
|
-
*/
|
|
12
|
-
export interface IService<ContractIdentity extends symbol> {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
readonly [Contract]?: ContractIdentity;
|
|
17
|
-
}
|
|
18
|
-
type ExtractContractIdentity<ServiceContract extends IService<symbol>> = ServiceContract extends IService<infer ContractIdentity> ? ContractIdentity : never;
|
|
19
|
-
type ExtractContractIdentities<ServiceContracts extends IService<symbol>[]> = {
|
|
20
|
-
[Index in keyof ServiceContracts]: ExtractContractIdentity<ServiceContracts[Index]>;
|
|
21
|
-
};
|
|
22
|
-
type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends (k: infer Intersection) => void ? Intersection : never;
|
|
23
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
24
|
-
/**
|
|
25
|
-
* A factory function responsible for creating a service instance.
|
|
26
|
-
* Consumed services are passed as arguments to the factory function.
|
|
27
|
-
* The returned value must implement all produced services, and may IDisposable.
|
|
28
|
-
* If not services are produced, the returned value may implement IDisposable, otherwise it may return void.
|
|
29
|
-
*/
|
|
30
|
-
export type ServiceFactory<Produces extends IService<symbol>[], Consumes extends IService<symbol>[]> = (...dependencies: [...Consumes, abortSignal?: AbortSignal]) => MaybePromise<Produces extends [] ? Partial<IDisposable> | void : Partial<IDisposable> & UnionToIntersection<Produces[number]>>;
|
|
31
|
-
/**
|
|
32
|
-
* Defines a service, which is a logical unit that consumes other services (dependencies), and optionally produces services that can be consumed by other services (dependents).
|
|
33
|
-
*/
|
|
34
|
-
export type ServiceDefinition<Produces extends IService<symbol>[] = [], Consumes extends IService<symbol>[] = []> = {
|
|
35
|
-
/**
|
|
36
|
-
* A human readable name for the service to help with debugging.
|
|
37
|
-
*/
|
|
38
|
-
friendlyName: string;
|
|
39
|
-
/**
|
|
40
|
-
* A function that instantiates the service.
|
|
41
|
-
*/
|
|
42
|
-
factory: ServiceFactory<Produces, Consumes>;
|
|
43
|
-
} & (Produces extends [] ? {
|
|
44
|
-
/**
|
|
45
|
-
* An empty list or undefined, since the type specification has indicated no contracts are produced.
|
|
46
|
-
*/
|
|
47
|
-
produces?: [];
|
|
48
|
-
} : {
|
|
49
|
-
/**
|
|
50
|
-
* The list of contract identities that this service produces for consumption by other services.
|
|
51
|
-
*/
|
|
52
|
-
produces: ExtractContractIdentities<Produces>;
|
|
53
|
-
}) & (Consumes extends [] ? {
|
|
54
|
-
/**
|
|
55
|
-
* An empty list or undefined, since the type specification has indicated that no other services are consumed.
|
|
56
|
-
*/
|
|
57
|
-
consumes?: [];
|
|
58
|
-
} : {
|
|
59
|
-
/**
|
|
60
|
-
* The list of contract identities of other services that this service consumes.
|
|
61
|
-
*/
|
|
62
|
-
consumes: ExtractContractIdentities<Consumes>;
|
|
63
|
-
});
|
|
64
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflectorService-DdPEZLjO.js","sources":["../../../../../../../../dev/inspector-v2/src/components/tools/reflectorTools.tsx","../../../../../../../../dev/inspector-v2/src/services/panes/tools/reflectorService.tsx"],"sourcesContent":["import { ButtonLine } from \"shared-ui-components/fluent/hoc/buttonLine\";\r\nimport { useState, useCallback, useRef, type FunctionComponent } from \"react\";\r\nimport { type Scene } from \"core/scene\";\r\nimport { TextInputPropertyLine, NumberInputPropertyLine } from \"shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine\";\r\nimport { Reflector } from \"core/Misc/reflector\";\r\nimport { PlugConnectedRegular } from \"@fluentui/react-icons\";\r\n\r\nexport const ReflectorTools: FunctionComponent<{ scene: Scene }> = ({ scene }) => {\r\n const [hostname, setHostname] = useState(\"localhost\");\r\n const [port, setPort] = useState(1234);\r\n const reflectorRef = useRef<Reflector | null>(null);\r\n\r\n const connectReflector = useCallback(() => {\r\n if (reflectorRef.current) {\r\n reflectorRef.current.close();\r\n }\r\n\r\n reflectorRef.current = new Reflector(scene, hostname, port);\r\n }, [scene, hostname, port]);\r\n\r\n return (\r\n <>\r\n <TextInputPropertyLine label=\"Hostname\" value={hostname} onChange={(value) => setHostname(value)} />\r\n <NumberInputPropertyLine label=\"Port\" value={port} onChange={(value) => setPort(value)} forceInt />\r\n <ButtonLine label=\"Connect\" icon={PlugConnectedRegular} onClick={connectReflector} />\r\n </>\r\n );\r\n};\r\n","import { type ServiceDefinition } from \"../../../modularity/serviceDefinition\";\r\nimport { ToolsServiceIdentity, type IToolsService } from \"../toolsService\";\r\nimport { type IDisposable } from \"core/scene\";\r\nimport { ReflectorTools } from \"../../../components/tools/reflectorTools\";\r\n\r\nexport const ReflectorServiceDefinition: ServiceDefinition<[], [IToolsService]> = {\r\n friendlyName: \"Reflector Tools\",\r\n consumes: [ToolsServiceIdentity],\r\n factory: (toolsService) => {\r\n const contentRegistrations: IDisposable[] = [];\r\n\r\n // Reflector content\r\n contentRegistrations.push(\r\n toolsService.addSectionContent({\r\n key: \"Reflector\",\r\n section: \"Reflector\",\r\n component: ({ context }) => <ReflectorTools scene={context} />,\r\n })\r\n );\r\n\r\n return {\r\n dispose: () => {\r\n contentRegistrations.forEach((registration) => registration.dispose());\r\n },\r\n };\r\n },\r\n};\r\n\r\nexport default {\r\n serviceDefinitions: [ReflectorServiceDefinition],\r\n} as const;\r\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,cAAc,GAAwC,CAAC,EAAE,KAAK,EAAE,KAAI;IAC7E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC;IACrD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;AACtC,IAAA,MAAM,YAAY,GAAG,MAAM,CAAmB,IAAI,CAAC;AAEnD,IAAA,MAAM,gBAAgB,GAAG,WAAW,CAAC,MAAK;AACtC,QAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE;QAChC;AAEA,QAAA,YAAY,CAAC,OAAO,GAAG,IAAI,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC;IAC/D,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AAE3B,IAAA,QACIA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACIC,GAAA,CAAC,qBAAqB,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,WAAW,CAAC,KAAK,CAAC,EAAA,CAAI,EACpGA,GAAA,CAAC,uBAAuB,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAA,IAAA,EAAA,CAAG,EACnGA,GAAA,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,gBAAgB,EAAA,CAAI,CAAA,EAAA,CACtF;AAEX,CAAC;;ACtBM,MAAM,0BAA0B,GAA2C;AAC9E,IAAA,YAAY,EAAE,iBAAiB;IAC/B,QAAQ,EAAE,CAAC,oBAAoB,CAAC;AAChC,IAAA,OAAO,EAAE,CAAC,YAAY,KAAI;QACtB,MAAM,oBAAoB,GAAkB,EAAE;;AAG9C,QAAA,oBAAoB,CAAC,IAAI,CACrB,YAAY,CAAC,iBAAiB,CAAC;AAC3B,YAAA,GAAG,EAAE,WAAW;AAChB,YAAA,OAAO,EAAE,WAAW;AACpB,YAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,KAAKA,GAAA,CAAC,cAAc,EAAA,EAAC,KAAK,EAAE,OAAO,EAAA,CAAI;AACjE,SAAA,CAAC,CACL;QAED,OAAO;YACH,OAAO,EAAE,MAAK;AACV,gBAAA,oBAAoB,CAAC,OAAO,CAAC,CAAC,YAAY,KAAK,YAAY,CAAC,OAAO,EAAE,CAAC;YAC1E,CAAC;SACJ;IACL,CAAC;;AAGL,uBAAe;IACX,kBAAkB,EAAE,CAAC,0BAA0B,CAAC;CAC1C;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type IDisposable, type Scene } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
|
|
3
|
-
import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
|
|
4
|
-
import { type ISceneContext } from "../sceneContext";
|
|
5
|
-
import { type IShellService } from "../shellService";
|
|
6
|
-
/**
|
|
7
|
-
* The unique identity symbol for the settings service.
|
|
8
|
-
*/
|
|
9
|
-
export declare const SettingsServiceIdentity: unique symbol;
|
|
10
|
-
/**
|
|
11
|
-
* Allows new sections or content to be added to the Settings pane.
|
|
12
|
-
*/
|
|
13
|
-
export interface ISettingsService extends IService<typeof SettingsServiceIdentity> {
|
|
14
|
-
/**
|
|
15
|
-
* Adds a new section to the settings pane.
|
|
16
|
-
* @param section A description of the section to add.
|
|
17
|
-
*/
|
|
18
|
-
addSection(section: DynamicAccordionSection): IDisposable;
|
|
19
|
-
/**
|
|
20
|
-
* Adds content to one or more sections in the settings pane.
|
|
21
|
-
* @param content A description of the content to add.
|
|
22
|
-
*/
|
|
23
|
-
addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
|
|
24
|
-
}
|
|
25
|
-
export declare const SettingsServiceDefinition: ServiceDefinition<[ISettingsService], [IShellService, ISceneContext]>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type Context } from "react";
|
|
2
|
-
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
3
|
-
import { type IService } from "../modularity/serviceDefinition";
|
|
4
|
-
/**
|
|
5
|
-
* The unique identity symbol for the react context service.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ReactContextServiceIdentity: unique symbol;
|
|
8
|
-
export type ReactContextHandle<T> = IDisposable & {
|
|
9
|
-
updateValue: (newValue: T) => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* ReactContextService allows global React contexts to be added/removed/updated.
|
|
13
|
-
*/
|
|
14
|
-
export interface IReactContextService extends IService<typeof ReactContextServiceIdentity> {
|
|
15
|
-
addContext<T>(provider: Context<T>["Provider"], initialValue: T, options?: {
|
|
16
|
-
order?: number;
|
|
17
|
-
}): ReactContextHandle<T>;
|
|
18
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type IService } from "../modularity/serviceDefinition";
|
|
3
|
-
/**
|
|
4
|
-
* The unique identity symbol for the settings store service.
|
|
5
|
-
*/
|
|
6
|
-
export declare const SettingsStoreIdentity: unique symbol;
|
|
7
|
-
/**
|
|
8
|
-
* Describes a setting by its key and default value.
|
|
9
|
-
*/
|
|
10
|
-
export type SettingDescriptor<T> = {
|
|
11
|
-
/**
|
|
12
|
-
* The unique key used to identify this setting in the store.
|
|
13
|
-
*/
|
|
14
|
-
readonly key: string;
|
|
15
|
-
/**
|
|
16
|
-
* The default value to use when the setting has not been explicitly set.
|
|
17
|
-
*/
|
|
18
|
-
readonly defaultValue: T;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Provides a key-value store for persisting user settings.
|
|
22
|
-
*/
|
|
23
|
-
export interface ISettingsStore extends IService<typeof SettingsStoreIdentity> {
|
|
24
|
-
/**
|
|
25
|
-
* An observable that notifies when a setting has changed, providing the key of the changed setting.
|
|
26
|
-
*/
|
|
27
|
-
onChanged: IReadonlyObservable<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Reads a setting from the store.
|
|
30
|
-
* @param descriptor The descriptor of the setting to read.
|
|
31
|
-
* @returns The current value of the setting, or the default value if it has not been set.
|
|
32
|
-
*/
|
|
33
|
-
readSetting<T>(descriptor: SettingDescriptor<T>): T;
|
|
34
|
-
/**
|
|
35
|
-
* Writes a setting to the store.
|
|
36
|
-
* @param descriptor The descriptor of the setting to write.
|
|
37
|
-
* @param value The value to write.
|
|
38
|
-
*/
|
|
39
|
-
writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Default implementation of {@link ISettingsStore} that persists settings using browser local storage.
|
|
43
|
-
*/
|
|
44
|
-
export declare class SettingsStore implements ISettingsStore {
|
|
45
|
-
private readonly _namespace;
|
|
46
|
-
private readonly _onChanged;
|
|
47
|
-
/**
|
|
48
|
-
* Creates a new settings store.
|
|
49
|
-
* @param _namespace A namespace used to scope the settings keys to avoid collisions with other stores.
|
|
50
|
-
*/
|
|
51
|
-
constructor(_namespace: string);
|
|
52
|
-
get onChanged(): IReadonlyObservable<Readonly<string>>;
|
|
53
|
-
readSetting<T>(descriptor: SettingDescriptor<T>): T;
|
|
54
|
-
writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
|
|
55
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { type ComponentType } from "react";
|
|
2
|
-
import { type IDisposable, type Nullable } from "@babylonjs/core/index.js";
|
|
3
|
-
import { type IService, type ServiceDefinition } from "../modularity/serviceDefinition";
|
|
4
|
-
import { type SettingDescriptor } from "./settingsStore";
|
|
5
|
-
/**
|
|
6
|
-
* Setting descriptor for persisting side pane dock location overrides.
|
|
7
|
-
*/
|
|
8
|
-
export declare const SidePaneDockOverridesSettingDescriptor: SettingDescriptor<Record<string, Readonly<{
|
|
9
|
-
horizontalLocation: HorizontalLocation;
|
|
10
|
-
verticalLocation: VerticalLocation;
|
|
11
|
-
}> | undefined>>;
|
|
12
|
-
/**
|
|
13
|
-
* Setting descriptor for persisting the left side pane width adjustment.
|
|
14
|
-
*/
|
|
15
|
-
export declare const LeftSidePaneWidthAdjustSettingDescriptor: SettingDescriptor<number>;
|
|
16
|
-
/**
|
|
17
|
-
* Setting descriptor for persisting the left side pane height adjustment.
|
|
18
|
-
*/
|
|
19
|
-
export declare const LeftSidePaneHeightAdjustSettingDescriptor: SettingDescriptor<number>;
|
|
20
|
-
/**
|
|
21
|
-
* Setting descriptor for persisting the right side pane width adjustment.
|
|
22
|
-
*/
|
|
23
|
-
export declare const RightSidePaneWidthAdjustSettingDescriptor: SettingDescriptor<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Setting descriptor for persisting the right side pane height adjustment.
|
|
26
|
-
*/
|
|
27
|
-
export declare const RightSidePaneHeightAdjustSettingDescriptor: SettingDescriptor<number>;
|
|
28
|
-
/**
|
|
29
|
-
* Represents a horizontal location in the shell layout.
|
|
30
|
-
*/
|
|
31
|
-
export type HorizontalLocation = "left" | "right";
|
|
32
|
-
/**
|
|
33
|
-
* Represents a vertical location in the shell layout.
|
|
34
|
-
*/
|
|
35
|
-
export type VerticalLocation = "top" | "bottom";
|
|
36
|
-
type TeachingMomentInfo = boolean | {
|
|
37
|
-
readonly title: string;
|
|
38
|
-
readonly description: string;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Describes an item that can be added to one of the shell's toolbars.
|
|
42
|
-
*/
|
|
43
|
-
export type ToolbarItemDefinition = {
|
|
44
|
-
/**
|
|
45
|
-
* A unique key for the toolbar item.
|
|
46
|
-
*/
|
|
47
|
-
key: string;
|
|
48
|
-
/**
|
|
49
|
-
* The component to render for the toolbar item.
|
|
50
|
-
*/
|
|
51
|
-
component: ComponentType;
|
|
52
|
-
/**
|
|
53
|
-
* An optional order for the toolbar item, relative to other items.
|
|
54
|
-
* Defaults to 0.
|
|
55
|
-
*/
|
|
56
|
-
order?: number;
|
|
57
|
-
/**
|
|
58
|
-
* The horizontal location of the toolbar item.
|
|
59
|
-
* Can be either "left" or "right".
|
|
60
|
-
* In "compact" toolbar mode, "left" and "right" mean the "compact" toolbars at the top/bottom of the left/right side panes.
|
|
61
|
-
* In "full" toolbar mode, "left" and "right" mean the left side and right side of the full width toolbars above/below the side panes.
|
|
62
|
-
*/
|
|
63
|
-
horizontalLocation: HorizontalLocation;
|
|
64
|
-
/**
|
|
65
|
-
* The vertical location of the toolbar item.
|
|
66
|
-
* Can be either "top" or "bottom".
|
|
67
|
-
*/
|
|
68
|
-
verticalLocation: VerticalLocation;
|
|
69
|
-
/**
|
|
70
|
-
* An optional display name for the toolbar item, used for teaching moments, tooltips, etc.
|
|
71
|
-
*/
|
|
72
|
-
displayName?: string;
|
|
73
|
-
/**
|
|
74
|
-
* An optional teaching moment info. The default assumes the toolbar item was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
|
|
75
|
-
* Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
|
|
76
|
-
* Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
|
|
77
|
-
* Teaching moments are more helpful for dynamically added items, possibly from extensions.
|
|
78
|
-
*/
|
|
79
|
-
teachingMoment?: TeachingMomentInfo;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Describes a side pane that can be added to the shell's left or right side.
|
|
83
|
-
*/
|
|
84
|
-
export type SidePaneDefinition = {
|
|
85
|
-
/**
|
|
86
|
-
* A unique key for the side pane.
|
|
87
|
-
*/
|
|
88
|
-
key: string;
|
|
89
|
-
/**
|
|
90
|
-
* An icon component to render for the pane tab.
|
|
91
|
-
*/
|
|
92
|
-
icon: ComponentType;
|
|
93
|
-
/**
|
|
94
|
-
* The component to render for the side pane's content.
|
|
95
|
-
*/
|
|
96
|
-
content: ComponentType;
|
|
97
|
-
/**
|
|
98
|
-
* An optional order for the side pane, relative to other panes.
|
|
99
|
-
* Defaults to 0.
|
|
100
|
-
*/
|
|
101
|
-
order?: number;
|
|
102
|
-
/**
|
|
103
|
-
* The horizontal location of the side pane.
|
|
104
|
-
* Can be either "left" or "right".
|
|
105
|
-
*/
|
|
106
|
-
horizontalLocation: HorizontalLocation;
|
|
107
|
-
/**
|
|
108
|
-
* The vertical location of the side pane.
|
|
109
|
-
* Can be either "top" or "bottom".
|
|
110
|
-
*/
|
|
111
|
-
verticalLocation: VerticalLocation;
|
|
112
|
-
/**
|
|
113
|
-
* The title of the side pane, displayed as a standardized header at the top of the pane.
|
|
114
|
-
*/
|
|
115
|
-
title: string;
|
|
116
|
-
/**
|
|
117
|
-
* An optional teaching moment info. The default assumes the side pane was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
|
|
118
|
-
* Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
|
|
119
|
-
* Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
|
|
120
|
-
* Teaching moments are more helpful for dynamically added panes, possibly from extensions.
|
|
121
|
-
*/
|
|
122
|
-
teachingMoment?: TeachingMomentInfo;
|
|
123
|
-
/**
|
|
124
|
-
* Keep the pane mounted even when it is not visible. This is useful if you don't want the
|
|
125
|
-
* user to lose the complex visual state when switching between tabs.
|
|
126
|
-
*/
|
|
127
|
-
keepMounted?: boolean;
|
|
128
|
-
};
|
|
129
|
-
type RegisteredSidePane = {
|
|
130
|
-
readonly key: string;
|
|
131
|
-
select(): void;
|
|
132
|
-
};
|
|
133
|
-
type SidePaneContainer = {
|
|
134
|
-
readonly isDocked: boolean;
|
|
135
|
-
dock(): void;
|
|
136
|
-
undock(): void;
|
|
137
|
-
readonly isCollapsed: boolean;
|
|
138
|
-
collapse(): void;
|
|
139
|
-
expand(): void;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Describes content that can be added to the shell's central area (between the side panes and toolbars - e.g. the main content).
|
|
143
|
-
*/
|
|
144
|
-
export type CentralContentDefinition = {
|
|
145
|
-
/**
|
|
146
|
-
* A unique key for the central content.
|
|
147
|
-
*/
|
|
148
|
-
key: string;
|
|
149
|
-
/**
|
|
150
|
-
* The component to render for the central content.
|
|
151
|
-
*/
|
|
152
|
-
component: ComponentType;
|
|
153
|
-
/**
|
|
154
|
-
* An optional order for content, relative to other central content.
|
|
155
|
-
* Defaults to 0.
|
|
156
|
-
*/
|
|
157
|
-
order?: number;
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* The unique identity symbol for the root component service.
|
|
161
|
-
*/
|
|
162
|
-
export declare const RootComponentServiceIdentity: unique symbol;
|
|
163
|
-
/**
|
|
164
|
-
* Exposes a top level component that should be rendered as the React root.
|
|
165
|
-
*/
|
|
166
|
-
export interface IRootComponentService extends IService<typeof RootComponentServiceIdentity> {
|
|
167
|
-
/**
|
|
168
|
-
* The root component that should be rendered as the React root.
|
|
169
|
-
*/
|
|
170
|
-
readonly rootComponent: ComponentType;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* The unique identity symbol for the shell service.
|
|
174
|
-
*/
|
|
175
|
-
export declare const ShellServiceIdentity: unique symbol;
|
|
176
|
-
/**
|
|
177
|
-
* Provides a shell for the application, including toolbars, side panes, and central content.
|
|
178
|
-
* This service allows adding toolbar items, side panes, and central content dynamically.
|
|
179
|
-
*/
|
|
180
|
-
export interface IShellService extends IService<typeof ShellServiceIdentity> {
|
|
181
|
-
/**
|
|
182
|
-
* Adds a new item to one of the shell's toolbars.
|
|
183
|
-
* @param item Defines the item to add.
|
|
184
|
-
*/
|
|
185
|
-
addToolbarItem(item: Readonly<ToolbarItemDefinition>): IDisposable;
|
|
186
|
-
/**
|
|
187
|
-
* Adds a new side pane to the shell.
|
|
188
|
-
* @param pane Defines the side pane to add.
|
|
189
|
-
*/
|
|
190
|
-
addSidePane(pane: Readonly<SidePaneDefinition>): IDisposable;
|
|
191
|
-
/**
|
|
192
|
-
* Adds new central content to the shell.
|
|
193
|
-
* @param content Defines the content area to add.
|
|
194
|
-
*/
|
|
195
|
-
addCentralContent(content: Readonly<CentralContentDefinition>): IDisposable;
|
|
196
|
-
/**
|
|
197
|
-
* The left side pane container.
|
|
198
|
-
*/
|
|
199
|
-
readonly leftSidePaneContainer: Nullable<SidePaneContainer>;
|
|
200
|
-
/**
|
|
201
|
-
* The right side pane container.
|
|
202
|
-
*/
|
|
203
|
-
readonly rightSidePaneContainer: Nullable<SidePaneContainer>;
|
|
204
|
-
/**
|
|
205
|
-
* The side panes currently present in the shell.
|
|
206
|
-
*/
|
|
207
|
-
readonly sidePanes: readonly RegisteredSidePane[];
|
|
208
|
-
}
|
|
209
|
-
type ToolbarMode = "full" | "compact";
|
|
210
|
-
/**
|
|
211
|
-
* Options for configuring the shell service.
|
|
212
|
-
*/
|
|
213
|
-
export type ShellServiceOptions = {
|
|
214
|
-
/**
|
|
215
|
-
* The default width of the left side pane.
|
|
216
|
-
*/
|
|
217
|
-
leftPaneDefaultWidth?: number;
|
|
218
|
-
/**
|
|
219
|
-
* The minimum width of the left side pane.
|
|
220
|
-
*/
|
|
221
|
-
leftPaneMinWidth?: number;
|
|
222
|
-
/**
|
|
223
|
-
* The default width of the right side pane.
|
|
224
|
-
*/
|
|
225
|
-
rightPaneDefaultWidth?: number;
|
|
226
|
-
/**
|
|
227
|
-
* The minimum width of the right side pane.
|
|
228
|
-
*/
|
|
229
|
-
rightPaneMinWidth?: number;
|
|
230
|
-
/**
|
|
231
|
-
* The mode of the toolbars.
|
|
232
|
-
* Can be either "full" (default) or "compact".
|
|
233
|
-
* In "full" mode, toolbars are displayed above and below the side panes.
|
|
234
|
-
* In "compact" mode, toolbars are displayed at the top and bottom of the left and right side panes.
|
|
235
|
-
*/
|
|
236
|
-
toolbarMode?: ToolbarMode;
|
|
237
|
-
/**
|
|
238
|
-
* Whether the left side pane should start collapsed. Default is false.
|
|
239
|
-
*/
|
|
240
|
-
leftPaneDefaultCollapsed?: boolean;
|
|
241
|
-
/**
|
|
242
|
-
* Whether the right side pane should start collapsed. Default is false.
|
|
243
|
-
*/
|
|
244
|
-
rightPaneDefaultCollapsed?: boolean;
|
|
245
|
-
/**
|
|
246
|
-
* A function that can remap the default location of side panes.
|
|
247
|
-
* @param sidePane The side pane to remap.
|
|
248
|
-
* @returns The new location for the side pane.
|
|
249
|
-
*/
|
|
250
|
-
sidePaneRemapper?: (sidePane: Readonly<SidePaneDefinition>) => Nullable<{
|
|
251
|
-
horizontalLocation: HorizontalLocation;
|
|
252
|
-
verticalLocation: VerticalLocation;
|
|
253
|
-
}>;
|
|
254
|
-
};
|
|
255
|
-
export declare function MakeShellServiceDefinition({ leftPaneDefaultWidth, leftPaneMinWidth, rightPaneDefaultWidth, rightPaneMinWidth, leftPaneDefaultCollapsed, rightPaneDefaultCollapsed, toolbarMode, sidePaneRemapper, }?: ShellServiceOptions): ServiceDefinition<[IShellService, IRootComponentService], []>;
|
|
256
|
-
export {};
|