-
import { Leafer } from 'leafer-ui'
import { HTMLText } from '@leafer-in/html'
const leafer = new Leafer({ view: window })
const text = new HTMLText({
text: `
1
…
-
当光标不在元素上可以触发框选操作,鼠标在元素上触发不了,希望能在元素内触发。
-
- [x] I have searched the [issues](https://github.com/antvis/g/issues) of this repository and believe that this is not a duplicate.
### What problem does this feature solve?
1、官方示例《使用 Yoga 排版引擎》一直…
gdnwr updated
2 months ago
-
-
希望用 leafer pen 方法画出 rough.js 的效果,但是和理想效果稍微有点差别:
![image](https://github.com/leaferjs/ui/assets/5955526/95e2e0b5-f711-4091-b1af-018c1ec0afb1)
左侧为集成后,右侧为 rough.js 直出效果。
如果想两种效果一致,是 `pen.setStyle`…
-
![image](https://github.com/user-attachments/assets/1a411c64-fcb4-4c37-8c66-39051accfc17)
这是不设置的效果
![image](https://github.com/user-attachments/assets/0d7cce28-e46f-4a22-9d08-810c3519a09d)
设置后所有文…
-
'M14 7v1H8v6H7V8H1V7h6V1h1v6h6z', //如果用这个 path data 没影响
**'M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z…
-
就是我用`@leafer-draw/node`在服务端进行渲染一些动态的海报
因为是需要生成打印物料。尺寸比较大 有的尺寸类似 8504 * 5669
但是现在渲染导出一张图片内存会飚到1-2个G的情况,
这种应该如何优化呢
-
useCanvas方法报错:
![image](https://github.com/user-attachments/assets/4a88d1f7-0d3f-4978-a61e-32ddf5f0cc79)
Leafer配置项view报错:
![image](https://github.com/user-attachments/assets/216c4faf-bac4-4816-8b…
-