| |
---|
| | return stroke.getStrokeNo(); |
---|
| | } |
---|
| | |
---|
| | |
---|
| | // レイヤーごとのstrokeをすべて消去 |
---|
| | @Path("/{aid}/pageMap/0/layers/0/strokes") |
---|
| | @DELETE |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public void deleteStrokes(@PathParam("aid") Integer aid, @FormParam("uid") Integer uid) { |
---|
| | var animation = gallery.getAnimationInformation(aid); |
---|
| | |
---|
| | strokes.clear(); |
---|
| | // if(animation != null) { |
---|
| | // this.Test.setStrokes(pen, color, thick); |
---|
| | // }else{ |
---|
| | // throw new WebApplicationException(401); |
---|
| | // } |
---|
| | } |
---|
| | |
---|
| | |
---|
| | // strokeNoを指定してstrokeを消去 |
---|
| | @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}") |
---|
| | @DELETE |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public void deleteStrokeNo(@PathParam("aid") Integer aid, @PathParam("strokeNo") Integer strokeNo) { |
---|
| | var animation = gallery.getAnimationInformation(aid); |
---|
| | |
---|
| | int no = strokeNo; |
---|
| | strokes.remove(no); |
---|
| | // if(animation != null) { |
---|
| | // this.Test.setStrokes(pen, color, thick); |
---|
| | // }else{ |
---|
| | // throw new WebApplicationException(401); |
---|
| | // } |
---|
| | } |
---|
| | |
---|
| | // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
---|
| | // 全座標値を取得する |
---|
| | // @PathParam Integer aid 作品のID |
---|
| | // @PathParam Integer strokeNo 線番号 |
---|
| |
---|
| | |