UNPKG
mskalign-canvas
Version:
latest (2.28.4)
2.28.4
2.28.2
2.28.1
2.28.0
2.27.6
2.27.5
2.27.4
2.27.3
2.27.2
2.27.1
2.27.0
2.26.1
2.26.0
2.25.5
2.25.4
2.25.3
2.25.2
2.25.1
2.25.0
2.24.5
2.24.4
2.24.3
2.24.2
2.24.1
2.23.4
2.23.3
2.23.2
2.23.1
2.23.0
2.22.7
2.22.6
2.22.5
2.22.4
2.22.2
2.22.1
2.22.0
2.21.12
2.21.11
2.21.10
2.21.9
2.21.8
2.21.7
2.21.6
2.21.5
2.21.4
2.21.3
2.21.2
2.21.1
2.21.0
2.20.6
2.20.5
2.20.4
2.20.3
2.20.2
2.20.1
2.20.0
2.19.5
2.19.4
2.19.3
2.19.2
2.19.1
2.19.0
一个用于图片标注的javascript库,基于canvas,简单轻量,支持矩形、多边形、点、折线、圆形。
mskalign-canvas
/
lib
/
src
/
shape
/
Polygon.d.ts
11 lines
(10 loc)
•
325 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
Shape
from
"./Shape"
;
import
type
{
Point
}
from
"../types"
;
export
default
class
Polygon
extends
Shape
{
name
:
string
;
type
:
number
;
/** 最大点的个数,0 表示无限制 不能少于3个 */
maxPoints
:
number
;
constructor
(
item
:
any
,
index
:
number
);
get
ctrlPoints
():
Point
[]; }