@babylonjs/inspector 8.54.2 → 8.55.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/lib/index.d.ts CHANGED
@@ -3342,14 +3342,12 @@ declare const ColorPickerPopup: react.ForwardRefExoticComponent<{
3342
3342
  onChange: (value: Color3 | Color4) => void;
3343
3343
  } & react.RefAttributes<HTMLButtonElement>>;
3344
3344
  type InputHexProps = PrimitiveProps<Color3 | Color4> & {
3345
- linearHex?: boolean;
3346
- isLinearMode?: boolean;
3345
+ isLinear?: boolean;
3346
+ isPropertyLinear?: boolean;
3347
3347
  };
3348
3348
  /**
3349
- * Component which displays the passed in color's HEX value, either in linearSpace (if linearHex is true) or in gamma space
3350
- * When the hex color is changed by user, component calculates the new Color3/4 value and calls onChange
3351
- *
3352
- * Component uses the isLinearMode boolean to display an informative label regarding linear / gamma space
3349
+ * Component which displays the passed in color's HEX value in the currently selected color space.
3350
+ * When the hex color is changed by user, component calculates the new Color3/4 value and calls onChange.
3353
3351
  * @param props - The properties for the InputHexField component.
3354
3352
  * @returns
3355
3353
  */
@@ -3357,8 +3355,7 @@ declare const InputHexField: FunctionComponent<InputHexProps>;
3357
3355
  type HsvKey = "h" | "s" | "v";
3358
3356
  type InputHsvFieldProps = PrimitiveProps<Color3 | Color4> & {
3359
3357
  hsvKey: HsvKey;
3360
- max: number;
3361
- scale?: number;
3358
+ isFloat: boolean;
3362
3359
  };
3363
3360
  /**
3364
3361
  * In the HSV (Hue, Saturation, Value) color model, Hue (H) ranges from 0 to 360 degrees, representing the color's position on the color wheel.
@@ -7541,13 +7538,43 @@ declare class WebRequest implements IWebRequest {
7541
7538
  * @returns true if there are any custom requests available
7542
7539
  */
7543
7540
  static get IsCustomRequestAvailable(): boolean;
7541
+ private static _CleanUrl;
7542
+ private static _ShouldSkipRequestModifications;
7543
+ /**
7544
+ * Merges `CustomRequestHeaders` and `CustomRequestModifiers` into a plain headers record and returns the
7545
+ * (possibly rewritten) URL. Can be used to apply URL and header customizations without making a network
7546
+ * request (e.g. for streaming media where the download is handled by the browser natively).
7547
+ * @param url - The initial URL to modify.
7548
+ * @param baseHeaders - An optional set of headers to start with (e.g. from the caller's options) that modifiers can further modify.
7549
+ * @returns An object containing the final URL and the merged headers after applying all modifiers and header customizations.
7550
+ * @internal
7551
+ */
7552
+ static _CollectCustomizations(url: string, baseHeaders?: Record<string, string>): {
7553
+ url: string;
7554
+ headers: Record<string, string>;
7555
+ };
7556
+ /**
7557
+ * Performs a network request using the Fetch API when available on the platform, falling back to XMLHttpRequest.
7558
+ * `WebRequest.CustomRequestHeaders` and `WebRequest.CustomRequestModifiers` are applied in both cases.
7559
+ *
7560
+ * For `CustomRequestModifiers`, a minimal proxy XHR is provided to each modifier so that calls to
7561
+ * `setRequestHeader` on it are captured and forwarded to the underlying request. The URL returned by a
7562
+ * modifier (if any) replaces the current URL before the next modifier runs.
7563
+ *
7564
+ * @param url - The URL to request.
7565
+ * @param options - Optional request options (method, headers, body).
7566
+ * @returns A Promise that resolves to a `Response`.
7567
+ */
7568
+ static FetchAsync(url: string, options?: {
7569
+ method?: string;
7570
+ headers?: Record<string, string>;
7571
+ body?: BodyInit | null;
7572
+ }): Promise<Response>;
7544
7573
  private _requestURL;
7545
7574
  /**
7546
7575
  * Returns the requested URL once open has been called
7547
7576
  */
7548
7577
  get requestURL(): string;
7549
- private _injectCustomRequestHeaders;
7550
- private _shouldSkipRequestModifications;
7551
7578
  /**
7552
7579
  * Gets or sets a function to be called when loading progress changes
7553
7580
  */
