next-flow-interface 0.16.3 → 0.16.4
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/index.d.ts +35 -34
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1245,6 +1245,39 @@ interface RsServiceApi {
|
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
+
interface ContextMenuServiceApi {
|
|
1249
|
+
/**
|
|
1250
|
+
* 当前所有右键菜单
|
|
1251
|
+
*/
|
|
1252
|
+
contextMenus: ContextMenu[];
|
|
1253
|
+
/**
|
|
1254
|
+
* 创建右键菜单
|
|
1255
|
+
*
|
|
1256
|
+
* @param options 创建右键菜单的选项对象 具体选项见 ContextMenuCreateOptions
|
|
1257
|
+
*
|
|
1258
|
+
* @returns 返回所创建的右键菜单的控制器
|
|
1259
|
+
*/
|
|
1260
|
+
create(options: ContextMenuCreateOptions): ContextMenuController;
|
|
1261
|
+
/**
|
|
1262
|
+
* 获取右键菜单
|
|
1263
|
+
*
|
|
1264
|
+
* @param id 右键菜单的 id
|
|
1265
|
+
*
|
|
1266
|
+
* @returns 返回对应 id 的右键菜单 如果没有则返回 undefined
|
|
1267
|
+
*/
|
|
1268
|
+
get(id: string): ContextMenu | undefined;
|
|
1269
|
+
/**
|
|
1270
|
+
* 关闭右键菜单
|
|
1271
|
+
*
|
|
1272
|
+
* @param contextMenu 右键菜单控制器
|
|
1273
|
+
*/
|
|
1274
|
+
close(contextMenu: string | ContextMenu): Promise<boolean>;
|
|
1275
|
+
/**
|
|
1276
|
+
* 关闭所有右键菜单
|
|
1277
|
+
*/
|
|
1278
|
+
closeAll(): Promise<number>;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1248
1281
|
interface DialogServiceApi {
|
|
1249
1282
|
/**
|
|
1250
1283
|
* 当前所有对话框
|
|
@@ -1458,7 +1491,7 @@ interface MessageServiceApi {
|
|
|
1458
1491
|
warning: (text: string, translateNamespace?: string, duration?: number) => void;
|
|
1459
1492
|
error: (text: string, translateNamespace?: string, duration?: number) => void;
|
|
1460
1493
|
showWithTranslate: (text: string, type: MessageType, translateNamespace: string, duration: number) => void;
|
|
1461
|
-
show: (text: string, type: MessageType, duration
|
|
1494
|
+
show: (text: string, type: MessageType, duration?: number) => void;
|
|
1462
1495
|
}
|
|
1463
1496
|
|
|
1464
1497
|
type NativeMouseEventSubscriber = (e: MouseEvent$1) => void;
|
|
@@ -2518,6 +2551,7 @@ interface NfpApi {
|
|
|
2518
2551
|
firstLoadModelService: FirstLoadModelServiceApi;
|
|
2519
2552
|
pluginContainerService: PluginContainerServiceApi;
|
|
2520
2553
|
sceneService: SceneServiceApi;
|
|
2554
|
+
contextMenuService: ContextMenuServiceApi;
|
|
2521
2555
|
};
|
|
2522
2556
|
engine: {
|
|
2523
2557
|
animation: {
|
|
@@ -2628,39 +2662,6 @@ interface NfpApi {
|
|
|
2628
2662
|
|
|
2629
2663
|
type NodeMaterialChangeListener = (nid: string, fid: string, material: NodeMaterial) => void;
|
|
2630
2664
|
|
|
2631
|
-
interface ContextMenuServiceApi {
|
|
2632
|
-
/**
|
|
2633
|
-
* 当前所有右键菜单
|
|
2634
|
-
*/
|
|
2635
|
-
contextMenus: ContextMenu[];
|
|
2636
|
-
/**
|
|
2637
|
-
* 创建右键菜单
|
|
2638
|
-
*
|
|
2639
|
-
* @param options 创建右键菜单的选项对象 具体选项见 ContextMenuCreateOptions
|
|
2640
|
-
*
|
|
2641
|
-
* @returns 返回所创建的右键菜单的控制器
|
|
2642
|
-
*/
|
|
2643
|
-
create(options: ContextMenuCreateOptions): ContextMenuController;
|
|
2644
|
-
/**
|
|
2645
|
-
* 获取右键菜单
|
|
2646
|
-
*
|
|
2647
|
-
* @param id 右键菜单的 id
|
|
2648
|
-
*
|
|
2649
|
-
* @returns 返回对应 id 的右键菜单 如果没有则返回 undefined
|
|
2650
|
-
*/
|
|
2651
|
-
get(id: string): ContextMenu | undefined;
|
|
2652
|
-
/**
|
|
2653
|
-
* 关闭右键菜单
|
|
2654
|
-
*
|
|
2655
|
-
* @param contextMenu 右键菜单控制器
|
|
2656
|
-
*/
|
|
2657
|
-
close(contextMenu: string | ContextMenu): Promise<boolean>;
|
|
2658
|
-
/**
|
|
2659
|
-
* 关闭所有右键菜单
|
|
2660
|
-
*/
|
|
2661
|
-
closeAll(): Promise<number>;
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
2665
|
declare const ANY = "*/*";
|
|
2665
2666
|
declare const UNKNOWN = "unknown/unknown";
|
|
2666
2667
|
declare const MESH = "babylonjs/mesh";
|
package/package.json
CHANGED