@wonderlandengine/editor-api 1.5.0-rc.4 → 1.5.0-rc.6
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/dist/data.d.ts +8 -1
- package/dist/data.js +6 -0
- package/dist/native.d.ts +1 -0
- package/dist/ui.d.ts +14 -1
- package/dist/ui.js +14 -1
- package/package.json +1 -1
package/dist/data.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ export interface WebXRFeatureFlags {
|
|
|
236
236
|
'anchors': boolean;
|
|
237
237
|
'occlusion': boolean;
|
|
238
238
|
'marker-tracking': boolean;
|
|
239
|
+
'layers': boolean;
|
|
239
240
|
}
|
|
240
241
|
/** WebXR settings */
|
|
241
242
|
export declare class WebXRSettings extends Access {
|
|
@@ -820,6 +821,10 @@ export declare class LanguageResource extends Resource {
|
|
|
820
821
|
export declare class ParticleEffectResource extends Resource {
|
|
821
822
|
name: string;
|
|
822
823
|
}
|
|
824
|
+
/** Audio clip resource */
|
|
825
|
+
export declare class AudioClipResource extends Resource {
|
|
826
|
+
name: string;
|
|
827
|
+
}
|
|
823
828
|
/** Plugin resource */
|
|
824
829
|
export declare class PluginResource extends Resource {
|
|
825
830
|
name: string;
|
|
@@ -883,6 +888,8 @@ export interface ProjectData {
|
|
|
883
888
|
languages: ResourceSection<LanguageResource>;
|
|
884
889
|
/** Particle effect resources */
|
|
885
890
|
particleEffects: ResourceSection<ParticleEffectResource>;
|
|
886
|
-
/**
|
|
891
|
+
/** Audio clip resources */
|
|
892
|
+
audioClips: ResourceSection<AudioClipResource>;
|
|
893
|
+
/** Plugin resources */
|
|
887
894
|
plugins: ResourceSection<PluginResource>;
|
|
888
895
|
}
|
package/dist/data.js
CHANGED
|
@@ -249,6 +249,7 @@ export class WebXRSettings extends Access {
|
|
|
249
249
|
'anchors': false,
|
|
250
250
|
'occlusion': false,
|
|
251
251
|
'marker-tracking': false,
|
|
252
|
+
'layers': false,
|
|
252
253
|
};
|
|
253
254
|
optionalFeaturesExtra = '';
|
|
254
255
|
requiredFeatures = {
|
|
@@ -263,6 +264,7 @@ export class WebXRSettings extends Access {
|
|
|
263
264
|
'anchors': false,
|
|
264
265
|
'occlusion': false,
|
|
265
266
|
'marker-tracking': false,
|
|
267
|
+
'layers': false,
|
|
266
268
|
};
|
|
267
269
|
requiredFeaturesExtra = '';
|
|
268
270
|
}
|
|
@@ -838,6 +840,10 @@ export class LanguageResource extends Resource {
|
|
|
838
840
|
export class ParticleEffectResource extends Resource {
|
|
839
841
|
name = 'particleEffect';
|
|
840
842
|
}
|
|
843
|
+
/** Audio clip resource */
|
|
844
|
+
export class AudioClipResource extends Resource {
|
|
845
|
+
name = 'audioClip';
|
|
846
|
+
}
|
|
841
847
|
/** Plugin resource */
|
|
842
848
|
export class PluginResource extends Resource {
|
|
843
849
|
name = 'plugin';
|
package/dist/native.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface NativeUiAPI {
|
|
|
23
23
|
button(label: string): boolean;
|
|
24
24
|
image(id: number, width: number, height: number): boolean;
|
|
25
25
|
inputText(label: string, value: string): string | null;
|
|
26
|
+
inputTextPassword(label: string, value: string): string | null;
|
|
26
27
|
inputTextMultiline(widgetId: string, value: string): string | null;
|
|
27
28
|
checkbox(label: string, value: boolean): boolean | null;
|
|
28
29
|
colorEdit4(label: string, value: Float32Array): boolean;
|
package/dist/ui.d.ts
CHANGED
|
@@ -54,7 +54,20 @@ export declare function image(image: UiImage, width: number, height: number): bo
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const inputText: (label: string, value: string) => string | null;
|
|
56
56
|
/**
|
|
57
|
-
* Text input field
|
|
57
|
+
* Text input field for passwords.
|
|
58
|
+
*
|
|
59
|
+
* Shows asterisks instead of the actual characters and disables copying.
|
|
60
|
+
*
|
|
61
|
+
* @param label Label to display next to the field.
|
|
62
|
+
* @param value Current value to set the field to.
|
|
63
|
+
* @returns The new string value when changed by the user this frame, otherwise `null`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* s = ui.inputTextPassword("change secret:", s) || s;
|
|
67
|
+
*/
|
|
68
|
+
export declare const inputTextPassword: (label: string, value: string) => string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Text input field for multiple lines.
|
|
58
71
|
*
|
|
59
72
|
* @param widgetId Unique id for the widget.
|
|
60
73
|
* @param value Current value to set the field to.
|
package/dist/ui.js
CHANGED
|
@@ -78,7 +78,20 @@ export function image(image, width, height) {
|
|
|
78
78
|
*/
|
|
79
79
|
export const inputText = ui.inputText.bind(ui);
|
|
80
80
|
/**
|
|
81
|
-
* Text input field
|
|
81
|
+
* Text input field for passwords.
|
|
82
|
+
*
|
|
83
|
+
* Shows asterisks instead of the actual characters and disables copying.
|
|
84
|
+
*
|
|
85
|
+
* @param label Label to display next to the field.
|
|
86
|
+
* @param value Current value to set the field to.
|
|
87
|
+
* @returns The new string value when changed by the user this frame, otherwise `null`.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* s = ui.inputTextPassword("change secret:", s) || s;
|
|
91
|
+
*/
|
|
92
|
+
export const inputTextPassword = ui.inputTextPassword.bind(ui);
|
|
93
|
+
/**
|
|
94
|
+
* Text input field for multiple lines.
|
|
82
95
|
*
|
|
83
96
|
* @param widgetId Unique id for the widget.
|
|
84
97
|
* @param value Current value to set the field to.
|
package/package.json
CHANGED