leafer-ui
leafer-ui copied to clipboard
好用的 Canvas 引擎。Easy-to-Use Canvas Engine.
希望在导出的导入能够支持事件的导入导出功能
https://www.leaferjs.com/ui/plugin/in/text-editor/
本地node版本是v18,安装报错如下: ``` npm ERR! > [email protected] build npm ERR! > cargo-cp-artifact -nc lib/v6/index.node -- cargo build --message-format=json-render-diagnostics --release npm ERR! node-pre-gyp info it worked if it ends with ok npm...
- [ ] Adsorption auxiliary wire - [ ] Copy and paste - [ ] Context menu - [ ] Collision detection
想实现类似sketch拖动时,居中或与其他元素边缘重叠时展示的垂直和横向参考线效果,求思路
第一眼看到 LeaferJS,就想要解决眼下这两个动画。目前虽然已有 dom + animation 解决方案,但技术偏久远,且繁杂。
``` const app = new App({ view: window, editor: {} }) const test1 = new Flow( { draggable: true } ); const test1_1 = new Flow( { draggable: true }...
代码如下: `const line = new Line({ ...option, toPoint: { x: data.width, y: data.height }, draggable: true, stroke: { type: 'linear', stops: ['#FF4B4B', '#FEB027'], }, // stroke: 'red' })`
在Rect已经定义边界的情况下启用editable可以改变元素大小到已定义元素的边界之外