fix: resolve conflict.

This commit is contained in:
Yanyan-Wang 2020-03-09 14:17:34 +08:00 committed by Yanyan Wang
parent a93c0fbb39
commit f3675a1af9
2 changed files with 8 additions and 15 deletions

View File

@ -268,7 +268,7 @@ const CustomFlow = () => {
text: cfg.data && cfg.data.type,
x: line2StartPoint.x + labelLeftOffset,
y: endPoint.y - labelTopOffset - amount.getBBox().height - 2,
fontSize: 10,
fontSize: 12,
textAlign: 'left',
textBaseline: 'middle',
fill: '#000000D9',
@ -299,6 +299,8 @@ const CustomFlow = () => {
container: container.current as string | HTMLElement,
width: 1000,
height: 1000,
renderer: 'svg',
fitView: true,
layout: {
type: 'dagre',
rankdir: 'LR',
@ -306,14 +308,14 @@ const CustomFlow = () => {
ranksep: 100,
},
modes: {
default: ['drag-canvas'],
default: ['drag-canvas', 'zoom-canvas', 'drag-node'],
},
defaultNode: {
type: 'round-rect', //'round-rect', // 'rect',//
labelCfg: {
style: {
fill: '#000000A6',
fontSize: 10,
fontSize: 12,
},
},
style: {

View File

@ -2,16 +2,12 @@
import { storiesOf } from '@storybook/react';
import React from 'react';
import DefaultShape from './component/default-shape';
<<<<<<< HEAD
import Image from './component/image';
=======
import CustomNode from './component/custom-node';
>>>>>>> test: svg custom group
export default { title: 'Shape' };
storiesOf('Shape', module)
<<<<<<< HEAD
.add('default node', () => (
// 一个 add 表示添加一个 story
<DefaultShape />
@ -20,11 +16,6 @@ storiesOf('Shape', module)
// 一个 add 表示添加一个 story
<Image />
))
=======
.add('default node', () => (
<DefaultShape />
))
.add('custom node', () => (
<CustomNode />
))
>>>>>>> test: svg custom group
.add('custom node', () => (
<CustomNode />
))