mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 03:08:33 +08:00
fix: resolve conflict.
This commit is contained in:
parent
a93c0fbb39
commit
f3675a1af9
@ -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: {
|
||||
|
@ -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 />
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user