Browse Source

#35 feat: supports node's text wrap

master
smallstonesk 4 years ago
parent
commit
9eea10e210
  1. 1
      packages/core/src/common/baseCell/behavior.ts
  2. 1
      packages/core/src/common/baseCell/branch.ts
  3. 1
      packages/core/src/common/baseCell/start.ts

1
packages/core/src/common/baseCell/behavior.ts

@ -13,6 +13,7 @@ const schema = {
}, },
label: { label: {
fill: '#333', fill: '#333',
textWrap: { width: '100%' },
}, },
}, },
ports: { ports: {

1
packages/core/src/common/baseCell/branch.ts

@ -20,6 +20,7 @@ const schema = {
fontSize: 14, fontSize: 14,
textAnchor: 'middle', textAnchor: 'middle',
textVerticalAnchor: 'middle', textVerticalAnchor: 'middle',
textWrap: { width: '100%' },
}, },
}, },
ports: { ports: {

1
packages/core/src/common/baseCell/start.ts

@ -14,6 +14,7 @@ const schema = {
}, },
label: { label: {
fill: '#FFF', fill: '#FFF',
textWrap: { width: '100%' },
}, },
}, },
ports: { ports: {

Loading…
Cancel
Save