@@ -7604,8 +7631,9 @@ declare class WebRequest implements IWebRequest {
7604
7631
  * Sets the request method, request URL
7605
7632
  * @param method defines the method to use (GET, POST, etc..)
7606
7633
  * @param url defines the url to connect with
7634
+ * @param baseHeaders optional headers to include as a base before applying CustomRequestHeaders and modifiers
7607
7635
  */
7608
- open(method: string, url: string): void;
7636
+ open(method: string, url: string, baseHeaders?: Record<string, string>): void;
7609
7637
  /**
7610
7638
  * Sets the value of a request header.
7611
7639
  * @param name The name of the header whose value is to be set
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion, f as AccordionSection, k as AccordionSectionItem, l as AttachDebugLayer, m as BooleanBadgePropertyLine, n as BoundProperty, o as BuiltInsExtensionFeed, B as Button, g as ButtonLine, p as Checkbox, C as CheckboxPropertyLine, q as ChildWindow, r as Collapse, s as Color3GradientComponent, t as Color3GradientList, v as Color3PropertyLine, w as Color4GradientComponent, x as Color4GradientList, y as Color4PropertyLine, z as ColorPickerPopup, D as ColorStepGradientComponent, E as ComboBox, F as ComboBoxPropertyLine, G as ConstructorFactory, H as ConvertOptions, I as DebugServiceIdentity, J as DetachDebugLayer, K as DraggableLine, O as Dropdown, Q as EntitySelector, R as ErrorBoundary, U as ExtensibleAccordion, W as FactorGradientComponent, X as FactorGradientList, Y as FileUploadLine, Z as GetPropertyDescriptor, _ as GizmoServiceIdentity, $ as HexPropertyLine, a0 as InfoLabel, a1 as InputHexField, a2 as InputHsvField, a3 as Inspector, a4 as InterceptFunction, a5 as InterceptProperty, a6 as IsPropertyReadonly, a7 as LineContainer, j as Link, a8 as LinkPropertyLine, L as LinkToEntity, a9 as LinkToEntityPropertyLine, aa as List, ab as MakeDialogTeachingMoment, ac as MakeLazyComponent, ad as MakePopoverTeachingMoment, ae as MakePropertyHook, af as MakeTeachingMoment, ag as MaterialSelector, M as MessageBar, ah as NodeSelector, ai as NumberDropdown, aj as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ak as ObservableCollection, al as Pane, am as PlaceholderPropertyLine, P as Popover, an as PositionedPopover, ao as PropertiesServiceIdentity, ap as Property, aq as PropertyContext, ar as PropertyLine, as as QuaternionPropertyLine, at as RotationVectorPropertyLine, c as SceneContextIdentity, au as SceneExplorerServiceIdentity, av as SearchBar, aw as SearchBox, ax as SelectionServiceDefinition, d as SelectionServiceIdentity, ay as SettingsServiceIdentity, az as SettingsStore, aA as SettingsStoreIdentity, b as ShellServiceIdentity, aB as ShowInspector, aC as SidePaneContainer, aD as SkeletonSelector, aE as Slider, aF as SpinButton, S as SpinButtonPropertyLine, aG as StatsServiceIdentity, aH as StringDropdown, aI as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, aK as Switch, aL as SwitchPropertyLine, aM as SyncedSliderInput, aN as SyncedSliderPropertyLine, aO as TeachingMoment, aP as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, aR as TextPropertyLine, aS as Textarea, aT as TextureSelector, aU as TextureUpload, aV as Theme, aW as ThemeServiceIdentity, aX as ToastProvider, aY as ToggleButton, h as ToolsServiceIdentity, aZ as Tooltip, a_ as UploadButton, a$ as Vector2PropertyLine, V as Vector3PropertyLine, b0 as Vector4PropertyLine, b1 as WatcherServiceIdentity, b2 as useAngleConverters, b3 as useAsyncResource, b4 as useColor3Property, b5 as useColor4Property, b6 as useEventListener, b7 as useEventfulState, b8 as useInterceptObservable, b9 as useKeyListener, ba as useKeyState, bb as useObservableCollection, e as useObservableState, bc as useOrderedObservableCollection, bd as usePollingObservable, a as useProperty, be as usePropertyChangedNotifier, bf as useQuaternionProperty, bg as useResource, bh as useSetting, bi as useTheme, bj as useThemeMode, u as useToast, bk as useVector3Property } from './index-CIc0CbG8.js';
1
+ export { A as Accordion, f as AccordionSection, k as AccordionSectionItem, l as AttachDebugLayer, m as BooleanBadgePropertyLine, n as BoundProperty, o as BuiltInsExtensionFeed, B as Button, g as ButtonLine, p as Checkbox, C as CheckboxPropertyLine, q as ChildWindow, r as Collapse, s as Color3GradientComponent, t as Color3GradientList, v as Color3PropertyLine, w as Color4GradientComponent, x as Color4GradientList, y as Color4PropertyLine, z as ColorPickerPopup, D as ColorStepGradientComponent, E as ComboBox, F as ComboBoxPropertyLine, G as ConstructorFactory, H as ConvertOptions, I as DebugServiceIdentity, J as DetachDebugLayer, K as DraggableLine, O as Dropdown, Q as EntitySelector, R as ErrorBoundary, U as ExtensibleAccordion, W as FactorGradientComponent, X as FactorGradientList, Y as FileUploadLine, Z as GetPropertyDescriptor, _ as GizmoServiceIdentity, $ as HexPropertyLine, a0 as InfoLabel, a1 as InputHexField, a2 as InputHsvField, a3 as Inspector, a4 as InterceptFunction, a5 as InterceptProperty, a6 as IsPropertyReadonly, a7 as LineContainer, j as Link, a8 as LinkPropertyLine, L as LinkToEntity, a9 as LinkToEntityPropertyLine, aa as List, ab as MakeDialogTeachingMoment, ac as MakeLazyComponent, ad as MakePopoverTeachingMoment, ae as MakePropertyHook, af as MakeTeachingMoment, ag as MaterialSelector, M as MessageBar, ah as NodeSelector, ai as NumberDropdown, aj as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ak as ObservableCollection, al as Pane, am as PlaceholderPropertyLine, P as Popover, an as PositionedPopover, ao as PropertiesServiceIdentity, ap as Property, aq as PropertyContext, ar as PropertyLine, as as QuaternionPropertyLine, at as RotationVectorPropertyLine, c as SceneContextIdentity, au as SceneExplorerServiceIdentity, av as SearchBar, aw as SearchBox, ax as SelectionServiceDefinition, d as SelectionServiceIdentity, ay as SettingsServiceIdentity, az as SettingsStore, aA as SettingsStoreIdentity, b as ShellServiceIdentity, aB as ShowInspector, aC as SidePaneContainer, aD as SkeletonSelector, aE as Slider, aF as SpinButton, S as SpinButtonPropertyLine, aG as StatsServiceIdentity, aH as StringDropdown, aI as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, aK as Switch, aL as SwitchPropertyLine, aM as SyncedSliderInput, aN as SyncedSliderPropertyLine, aO as TeachingMoment, aP as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, aR as TextPropertyLine, aS as Textarea, aT as TextureSelector, aU as TextureUpload, aV as Theme, aW as ThemeServiceIdentity, aX as ToastProvider, aY as ToggleButton, h as ToolsServiceIdentity, aZ as Tooltip, a_ as UploadButton, a$ as Vector2PropertyLine, V as Vector3PropertyLine, b0 as Vector4PropertyLine, b1 as WatcherServiceIdentity, b2 as useAngleConverters, b3 as useAsyncResource, b4 as useColor3Property, b5 as useColor4Property, b6 as useEventListener, b7 as useEventfulState, b8 as useInterceptObservable, b9 as useKeyListener, ba as useKeyState, bb as useObservableCollection, e as useObservableState, bc as useOrderedObservableCollection, bd as usePollingObservable, a as useProperty, be as usePropertyChangedNotifier, bf as useQuaternionProperty, bg as useResource, bh as useSetting, bi as useTheme, bj as useThemeMode, u as useToast, bk as useVector3Property } from './index-jSClUjQ1.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-CIc0CbG8.js';
2
+ import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-jSClUjQ1.js';
3
3
  import { SettingsRegular, CollectionsAdd20Regular } from '@fluentui/react-icons';
4
4
  import '@babylonjs/core/Particles/webgl2ParticleSystem.js';
5
5
  import '@babylonjs/core/Rendering/prePassRendererSceneComponent.js';
@@ -756,4 +756,4 @@ var quickCreateToolsService = {
756
756
  };
757
757
 
758
758
  export { CreateToolsServiceDefinition, quickCreateToolsService as default };
759
- //# sourceMappingURL=quickCreateToolsService-D-cyDKNQ.js.map
759
+ //# sourceMappingURL=quickCreateToolsService-C2KCEQS-.js.map