UNPKG

test-whiteboard

Version:

https://gitlab.gridsum.com/gov_law_tech/FrontEnd/whiteboard

25 lines (24 loc) 485 B
export default class WhiteboardLine{ constructor(groupId,stroke,id,start,end){ this.type='line'; this.groupId=groupId; this.id=id; this.stroke= stroke; this.start={ x:0, y:0 }; if(start) { this.start = start; } this.end={ x:0, y:0 }; if(end) { this.end = end; } } }