@babylonjs/gui-editor 5.25.0 → 5.26.1
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.
@@ -1538,6 +1538,65 @@ export class HexColor extends React.Component<IHexColorProps, {
|
|
1538
1538
|
render(): JSX.Element;
|
1539
1539
|
}
|
1540
1540
|
|
1541
|
+
}
|
1542
|
+
declare module "@babylonjs/gui-editor/components/bars/CommandBarComponent" {
|
1543
|
+
import * as React from "react";
|
1544
|
+
export interface ICommandBarComponentProps {
|
1545
|
+
onSaveButtonClicked?: () => void;
|
1546
|
+
onSaveToSnippetButtonClicked?: () => void;
|
1547
|
+
onLoadFromSnippetButtonClicked?: () => void;
|
1548
|
+
onHelpButtonClicked?: () => void;
|
1549
|
+
onGiveFeedbackButtonClicked?: () => void;
|
1550
|
+
onSelectButtonClicked?: () => void;
|
1551
|
+
onPanButtonClicked?: () => void;
|
1552
|
+
onZoomButtonClicked?: () => void;
|
1553
|
+
onFitButtonClicked?: () => void;
|
1554
|
+
}
|
1555
|
+
export const CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
1556
|
+
|
1557
|
+
}
|
1558
|
+
declare module "@babylonjs/gui-editor/components/bars/CommandButtonComponent" {
|
1559
|
+
import * as React from "react";
|
1560
|
+
export interface ICommandButtonComponentProps {
|
1561
|
+
tooltip: string;
|
1562
|
+
shortcut?: string;
|
1563
|
+
icon: string;
|
1564
|
+
iconLabel?: string;
|
1565
|
+
isActive: boolean;
|
1566
|
+
onClick: () => void;
|
1567
|
+
disabled?: boolean;
|
1568
|
+
}
|
1569
|
+
export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
1570
|
+
|
1571
|
+
}
|
1572
|
+
declare module "@babylonjs/gui-editor/components/bars/CommandDropdownComponent" {
|
1573
|
+
import * as React from "react";
|
1574
|
+
interface ICommandDropdownComponentProps {
|
1575
|
+
icon?: string;
|
1576
|
+
tooltip: string;
|
1577
|
+
defaultValue?: string;
|
1578
|
+
items: {
|
1579
|
+
label: string;
|
1580
|
+
icon?: string;
|
1581
|
+
fileButton?: boolean;
|
1582
|
+
onClick?: () => void;
|
1583
|
+
onCheck?: (value: boolean) => void;
|
1584
|
+
storeKey?: string;
|
1585
|
+
isActive?: boolean;
|
1586
|
+
defaultValue?: boolean | string;
|
1587
|
+
subItems?: string[];
|
1588
|
+
}[];
|
1589
|
+
toRight?: boolean;
|
1590
|
+
}
|
1591
|
+
export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
|
1592
|
+
isExpanded: boolean;
|
1593
|
+
activeState: string;
|
1594
|
+
}> {
|
1595
|
+
constructor(props: ICommandDropdownComponentProps);
|
1596
|
+
render(): JSX.Element;
|
1597
|
+
}
|
1598
|
+
export {};
|
1599
|
+
|
1541
1600
|
}
|
1542
1601
|
declare module "@babylonjs/gui-editor/components/Button" {
|
1543
1602
|
/// <reference types="react" />
|
@@ -1554,6 +1613,7 @@ export const Button: React.FC<ButtonProps>;
|
|
1554
1613
|
}
|
1555
1614
|
declare module "@babylonjs/gui-editor/components/classNames" {
|
1556
1615
|
export function ClassNames(names: any, styleObject: any): string;
|
1616
|
+
export function JoinClassNames(styleObject: any, ...names: string[]): string;
|
1557
1617
|
|
1558
1618
|
}
|
1559
1619
|
declare module "@babylonjs/gui-editor/components/Icon" {
|
@@ -1574,6 +1634,25 @@ export type LabelProps = {
|
|
1574
1634
|
};
|
1575
1635
|
export const Label: React.FC<LabelProps>;
|
1576
1636
|
|
1637
|
+
}
|
1638
|
+
declare module "@babylonjs/gui-editor/components/lines/FileButtonLineComponent" {
|
1639
|
+
import * as React from "react";
|
1640
|
+
export interface IFileButtonLineComponentProps {
|
1641
|
+
label: string;
|
1642
|
+
onClick: (file: File) => void;
|
1643
|
+
accept: string;
|
1644
|
+
icon?: string;
|
1645
|
+
iconLabel?: string;
|
1646
|
+
}
|
1647
|
+
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
1648
|
+
private static _IDGenerator;
|
1649
|
+
private _id;
|
1650
|
+
private _uploadInputRef;
|
1651
|
+
constructor(props: IFileButtonLineComponentProps);
|
1652
|
+
onChange(evt: any): void;
|
1653
|
+
render(): JSX.Element;
|
1654
|
+
}
|
1655
|
+
|
1577
1656
|
}
|
1578
1657
|
declare module "@babylonjs/gui-editor/components/MessageDialog" {
|
1579
1658
|
import * as React from "react";
|
@@ -2156,6 +2235,7 @@ export interface IOptionsLineComponentProps {
|
|
2156
2235
|
defaultIfNull?: number;
|
2157
2236
|
fromFontDropdown?: boolean;
|
2158
2237
|
valueProp?: number;
|
2238
|
+
fallbackValue?: number;
|
2159
2239
|
}
|
2160
2240
|
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
2161
2241
|
value: number | string;
|
@@ -3177,6 +3257,24 @@ export class PropertyChangedEvent {
|
|
3177
3257
|
allowNullValue?: boolean;
|
3178
3258
|
}
|
3179
3259
|
|
3260
|
+
}
|
3261
|
+
declare module "@babylonjs/gui-editor/stories/bars/CommandBarComponent.stories" {
|
3262
|
+
/// <reference types="react" />
|
3263
|
+
const _default: {
|
3264
|
+
|
3265
|
+
};
|
3266
|
+
export default _default;
|
3267
|
+
export const Default: {};
|
3268
|
+
|
3269
|
+
}
|
3270
|
+
declare module "@babylonjs/gui-editor/stories/bars/CommandButtonComponent.stories" {
|
3271
|
+
/// <reference types="react" />
|
3272
|
+
const _default: {
|
3273
|
+
|
3274
|
+
};
|
3275
|
+
export default _default;
|
3276
|
+
export const Default: {};
|
3277
|
+
|
3180
3278
|
}
|
3181
3279
|
declare module "@babylonjs/gui-editor/stories/Button.stories" {
|
3182
3280
|
/// <reference types="react" />
|
@@ -3213,6 +3311,15 @@ const _default: {
|
|
3213
3311
|
export default _default;
|
3214
3312
|
export const Default: any;
|
3215
3313
|
|
3314
|
+
}
|
3315
|
+
declare module "@babylonjs/gui-editor/stories/lines/FileButtonLineComponent.stories" {
|
3316
|
+
import { FileButtonLineComponent } from "@babylonjs/gui-editor/components/lines/FileButtonLineComponent";
|
3317
|
+
const _default: {
|
3318
|
+
component: typeof FileButtonLineComponent;
|
3319
|
+
};
|
3320
|
+
export default _default;
|
3321
|
+
export const Default: {};
|
3322
|
+
|
3216
3323
|
}
|
3217
3324
|
declare module "@babylonjs/gui-editor/stories/MessageDialog.stories" {
|
3218
3325
|
/// <reference types="react" />
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.26.1",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^5.
|
28
|
-
"@babylonjs/gui": "^5.
|
27
|
+
"@babylonjs/core": "^5.26.1",
|
28
|
+
"@babylonjs/gui": "^5.26.1",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|