Skip to content

on canvas draw shape of circle, rectangle, line, arrow, curve, path, text, sector, coordinate

Notifications You must be signed in to change notification settings

fangsmile/Canvas-GraphLib

Repository files navigation

Canvas-GraphLib

Using language of typescript, I package the shape-drawing of the underlying.

该项目使用typescript语言,将在canvas上绘制图形的底层库进行了封装。

You can download sourcecode to use directly.

你可以直接下载源码使用到项目中。

整个绘制层的结构如下图所示:

stage是一个绘制舞台,项目中可以有多个舞台,指定绘制一个进行绘制。stage包含一个或者多个绘制层。

layer是舞台中的一个绘制层,绘制具体的图形shape或者group。

group是一个组,可以包含多个图形shape或者group。

以上三个类都继承自container。

image

About

on canvas draw shape of circle, rectangle, line, arrow, curve, path, text, sector, coordinate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published