johnhan
johnhan
```js import { Leafer, Rect } from 'leafer-ui'; import '@leafer-in/viewport'; const leafer = new Leafer({ view: window, type: 'viewport', wheel: { zoomMode: true }, }); leafer.add(Rect.one({ fill: '#32cd79' }, 100,...
> move.holdMiddleKey: boolean > 按住滚轮中键拖拽是否平移视图,默认为 true 我试了下,把这个设置为true可以了,但是文档说默认就是true
换成 autoLayoutType 装饰器后好像还是不行,没实现 around: center 的效果 ```ts import { registerUI, dataProcessor, Rect, RectData, autoLayoutType } from '@leafer-ui/core' // 引入跨平台核心包 import { IRectInputData, IRectData, IDirection } from '@leafer-ui/interface' // 定义数据 export...