| |
---|
| | var animation = gallery.getAnimationInformation(aid); |
---|
| | Stroke Test = new Stroke(); |
---|
| | Test.addStrokes(pen, color, thick); |
---|
| | Test.addStrokeNo();//strokeNoを+1する |
---|
| | Test.addPositions(this.positions); |
---|
| | Test.addPosition(this.positions); |
---|
| | this.strokes.add(Test); |
---|
| | // if(animation != null) { |
---|
| | // this.Test.setStrokes(pen, color, thick); |
---|
| | // }else{ |
---|
| |
---|
| | */ |
---|
| | @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}/position") |
---|
| | @POST |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public void addPositions(@PathParam("aid") Integer aid, @FormParam("x") Float x, @FormParam("y") Float y) { |
---|
| | public void addPositions(@PathParam("aid") Integer aid, @PathParam("strokeNo") Integer strokeNo, @FormParam("x") Float x, @FormParam("y") Float y) { |
---|
| | var animation = gallery.getAnimationInformation(aid); |
---|
| | |
---|
| | Position Position = new Position(); |
---|
| | Position.setXY(x, y); |
---|
| | this.positions.add(Position); |
---|
| | // Stroke stroke = strokes.get(strokeNo); |
---|
| | |
---|
| | Position position = new Position(); |
---|
| | position.setXY(x, y); |
---|
| | // stroke.addPosition(Position); |
---|
| | this.positions.add(position); |
---|
| | // if(animation != null) { |
---|
| | // this.Position.setXY(x, y); |
---|
| | // this.positions.add(this.Position); |
---|
| | // }else{ |
---|
| |
---|
| | |
確認を、、
LGTM
364f7cd
intomaster
fromakagi
on 29 May 2021akagi
branch on 29 May 2021