0.2.9 • Published 1 year ago

visual-shape v0.2.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

visual-shape

支撑上层模块的图形库

安装

pnpm add visual-shape

用法

import { VisualShape } from 'visual-shape'

// 从配置创建VisualShape对象
VisualShape.from({
  type: "circle",
  cx: 0,
  cy: 0,
  radius: 100
})

// 或是通过静态方法创建VisualShape对象
VisualShape.circle(0, 0, 100)