@babylonjs/inspector 8.29.1-preview → 8.29.2-preview

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/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { Vector3 as Vector3$1, Quaternion as Quaternion$1 } from '@babylonjs/cor
10
10
  import { IReadonlyObservable as IReadonlyObservable$2 } from '@babylonjs/core/Misc/observable.js';
11
11
  import { IDisposable as IDisposable$2, Scene as Scene$2 } from '@babylonjs/core/scene.js';
12
12
  import { IInspectorOptions as IInspectorOptions$1 } from '@babylonjs/core/Debug/debugLayer.js';
13
+ import { TernaryDarkMode } from 'usehooks-ts';
13
14
  import { FluentIcon } from '@fluentui/react-icons';
14
15
  import * as _fluentui_react_utilities from '@fluentui/react-utilities';
15
16
 
@@ -66,11 +67,7 @@ type InfoLabelParentProps = Omit<InfoLabelProps, "htmlFor">;
66
67
  */
67
68
  declare const InfoLabel: FunctionComponent<InfoLabelProps>;
68
69
 
69
- type ImmutablePrimitiveProps<ValueT> = {
70
- /**
71
- * The value of the property to be displayed and modified.
72
- */
73
- value: ValueT;
70
+ type BasePrimitiveProps = {
74
71
  /**
75
72
  * Optional flag to disable the component, preventing any interaction.
76
73
  */
@@ -83,6 +80,12 @@ type ImmutablePrimitiveProps<ValueT> = {
83
80
  * Optional title for the component, used for tooltips or accessibility.
84
81
  */
85
82
  title?: string;
83
+ };
84
+ type ImmutablePrimitiveProps<ValueT> = BasePrimitiveProps & {
85
+ /**
86
+ * The value of the property to be displayed and modified.
87
+ */
88
+ value: ValueT;
86
89
  /**
87
90
  * Optional information to display as an infoLabel popup aside the component.
88
91
  */
@@ -512,6 +515,27 @@ interface IExtensionFeed {
512
515
  getExtensionModuleAsync(name: string): Promise<ExtensionModule | undefined>;
513
516
  }
514
517
 
518
+ type BuiltInExtension = ExtensionMetadata & {
519
+ /**
520
+ * Gets the extension module, typically dynamically importing the extension.
521
+ * @returns The extension module (e.g. a collection of ServiceDefinitions).
522
+ */
523
+ getExtensionModuleAsync(): Promise<ExtensionModule>;
524
+ };
525
+ /**
526
+ * A simple extension feed implementation that provides a fixed set of "built in" extensions.
527
+ * "Built in" in this context means extensions that are known at bundling time, and included
528
+ * in the bundle. Each extension can be dynamically imported so they are split into separate
529
+ * bundle chunks and downloaded only when first installed.
530
+ */
531
+ declare class BuiltInsExtensionFeed implements IExtensionFeed {
532
+ readonly name: string;
533
+ private readonly _extensions;
534
+ constructor(name: string, extensions: Iterable<BuiltInExtension>);
535
+ queryExtensionsAsync(filter?: string): Promise<IExtensionMetadataQuery>;
536
+ getExtensionModuleAsync(name: string): Promise<ExtensionModule | undefined>;
537
+ }
538
+
515
539
  type PropertyKeys<TargetT, PropertyT> = {
516
540
  [PropertyKeyT in keyof TargetT]: TargetT[PropertyKeyT] extends PropertyT | null | undefined ? PropertyKeyT : never;
517
541
  }[keyof TargetT];
@@ -980,18 +1004,20 @@ type ModularToolOptions = {
980
1004
  */
981
1005
  serviceDefinitions: readonly WeaklyTypedServiceDefinition[];
982
1006
  /**
983
- * Whether the tool should allow user selection of the theme (e.g. dark/light/system).
1007
+ * 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.
984
1008
  */
985
- isThemeable?: boolean;
1009
+ themeMode?: TernaryDarkMode;
1010
+ /**
1011
+ * Whether to show the theme selector in the toolbar. Default is true.
1012
+ */
1013
+ showThemeSelector?: boolean;
986
1014
  /**
987
1015
  * The extension feeds that provide optional extensions the user can install.
988
1016
  */
989
1017
  extensionFeeds?: readonly IExtensionFeed[];
990
1018
  } & ShellServiceOptions;
991
1019
 
992
- type InspectorV2Options = Pick<ModularToolOptions, "serviceDefinitions" | "isThemeable"> & {
993
- isExtensible?: boolean;
994
- };
1020
+ type InspectorV2Options = Omit<ModularToolOptions, "containerElement">;
995
1021
  declare function IsInspectorVisible(): boolean;
996
1022
  declare function ShowInspector(scene: Scene$2, options?: Partial<IInspectorOptions$1 & InspectorV2Options>): void;
997
1023
  declare function HideInspector(): void;
@@ -1008,11 +1034,11 @@ type AccordionSectionProps = {
1008
1034
  declare const AccordionSection: FunctionComponent<PropsWithChildren<AccordionSectionProps>>;
1009
1035
  declare const Accordion: FunctionComponent<PropsWithChildren>;
1010
1036
 
1011
- type ButtonProps = {
1037
+ type ButtonProps = BasePrimitiveProps & {
1012
1038
  onClick: () => void;
1013
1039
  icon?: FluentIcon;
1014
- label: string;
1015
- disabled?: boolean;
1040
+ appearance?: "subtle" | "transparent";
1041
+ label?: string;
1016
1042
  };
1017
1043
  declare const Button: FunctionComponent<ButtonProps>;
1018
1044
 
@@ -68555,10 +68581,11 @@ type TextInputProps = PrimitiveProps<string> & {
68555
68581
  };
68556
68582
  declare const TextInput: FunctionComponent<TextInputProps>;
68557
68583
 
68558
- type ToggleButtonProps = PrimitiveProps<boolean> & {
68559
- enabledIcon: FluentIcon;
68560
- disabledIcon?: FluentIcon;
68561
- appearance?: "subtle" | "transparent";
68584
+ type ToggleButtonProps = Omit<ButtonProps, "icon" | "onClick"> & {
68585
+ value: boolean;
68586
+ checkedIcon: FluentIcon;
68587
+ uncheckedIcon?: FluentIcon;
68588
+ onChange: (checked: boolean) => void;
68562
68589
  };
68563
68590
  /**
68564
68591
  * Toggles between two states using a button with icons.
@@ -68569,15 +68596,19 @@ type ToggleButtonProps = PrimitiveProps<boolean> & {
68569
68596
  */
68570
68597
  declare const ToggleButton: FunctionComponent<ToggleButtonProps>;
68571
68598
 
68599
+ type ButtonLineProps = Omit<ButtonProps, "label"> & {
68600
+ label: string;
68601
+ };
68572
68602
  /**
68573
68603
  * Wraps a button with a label in a line container
68574
68604
  * @param props Button props plus a label
68575
68605
  * @returns A button inside a line
68576
68606
  */
68577
- declare const ButtonLine: FunctionComponent<ButtonProps>;
68607
+ declare const ButtonLine: FunctionComponent<ButtonLineProps>;
68578
68608
 
68579
- type FileUploadLineProps = Omit<ButtonProps, "onClick"> & {
68609
+ type FileUploadLineProps = Omit<ButtonProps, "onClick" | "label"> & {
68580
68610
  onClick: (files: FileList) => void;
68611
+ label: string;
68581
68612
  accept: string;
68582
68613
  };
68583
68614
  declare const FileUploadLine: FunctionComponent<FileUploadLineProps>;
@@ -68599,5 +68630,5 @@ type PaneProps = {
68599
68630
  };
68600
68631
  declare const Pane: FunctionComponent<PropsWithChildren<PaneProps>>;
68601
68632
 
68602
- export { Accordion, AccordionSection, BoundProperty, Button, ButtonLine, CalculatePrecision, Checkbox, Collapse, Color3GradientComponent, Color3GradientList, Color4GradientComponent, Color4GradientList, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ConstructorFactory, DebugServiceIdentity, DraggableLine, Dropdown, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, HideInspector, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsInspectorVisible, IsPropertyReadonly, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MessageBar, NumberDropdown, Pane, Pane$1 as PaneContainer, PositionedPopover, PropertiesServiceIdentity, SceneContextIdentity, SceneExplorerServiceIdentity, SearchBar, SearchBox, SelectionServiceDefinition, SelectionServiceIdentity, SettingsContextIdentity, SettingsServiceIdentity, ShellServiceIdentity, ShowInspector, SpinButton, StatsServiceIdentity, StringDropdown, Switch, SyncedSliderInput, TeachingMoment, TextInput, Textarea, ToggleButton, ToolsServiceIdentity, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useEventfulState, useInterceptObservable, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, useQuaternionProperty, useResource, useVector3Property };
68603
- export type { AcceptedDropdownValue, AccordionSectionProps, BoundPropertyProps, ButtonProps, CentralContent, ColorPickerProps, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityBase, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, ListItem, PaneProps, PrimitiveProps, PropertyHooks, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, ServiceDefinition, ServiceFactory, SidePane, SpinButtonProps, SwitchProps, SyncedSliderProps, TextInputProps, TextareaProps, ToolbarItem };
68633
+ export { Accordion, AccordionSection, BoundProperty, BuiltInsExtensionFeed, Button, ButtonLine, CalculatePrecision, Checkbox, Collapse, Color3GradientComponent, Color3GradientList, Color4GradientComponent, Color4GradientList, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ConstructorFactory, DebugServiceIdentity, DraggableLine, Dropdown, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, HideInspector, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsInspectorVisible, IsPropertyReadonly, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MessageBar, NumberDropdown, Pane, Pane$1 as PaneContainer, PositionedPopover, PropertiesServiceIdentity, SceneContextIdentity, SceneExplorerServiceIdentity, SearchBar, SearchBox, SelectionServiceDefinition, SelectionServiceIdentity, SettingsContextIdentity, SettingsServiceIdentity, ShellServiceIdentity, ShowInspector, SpinButton, StatsServiceIdentity, StringDropdown, Switch, SyncedSliderInput, TeachingMoment, TextInput, Textarea, ToggleButton, ToolsServiceIdentity, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useEventfulState, useInterceptObservable, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, useQuaternionProperty, useResource, useVector3Property };
68634
+ export type { AcceptedDropdownValue, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContent, ColorPickerProps, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityBase, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, ListItem, PaneProps, PrimitiveProps, PropertyHooks, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, ServiceDefinition, ServiceFactory, SidePane, SpinButtonProps, SwitchProps, SyncedSliderProps, TextInputProps, TextareaProps, ToolbarItem };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Z as Accordion, Y as AccordionSection, h as BoundProperty, _ as Button, B as ButtonLine, aj as CalculatePrecision, $ as Checkbox, C as Collapse, a9 as Color3GradientComponent, aq as Color3GradientList, aa as Color4GradientComponent, ar as Color4GradientList, a0 as ColorPickerPopup, ab as ColorStepGradientComponent, a3 as ComboBox, K as ConstructorFactory, D as DebugServiceIdentity, a4 as DraggableLine, a5 as Dropdown, E as ExtensibleAccordion, a8 as FactorGradientComponent, ap as FactorGradientList, F as FileUploadLine, G as GetPropertyDescriptor, W as HideInspector, ac as InfoLabel, a1 as InputHexField, a2 as InputHsvField, X as Inspector, I as InterceptFunction, J as InterceptProperty, U as IsInspectorVisible, H as IsPropertyReadonly, L as LinkToEntityPropertyLine, ad as List, z as MakeDialogTeachingMoment, M as MakeLazyComponent, A as MakePopoverTeachingMoment, o as MakePropertyHook, y as MakeTeachingMoment, ae as MessageBar, a6 as NumberDropdown, as as Pane, P as PaneContainer, af as PositionedPopover, d as PropertiesServiceIdentity, a as SceneContextIdentity, e as SceneExplorerServiceIdentity, ag as SearchBar, ah as SearchBox, Q as SelectionServiceDefinition, O as SelectionServiceIdentity, R as SettingsContextIdentity, f as SettingsServiceIdentity, S as ShellServiceIdentity, V as ShowInspector, ai as SpinButton, g as StatsServiceIdentity, a7 as StringDropdown, ak as Switch, al as SyncedSliderInput, i as TeachingMoment, an as TextInput, am as Textarea, ao as ToggleButton, T as ToolsServiceIdentity, x as useAngleConverters, w as useAsyncResource, l as useColor3Property, m as useColor4Property, q as useEventfulState, p as useInterceptObservable, r as useObservableCollection, u as useObservableState, s as useOrderedObservableCollection, t as usePollingObservable, j as useProperty, n as useQuaternionProperty, v as useResource, k as useVector3Property } from './index-B29Ify1o.js';
1
+ export { _ as Accordion, Z as AccordionSection, g as BoundProperty, i as BuiltInsExtensionFeed, $ as Button, B as ButtonLine, ak as CalculatePrecision, a0 as Checkbox, C as Collapse, aa as Color3GradientComponent, ar as Color3GradientList, ab as Color4GradientComponent, as as Color4GradientList, a1 as ColorPickerPopup, ac as ColorStepGradientComponent, a4 as ComboBox, K as ConstructorFactory, D as DebugServiceIdentity, a5 as DraggableLine, a6 as Dropdown, E as ExtensibleAccordion, a9 as FactorGradientComponent, aq as FactorGradientList, F as FileUploadLine, G as GetPropertyDescriptor, X as HideInspector, ad as InfoLabel, a2 as InputHexField, a3 as InputHsvField, Y as Inspector, I as InterceptFunction, J as InterceptProperty, V as IsInspectorVisible, H as IsPropertyReadonly, L as LinkToEntityPropertyLine, ae as List, z as MakeDialogTeachingMoment, M as MakeLazyComponent, A as MakePopoverTeachingMoment, n as MakePropertyHook, y as MakeTeachingMoment, af as MessageBar, a7 as NumberDropdown, at as Pane, P as PaneContainer, ag as PositionedPopover, b as PropertiesServiceIdentity, O as SceneContextIdentity, c as SceneExplorerServiceIdentity, ah as SearchBar, ai as SearchBox, R as SelectionServiceDefinition, Q as SelectionServiceIdentity, U as SettingsContextIdentity, d as SettingsServiceIdentity, f as ShellServiceIdentity, W as ShowInspector, aj as SpinButton, e as StatsServiceIdentity, a8 as StringDropdown, al as Switch, am as SyncedSliderInput, h as TeachingMoment, ao as TextInput, an as Textarea, ap as ToggleButton, T as ToolsServiceIdentity, x as useAngleConverters, w as useAsyncResource, k as useColor3Property, l as useColor4Property, p as useEventfulState, o as useInterceptObservable, r as useObservableCollection, q as useObservableState, s as useOrderedObservableCollection, t as usePollingObservable, u as useProperty, m as useQuaternionProperty, v as useResource, j as useVector3Property } from './index-BTXdoz_s.js';
2
2
  export { Link } from '@fluentui/react-components';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -47,6 +47,7 @@ import '@babylonjs/core/Meshes/abstractMesh.js';
47
47
  import '@babylonjs/core/node.js';
48
48
  import '@babylonjs/core/Animations/animationGroup.js';
49
49
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
50
+ import '@babylonjs/addons/atmosphere/atmosphere.js';
50
51
  import '@babylonjs/core/Cameras/arcRotateCamera.js';
51
52
  import '@babylonjs/core/Cameras/followCamera.js';
52
53
  import '@babylonjs/core/Cameras/freeCamera.js';
@@ -100,5 +101,4 @@ import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineMa
100
101
  import '@babylonjs/core/Sprites/spriteSceneComponent.js';
101
102
  import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
102
103
  import '@babylonjs/core/Events/pointerEvents.js';
103
- import '@babylonjs/addons/atmosphere/atmosphere.js';
104
104
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "8.29.1-preview",
3
+ "version": "8.29.2-preview",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -1,142 +0,0 @@
1
- import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
- import { makeStyles, Accordion, AccordionItem, AccordionHeader, Text, AccordionPanel, Button, tokens } from '@fluentui/react-components';
3
- import { S as ShellServiceIdentity, a as SceneContextIdentity, u as useObservableState } from './index-B29Ify1o.js';
4
- import { FormNewRegular } from '@fluentui/react-icons';
5
- import 'react';
6
- import '@babylonjs/core/Maths/math.color.js';
7
- import '@babylonjs/core/Maths/math.vector.js';
8
- import '@babylonjs/core/Misc/observable.js';
9
- import '@fluentui/react-motion-components-preview';
10
- import '@babylonjs/core/Misc/typeStore.js';
11
- import 'usehooks-ts';
12
- import '@babylonjs/core/Misc/asyncLock.js';
13
- import '@babylonjs/core/Misc/deferred.js';
14
- import '@fluentui-contrib/react-resize-handle';
15
- import '@fluentui-contrib/react-virtualizer';
16
- import '@babylonjs/addons/msdfText/fontAsset.js';
17
- import '@babylonjs/addons/msdfText/textRenderer.js';
18
- import '@babylonjs/core/Debug/physicsViewer.js';
19
- import '@babylonjs/core/Materials/Textures/texture.js';
20
- import '@babylonjs/core/Materials/materialFlags.js';
21
- import '@babylonjs/core/Materials/standardMaterial.js';
22
- import '@babylonjs/core/Meshes/Builders/groundBuilder.js';
23
- import '@babylonjs/core/Misc/tools.js';
24
- import '@babylonjs/core/Rendering/utilityLayerRenderer.js';
25
- import '@babylonjs/materials/grid/gridMaterial.js';
26
- import '@babylonjs/core/Misc/dataStorage.js';
27
- import '@babylonjs/core/Instrumentation/engineInstrumentation.js';
28
- import '@babylonjs/core/Instrumentation/sceneInstrumentation.js';
29
- import '@babylonjs/core/Engines/AbstractEngine/abstractEngine.timeQuery.js';
30
- import '@babylonjs/core/Engines/Extensions/engine.query.js';
31
- import '@babylonjs/core/Engines/WebGPU/Extensions/engine.query.js';
32
- import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerCollectionStrategies.js';
33
- import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerSceneExtension.js';
34
- import '@babylonjs/core/Misc/pressureObserverWrapper.js';
35
- import '@babylonjs/core/Engines/abstractEngine.js';
36
- import '@babylonjs/core/Engines/engineStore.js';
37
- import 'react-dom/client';
38
- import '@babylonjs/core/Misc/logger.js';
39
- import '@babylonjs/core/FrameGraph/frameGraphUtils.js';
40
- import '@babylonjs/core/Gizmos/cameraGizmo.js';
41
- import '@babylonjs/core/Gizmos/lightGizmo.js';
42
- import '@babylonjs/core/Bones/bone.js';
43
- import '@babylonjs/core/Cameras/camera.js';
44
- import '@babylonjs/core/Gizmos/gizmoManager.js';
45
- import '@babylonjs/core/Lights/light.js';
46
- import '@babylonjs/core/Meshes/abstractMesh.js';
47
- import '@babylonjs/core/node.js';
48
- import '@babylonjs/core/Animations/animationGroup.js';
49
- import '@babylonjs/core/Animations/animationPropertiesOverride.js';
50
- import '@babylonjs/core/Cameras/arcRotateCamera.js';
51
- import '@babylonjs/core/Cameras/followCamera.js';
52
- import '@babylonjs/core/Cameras/freeCamera.js';
53
- import '@babylonjs/core/Cameras/targetCamera.js';
54
- import '@babylonjs/core/scene.js';
55
- import '@babylonjs/core/FrameGraph/frameGraph.js';
56
- import '@babylonjs/core/Lights/directionalLight.js';
57
- import '@babylonjs/core/Lights/hemisphericLight.js';
58
- import '@babylonjs/core/Lights/pointLight.js';
59
- import '@babylonjs/core/Lights/rectAreaLight.js';
60
- import '@babylonjs/core/Lights/shadowLight.js';
61
- import '@babylonjs/core/Lights/spotLight.js';
62
- import '@babylonjs/core/Lights/Shadows/cascadedShadowGenerator.js';
63
- import '@babylonjs/core/Lights/Shadows/shadowGenerator.js';
64
- import '@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js';
65
- import '@babylonjs/core/Materials/material.js';
66
- import '@babylonjs/core/Materials/multiMaterial.js';
67
- import '@babylonjs/core/Materials/PBR/pbrBaseMaterial.js';
68
- import '@babylonjs/core/Materials/PBR/pbrBaseSimpleMaterial.js';
69
- import '@babylonjs/core/Materials/PBR/pbrMaterial.js';
70
- import '@babylonjs/materials/sky/skyMaterial.js';
71
- import '@babylonjs/core/Engines/engine.js';
72
- import '@babylonjs/core/Engines/constants.js';
73
- import '@babylonjs/core/Particles/particleSystem.js';
74
- import '@babylonjs/core/Misc/fileTools.js';
75
- import '@babylonjs/core/Meshes/mesh.js';
76
- import '@babylonjs/core/Debug/skeletonViewer.js';
77
- import '@babylonjs/core/Meshes/buffer.js';
78
- import '@babylonjs/core/Meshes/Builders/linesBuilder.js';
79
- import '@babylonjs/core/Meshes/instancedMesh.js';
80
- import '@babylonjs/core/Rendering/renderingManager.js';
81
- import '@babylonjs/core/Rendering/edgesRenderer.js';
82
- import '@babylonjs/core/Rendering/outlineRenderer.js';
83
- import '@babylonjs/core/Misc/gradients.js';
84
- import '@babylonjs/core/Materials/Node/Blocks/gradientBlock.js';
85
- import '@babylonjs/core/Particles/attractor.js';
86
- import '@babylonjs/core/Meshes/Builders/sphereBuilder.js';
87
- import '@babylonjs/core/Meshes/transformNode.js';
88
- import '@babylonjs/core/Physics/v2/IPhysicsEnginePlugin.js';
89
- import '@babylonjs/core/Physics/v2/physicsEngineComponent.js';
90
- import '@babylonjs/core/PostProcesses/postProcess.js';
91
- import '@babylonjs/core/Materials/Textures/cubeTexture.js';
92
- import '@babylonjs/core/Materials/imageProcessingConfiguration.js';
93
- import '@babylonjs/core/Bones/skeleton.js';
94
- import '@babylonjs/core/Sprites/sprite.js';
95
- import '@babylonjs/core/Materials/Textures/baseTexture.js';
96
- import '@babylonjs/core/Materials/Textures/multiRenderTarget.js';
97
- import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
98
- import '@babylonjs/core/Materials/Textures/thinTexture.js';
99
- import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js';
100
- import '@babylonjs/core/Sprites/spriteSceneComponent.js';
101
- import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
102
- import '@babylonjs/core/Events/pointerEvents.js';
103
- import '@babylonjs/addons/atmosphere/atmosphere.js';
104
-
105
- // eslint-disable-next-line @typescript-eslint/naming-convention
106
- const useStyles = makeStyles({
107
- section: {
108
- display: "flex",
109
- flexDirection: "column",
110
- rowGap: tokens.spacingVerticalM,
111
- },
112
- });
113
- // TODO: This is just a placeholder for a dynamically installed extension that brings in asset creation tools (node materials, etc.).
114
- const CreationToolsServiceDefinition = {
115
- friendlyName: "Creation Tools",
116
- consumes: [ShellServiceIdentity, SceneContextIdentity],
117
- factory: (shellService, sceneContext) => {
118
- const registration = shellService.addSidePane({
119
- key: "Create",
120
- title: "Create",
121
- icon: FormNewRegular,
122
- horizontalLocation: "left",
123
- verticalLocation: "top",
124
- content: () => {
125
- const classes = useStyles();
126
- const scene = useObservableState(() => sceneContext.currentScene, sceneContext.currentSceneObservable);
127
- // eslint-disable-next-line no-console
128
- console.log(scene);
129
- return (jsx(Fragment, { children: jsxs(Accordion, { collapsible: true, multiple: true, defaultOpenItems: ["Materials", "Interactivity"], children: [jsxs(AccordionItem, { value: "Materials", children: [jsx(AccordionHeader, { expandIconPosition: "end", children: jsx(Text, { size: 500, children: "Materials" }) }), jsx(AccordionPanel, { children: jsxs("div", { className: classes.section, children: [jsx(Button, { children: "PBR Material" }), jsx(Button, { children: "Node Material" })] }) })] }, "Materials"), jsxs(AccordionItem, { value: "Interactivity", children: [jsx(AccordionHeader, { expandIconPosition: "end", children: jsx(Text, { size: 500, children: "Interactivity" }) }), jsx(AccordionPanel, { children: jsx("div", { className: classes.section, children: jsx(Button, { children: "Flow Graph" }) }) })] }, "Interactivity")] }) }));
130
- },
131
- });
132
- return {
133
- dispose: () => registration.dispose(),
134
- };
135
- },
136
- };
137
- var creationToolsService = {
138
- serviceDefinitions: [CreationToolsServiceDefinition],
139
- };
140
-
141
- export { CreationToolsServiceDefinition, creationToolsService as default };
142
- //# sourceMappingURL=creationToolsService-CX79OLiq.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creationToolsService-CX79OLiq.js","sources":["../../../../../../../../dev/inspector-v2/src/services/creationToolsService.tsx"],"sourcesContent":["import type { ServiceDefinition } from \"../modularity/serviceDefinition\";\r\nimport type { ISceneContext } from \"./sceneContext\";\r\nimport type { IShellService } from \"./shellService\";\r\n\r\nimport { makeStyles, tokens, Accordion, AccordionItem, AccordionHeader, AccordionPanel, Text, Button } from \"@fluentui/react-components\";\r\nimport { ShellServiceIdentity } from \"./shellService\";\r\n\r\nimport { FormNewRegular } from \"@fluentui/react-icons\";\r\nimport { SceneContextIdentity } from \"./sceneContext\";\r\nimport { useObservableState } from \"../hooks/observableHooks\";\r\n\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nconst useStyles = makeStyles({\r\n section: {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n rowGap: tokens.spacingVerticalM,\r\n },\r\n});\r\n\r\n// TODO: This is just a placeholder for a dynamically installed extension that brings in asset creation tools (node materials, etc.).\r\nexport const CreationToolsServiceDefinition: ServiceDefinition<[], [IShellService, ISceneContext]> = {\r\n friendlyName: \"Creation Tools\",\r\n consumes: [ShellServiceIdentity, SceneContextIdentity],\r\n factory: (shellService, sceneContext) => {\r\n const registration = shellService.addSidePane({\r\n key: \"Create\",\r\n title: \"Create\",\r\n icon: FormNewRegular,\r\n horizontalLocation: \"left\",\r\n verticalLocation: \"top\",\r\n content: () => {\r\n const classes = useStyles();\r\n\r\n const scene = useObservableState(() => sceneContext.currentScene, sceneContext.currentSceneObservable);\r\n // eslint-disable-next-line no-console\r\n console.log(scene);\r\n\r\n return (\r\n <>\r\n <Accordion collapsible multiple defaultOpenItems={[\"Materials\", \"Interactivity\"]}>\r\n <AccordionItem key=\"Materials\" value=\"Materials\">\r\n <AccordionHeader expandIconPosition=\"end\">\r\n <Text size={500}>Materials</Text>\r\n </AccordionHeader>\r\n <AccordionPanel>\r\n <div className={classes.section}>\r\n <Button>PBR Material</Button>\r\n <Button>Node Material</Button>\r\n </div>\r\n </AccordionPanel>\r\n </AccordionItem>\r\n <AccordionItem key=\"Interactivity\" value=\"Interactivity\">\r\n <AccordionHeader expandIconPosition=\"end\">\r\n <Text size={500}>Interactivity</Text>\r\n </AccordionHeader>\r\n <AccordionPanel>\r\n <div className={classes.section}>\r\n <Button>Flow Graph</Button>\r\n </div>\r\n </AccordionPanel>\r\n </AccordionItem>\r\n </Accordion>\r\n </>\r\n );\r\n },\r\n });\r\n\r\n return {\r\n dispose: () => registration.dispose(),\r\n };\r\n },\r\n};\r\n\r\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