English
IPNL_PrimitiveAPI interface
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Panel 图元接口
Signature
typescript
interface IPNL_PrimitiveAPI1
Remarks
入参 / 出参中的图元 ID 均为稳定标识(对应数据模型 gId),会话内不变、跨保存有效,不是编辑器展示编号 id。
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(...args: any[]) => IPNL_Primitive | undefined | Promise<IPNL_Primitive> | Promise<IPNL_Primitive | undefined> | (ALPHA) | ||
(primitiveIds: string | any | Array<string> | Array<any>) => boolean | Promise<boolean> | (ALPHA) | ||
{ (primitiveIds: string): IPNL_Primitive | undefined | Promise<IPNL_Primitive | undefined>; (primitiveIds: Array<string>): Array<IPNL_Primitive> | Promise<Array<IPNL_Primitive>> } | (ALPHA) | ||
(...args: any[]) => Array<IPNL_Primitive> | Promise<Array<IPNL_Primitive>> | (ALPHA) | ||
(...args: any[]) => Array<string> | Promise<Array<string>> | (ALPHA) | ||
(primitiveId: string | any, ...args: any[]) => IPNL_Primitive | undefined | Promise<IPNL_Primitive> | Promise<IPNL_Primitive | undefined> | (ALPHA) |