UPDATE: VERSION-20260316
This commit is contained in:
@@ -58,7 +58,7 @@ export const createGraphConnectingAttributes = (): Partial<Connecting> => {
|
||||
...lineOptions.attrs?.line,
|
||||
targetMarker: null,
|
||||
sourceMarker: null,
|
||||
}
|
||||
},
|
||||
},
|
||||
animation: lineOptions.animation,
|
||||
markup: lineOptions.markup,
|
||||
|
||||
@@ -53,7 +53,7 @@ export interface GraphBaseElement {
|
||||
position: GraphPosition;
|
||||
category: NullableString;
|
||||
element?: GraphDraggableElement;
|
||||
components?: GraphComponentElement[]
|
||||
components?: GraphComponentElement[];
|
||||
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
@@ -224,6 +224,7 @@ export const useGraphCanvas = (readonly: boolean = false): UseGraphCanvas => {
|
||||
|
||||
const createCanvas = (c: HTMLDivElement): Graph => {
|
||||
container.value = c;
|
||||
|
||||
graph.value = createGraphCanvas(c, readonly);
|
||||
initEvents();
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
export * from './line'
|
||||
export * from './ports'
|
||||
export * from './element'
|
||||
export * from './canvas'
|
||||
export * from './hooks'
|
||||
export * from './props'
|
||||
export * from './utils'
|
||||
export * from './line';
|
||||
export * from './ports';
|
||||
export * from './element';
|
||||
export * from './canvas';
|
||||
export * from './hooks';
|
||||
export * from './props';
|
||||
export * from './utils';
|
||||
@@ -18,7 +18,7 @@ export const createGraphTaskElement = (element: GraphTaskElement, width: number
|
||||
if (!realHeight) {
|
||||
realHeight = 120;
|
||||
}
|
||||
if(element.group === 'condition' || element.group === 'control') {
|
||||
if (element.group === 'condition' || element.group === 'control') {
|
||||
realHeight = 60;
|
||||
}
|
||||
return {
|
||||
@@ -74,8 +74,10 @@ export const resolveGraphEdgeElements = (graph: Graph): GraphEdgeElement[] => {
|
||||
key: edge.id,
|
||||
type: 'edge',
|
||||
status: nodeData?.status,
|
||||
sourcePort: edge.getSourcePortId(),
|
||||
source: edge.getSource() ? edge.getSource() as unknown as string : null,
|
||||
target: edge.getSource() ? edge.getTarget() as unknown as string : null,
|
||||
targetPort: edge.getTargetPortId(),
|
||||
attrs: edge.getAttrs() ?? {},
|
||||
router: edge.getRouter() ?? {},
|
||||
connector: edge.getConnector() ?? null,
|
||||
|
||||
Reference in New Issue
Block a user