@flowgram.ai/free-auto-layout-plugin 0.2.15 → 0.2.17
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/esm/index.js.map +1 -1
- package/dist/index.d.mts +30 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -140,6 +140,11 @@ declare namespace dagreLib {
|
|
|
140
140
|
export { reversePointsForReversedEdges };
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
145
|
+
* SPDX-License-Identifier: MIT
|
|
146
|
+
*/
|
|
147
|
+
|
|
143
148
|
declare class LayoutStore {
|
|
144
149
|
readonly config: LayoutConfig;
|
|
145
150
|
private indexMap;
|
|
@@ -168,6 +173,11 @@ declare class LayoutStore {
|
|
|
168
173
|
private sortNodes;
|
|
169
174
|
}
|
|
170
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
178
|
+
* SPDX-License-Identifier: MIT
|
|
179
|
+
*/
|
|
180
|
+
|
|
171
181
|
interface LayoutNode {
|
|
172
182
|
id: string;
|
|
173
183
|
/** 节点索引 */
|
|
@@ -251,12 +261,22 @@ type GetFollowNode = (node: LayoutNode, context: {
|
|
|
251
261
|
followTo?: string;
|
|
252
262
|
} | undefined;
|
|
253
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
266
|
+
* SPDX-License-Identifier: MIT
|
|
267
|
+
*/
|
|
268
|
+
|
|
254
269
|
interface AutoLayoutOptions {
|
|
255
270
|
layoutConfig?: Partial<LayoutConfig>;
|
|
256
271
|
}
|
|
257
272
|
|
|
258
273
|
declare const createFreeAutoLayoutPlugin: _flowgram_ai_core.PluginCreator<AutoLayoutOptions>;
|
|
259
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
277
|
+
* SPDX-License-Identifier: MIT
|
|
278
|
+
*/
|
|
279
|
+
|
|
260
280
|
declare class Layout {
|
|
261
281
|
private readonly _store;
|
|
262
282
|
private readonly _layout;
|
|
@@ -268,8 +288,18 @@ declare class Layout {
|
|
|
268
288
|
setFollowNode(getFollowNode?: GetFollowNode): void;
|
|
269
289
|
}
|
|
270
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
293
|
+
* SPDX-License-Identifier: MIT
|
|
294
|
+
*/
|
|
295
|
+
|
|
271
296
|
declare const DefaultLayoutConfig: LayoutConfig;
|
|
272
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
300
|
+
* SPDX-License-Identifier: MIT
|
|
301
|
+
*/
|
|
302
|
+
|
|
273
303
|
declare class AutoLayoutService {
|
|
274
304
|
private readonly document;
|
|
275
305
|
private layoutConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,11 @@ declare namespace dagreLib {
|
|
|
140
140
|
export { reversePointsForReversedEdges };
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
145
|
+
* SPDX-License-Identifier: MIT
|
|
146
|
+
*/
|
|
147
|
+
|
|
143
148
|
declare class LayoutStore {
|
|
144
149
|
readonly config: LayoutConfig;
|
|
145
150
|
private indexMap;
|
|
@@ -168,6 +173,11 @@ declare class LayoutStore {
|
|
|
168
173
|
private sortNodes;
|
|
169
174
|
}
|
|
170
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
178
|
+
* SPDX-License-Identifier: MIT
|
|
179
|
+
*/
|
|
180
|
+
|
|
171
181
|
interface LayoutNode {
|
|
172
182
|
id: string;
|
|
173
183
|
/** 节点索引 */
|
|
@@ -251,12 +261,22 @@ type GetFollowNode = (node: LayoutNode, context: {
|
|
|
251
261
|
followTo?: string;
|
|
252
262
|
} | undefined;
|
|
253
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
266
|
+
* SPDX-License-Identifier: MIT
|
|
267
|
+
*/
|
|
268
|
+
|
|
254
269
|
interface AutoLayoutOptions {
|
|
255
270
|
layoutConfig?: Partial<LayoutConfig>;
|
|
256
271
|
}
|
|
257
272
|
|
|
258
273
|
declare const createFreeAutoLayoutPlugin: _flowgram_ai_core.PluginCreator<AutoLayoutOptions>;
|
|
259
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
277
|
+
* SPDX-License-Identifier: MIT
|
|
278
|
+
*/
|
|
279
|
+
|
|
260
280
|
declare class Layout {
|
|
261
281
|
private readonly _store;
|
|
262
282
|
private readonly _layout;
|
|
@@ -268,8 +288,18 @@ declare class Layout {
|
|
|
268
288
|
setFollowNode(getFollowNode?: GetFollowNode): void;
|
|
269
289
|
}
|
|
270
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
293
|
+
* SPDX-License-Identifier: MIT
|
|
294
|
+
*/
|
|
295
|
+
|
|
271
296
|
declare const DefaultLayoutConfig: LayoutConfig;
|
|
272
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
300
|
+
* SPDX-License-Identifier: MIT
|
|
301
|
+
*/
|
|
302
|
+
|
|
273
303
|
declare class AutoLayoutService {
|
|
274
304
|
private readonly document;
|
|
275
305
|
private layoutConfig;
|