leaferjs / leafer-ui

一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.
https://www.leaferjs.com
MIT License
2.52k stars 89 forks source link

鼠标 移动到 对象上时,边框显示有问题,有的显示,有的不显示,有的显示分部, #221

Closed 3400442579 closed 1 month ago

3400442579 commented 1 month ago

鼠标 移动到 对象上时,边框显示有问题,有的显示,有的不显示,有的显示分部

动画

leaferjs commented 1 month ago

你是不是没关闭sky层的局部渲染? image

3400442579 commented 1 month ago

_lapp = new App({ view: id, tree: { type: 'draw' }, sky: { type: 'draw' }, editor: { //around: 'center', point: { cornerRadius: 0 }, middlePoint: {}, rotatePoint: { width: 10, height: 10 }, rect: { dashPattern: [3, 2] } }, move: { scroll: 'limit' } });

3400442579 commented 1 month ago

import { ScrollBar, App, Rect, Group, Canvas as LCanvas, Box, Image as LImage, Path as LPath, Text as LText, UI, Platform, PointerEvent, DragEvent, EditorEvent, PropertyEvent, dataType } from 'leafer-editor';

3400442579 commented 1 month ago

image 这种只有一部的

leaferjs commented 1 month ago

少加 usePartRender 参数了,我上一张截图已经猜到了:

sky: { type: 'draw', usePartRender: false }

leaferjs commented 1 month ago

官网示例的sky层都加了这个参数