JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q32882F
  • License MIT

paper.js的鼠标控制,包含平移,缩放,旋转

Package Exports

  • paper-control
  • paper-control/dist/control.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (paper-control) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

paper 操作控制器

以实现平移、缩放、旋转、重置

可配置缩放 max 和 min

支持 reset

支持多图层操作

examples:

new paperControl(paper, {
    minScale: 0.5,
    maxScale: 2,
});

多画布操作

new paperControl(paper, {
    minScale: 0.5,
    maxScale: 2,
    isAsyncTransform: true,
    projects: [], // 可选的,如果传了,那么就以传递的某些project同时移动,如果不传但是开了同时移动,则会选择所有project同时变换
});