jason-chen-coder / mxgraph-easyfloweditor Goto Github PK
View Code? Open in Web Editor NEW基于mxGraph+vue设计的流程图编辑器
Home Page: https://jason-chen-coder.github.io/Mxgraph-EasyFlowEditor/#/
基于mxGraph+vue设计的流程图编辑器
Home Page: https://jason-chen-coder.github.io/Mxgraph-EasyFlowEditor/#/
首先向Json表示感谢!本人近期也在研究mxgraph,您的这个详细的demo示例给我带来了非常非常大的帮助!
因为本人实际项目中涉及需要设置 word-break 的css属性,折腾了好几天总算搞定了。也发现了您代码中一些小瑕疵,以下提出来。
Mxgraph-EasyFlowEditor-1.0-beat\src\views\customToolbar\customToolbar.vue中,
style[mxConstants.WORD_WRAP] = "normal"
应改为 mxConstant.WORD_WRAP = 'normal'
或者 mxConstant.WORD_WRAP = 'word-break'
mxConstant.WORD_WRAP
的值直接拼接字符串 'word-warp:' + mxConstant.WORD_WRAP + ';'
word-break
属性,通过style[mxConstants["word-break"]] = "break-all"
设置是无效的。word-break
属性,目前本人知晓的方法有两种:
mxSvgCanvas2D.prototype.getTextCss
方法,该方法返回一个css字符串,负责cell设置基本的css样式。在原方法返回的css字段内,额外增加自己需要的 其他自定义基础css样式可以参考分组节点上的用法, mxgraph是支持节点内容使用html渲染的,
Originally posted by @Jason-chen-coder in #23 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.