leaferjs/leafer-ui

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

Closed this issue · 6 comments

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

动画

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

_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' }
});

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';

image
这种只有一部的

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

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

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