@@ -24,7 +24,9 @@ type Icon =
2424 | "size"
2525 | "sun"
2626 | "transform"
27- | "world" ;
27+ | "world"
28+ | "mask-on"
29+ | "mask-off" ;
2830
2931export interface ButtonGroupControl {
3032 buttons : {
@@ -44,10 +46,10 @@ export interface MenuControl {
4446 label : string ;
4547 options : (
4648 | {
47- group ?: string ;
48- id : string ;
49- label : string ;
50- }
49+ group ?: string ;
50+ id : string ;
51+ label : string ;
52+ }
5153 | { type : "separator" }
5254 ) [ ] ;
5355 type : "menu" ;
@@ -157,15 +159,15 @@ export interface ClientSendEventData {
157159 keyup : KeyboardEventObject ;
158160 ready : undefined ;
159161 "set-extension-points" :
160- | {
161- area : "elements" ;
162- controls : Actions ;
163- }
164- | {
165- area : "scene" ;
166- controls : Controls ;
167- }
168- | { area : "settings" ; options : MenuControl [ "options" ] } ;
162+ | {
163+ area : "elements" ;
164+ controls : Actions ;
165+ }
166+ | {
167+ area : "scene" ;
168+ controls : Controls ;
169+ }
170+ | { area : "settings" ; options : MenuControl [ "options" ] } ;
169171 track : { actionId : string } ;
170172}
171173
@@ -207,15 +209,15 @@ export interface HostSendEventData {
207209 path : string ;
208210 } | null ;
209211 "extension-point-triggered" :
210- | {
211- id : string ;
212- scope : "scene" ;
213- }
214- | {
215- data : ExtensionPointElement ;
216- id : string ;
217- scope : "element" ;
218- } ;
212+ | {
213+ id : string ;
214+ scope : "scene" ;
215+ }
216+ | {
217+ data : ExtensionPointElement ;
218+ id : string ;
219+ scope : "element" ;
220+ } ;
219221 keydown : KeyboardEventObject ;
220222 keyup : KeyboardEventObject ;
221223 "request-blur-element" : undefined ;
@@ -234,20 +236,23 @@ export interface HostSendEventData {
234236 path : string ;
235237 } ;
236238 "request-jump-to-element" :
237- | {
238- astPath : string ;
239- column : number ;
240- line : number ;
241- path : string ;
242- }
243- | undefined ;
239+ | {
240+ astPath : string ;
241+ column : number ;
242+ line : number ;
243+ path : string ;
244+ }
245+ | undefined ;
246+ "request-material-override" : {
247+ state : "none" | "wireframe" ;
248+ } ;
244249 "request-open-component" :
245- | {
246- encodedProps : string ;
247- exportName : string ;
248- path : string ;
249- }
250- | undefined ;
250+ | {
251+ encodedProps : string ;
252+ exportName : string ;
253+ path : string ;
254+ }
255+ | undefined ;
251256 "request-refresh-scene" : { hard : true } | undefined ;
252257 "request-reset-prop" : {
253258 astPath : string ;
@@ -289,6 +294,7 @@ export interface HostSendEventResponse {
289294 "request-delete-element" : void ;
290295 "request-focus-element" : void ;
291296 "request-jump-to-element" : void ;
297+ "request-material-override" : void ;
292298 "request-open-component" : void ;
293299 "request-refresh-scene" : void ;
294300 "request-reset-prop" : void ;
0 commit comments