UPDATE: VERSION-20260313
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import type { NodeTemplate } from '../types';
|
||||
import type { NodeDragTemplate } from '../types';
|
||||
import type { GraphTaskElement, GraphTaskRect } from '../builder/element';
|
||||
import { generateKey } from '@/utils/strings';
|
||||
|
||||
export const createGraphTaskElementFromTemplate = (
|
||||
template: NodeTemplate,
|
||||
template: NodeDragTemplate,
|
||||
rect?: GraphTaskRect,
|
||||
): GraphTaskElement => {
|
||||
let realRect = { width: 120, height: 80, x: 0, y: 0, ...rect || {} };
|
||||
@@ -25,6 +25,7 @@ export const createGraphTaskElementFromTemplate = (
|
||||
templateType: template.templateType,
|
||||
name: template.name,
|
||||
category: template.type,
|
||||
group: template.group,
|
||||
description: template.description,
|
||||
order: 0,
|
||||
position: {
|
||||
|
||||
Reference in New Issue
Block a user