{"id":6099,"date":"2021-10-19T08:58:25","date_gmt":"2021-10-18T23:58:25","guid":{"rendered":"https:\/\/www.sria.co.jp\/blog\/?p=6099"},"modified":"2021-10-19T21:21:04","modified_gmt":"2021-10-19T12:21:04","slug":"6099","status":"publish","type":"post","link":"https:\/\/www.sria.co.jp\/blog\/2021\/10\/6099\/","title":{"rendered":"JS\u596e\u95d8\u8a18\u3010Spine\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092JavaScript\u3067\u5236\u5fa1\u3057\u3066\u307f\u308b\u3011"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u8fbb\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.sria.co.jp\/blog\/2021\/09\/5879\/\">\u524d\u56de<\/a>\u306fSpine\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092Web\u30da\u30fc\u30b8\u306b\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3066\u3001\u4eca\u56de\u306f\u8868\u793a\u3060\u3051\u3067\u306f\u306a\u304f\u3001JavaScript\u3092\u4f7f\u3063\u3066Spine\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6210\u679c\u7269\u306e\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093\u306e\u65d7\u63da\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h2>\n<p>\u3055\u3063\u305d\u304f\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u6210\u679c\u7269\u306b\u3064\u3044\u3066\u3067\u3059\u3002<br \/>\n\u672c\u30da\u30fc\u30b8\u53f3\u4e0b\u306b\u3001\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093\u306e\u65d7\u63da\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\uff08\u30a4\u30e9\u30b9\u30c8\u306f<a href=\"https:\/\/zunko.jp\/\" rel=\"noopener\" target=\"_blank\">\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093 \u516c\u5f0fHP<\/a>\u3092\u53c2\u8003\u306b\u3057\u3064\u3064\u3001\u63cf\u3044\u3066\u307f\u307e\u3057\u305f\u3002\uff09<\/p>\n<p>\u4eca\u56de\u306e\u305a\u3093\u5b50\u3061\u3083\u3093\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u304c\u3001<strong>\u30d6\u30e9\u30a6\u30b6\u4e0a\u306e\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3068\u9023\u52d5\u3057\u307e\u3059<\/strong>\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u306e\u5de6\u534a\u5206\u306b\u30de\u30a6\u30b9\u304c\u3042\u308b\u3068\u3001\u8d64\u65d7\u3092\u6301\u3063\u305f\u53f3\u624b\u304c\u53cd\u5fdc\u3057\u307e\u3059\u3002<br \/>\n\u53cd\u5bfe\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u53f3\u534a\u5206\u306b\u30de\u30a6\u30b9\u304c\u3042\u308b\u3068\u3001\u767d\u65d7\u3092\u6301\u3063\u305f\u5de6\u624b\u304c\u53cd\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3069\u3061\u3089\u306e\u624b\u3082\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306e\u9ad8\u3055\u306b\u9023\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30de\u30a6\u30b9\u304c\u30d6\u30e9\u30a6\u30b6\u4e0a\u7aef\u306b\u8fd1\u3051\u308c\u3070\u624b\u304c\u4e0a\u304c\u308a\u3001\u4e0b\u7aef\u306b\u8fd1\u3051\u308c\u3070\u624b\u304c\u4e0b\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a66\u3057\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30de\u30a6\u30b9\u3092\u30b0\u30ea\u30f3\u30b0\u30ea\u30f3\u3068\u52d5\u304b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u9023\u52d5\u3057\u3066\u3001\u305a\u3093\u5b50\u3061\u3083\u3093\u304c\u8d64\u65d7\u3092\u3042\u3052\u305f\u308a\u3001\u767d\u65d7\u3092\u3042\u3052\u305f\u308a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\uff08\u30d6\u30e9\u30a6\u30b6\u3092\u30ea\u30b5\u30a4\u30ba\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\u306f\u5b9f\u88c5\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u4e00\u5ea6\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u3068\u30de\u30a6\u30b9\u3068\u306e\u9023\u52d5\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u6642\u306f\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u30de\u30a6\u30b9\u306e\u52d5\u304d\u306b\u5fdc\u3058\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30b9\u30de\u30db\u3067\u306f\u5f85\u6a5f\u30e2\u30fc\u30b7\u30e7\u30f3\u306e\u305a\u3093\u5b50\u3061\u3083\u3093\u304c\u8868\u793a\u3055\u308c\u308b\u3060\u3051\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u30b9\u30de\u30db\u3067\u3054\u89a7\u306e\u65b9\u306f\u3001PC\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<h2>Spine\u306e\u30c8\u30e9\u30c3\u30af\u3068\u30a2\u30eb\u30d5\u30a1<\/h2>\n<p>\u305a\u3093\u5b50\u3061\u3083\u3093\u306e\u65d7\u63da\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u304c\u3001Spine\u306e<a href=\"http:\/\/ja.esotericsoftware.com\/spine-preview#%E3%83%88%E3%83%A9%E3%83%83%E3%82%AF\" rel=\"noopener\" target=\"_blank\"><strong>\u30c8\u30e9\u30c3\u30af<\/strong><\/a>\u3068<a href=\"http:\/\/ja.esotericsoftware.com\/spine-preview#%E3%82%A2%E3%83%AB%E3%83%95%E3%82%A1\" rel=\"noopener\" target=\"_blank\"><strong>\u30a2\u30eb\u30d5\u30a1<\/strong><\/a>\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30e9\u30c3\u30af\u3068\u306f<\/h3>\n<p>Spine\u306e\u300c<a href=\"http:\/\/ja.esotericsoftware.com\/spine-preview#%E3%83%88%E3%83%A9%E3%83%83%E3%82%AF\" rel=\"noopener\" target=\"_blank\"><strong>\u30c8\u30e9\u30c3\u30af<\/strong><\/a>\u300d\u3068\u306f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\u3059\u308b\u67a0\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\n\u30c8\u30e9\u30c3\u30af\u306f\u6700\u5927\u306715\u30b3\u307e\u3067\u3042\u308a\u30011\u3064\u306e\u30c8\u30e9\u30c3\u30af\u306b\u5bfe\u3057\u3066\u30011\u3064\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u30bb\u30c3\u30c8\u3055\u308c\u305f\u30c8\u30e9\u30c3\u30af\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30dd\u30fc\u30ba\u3092\u540c\u6642\u306b\u9069\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30eb\u30d5\u30a1\u3068\u306f<\/h3>\n<p>Spine\u306e\u300c<a href=\"http:\/\/ja.esotericsoftware.com\/spine-preview#%E3%82%A2%E3%83%AB%E3%83%95%E3%82%A1\" rel=\"noopener\" target=\"_blank\"><strong>\u30a2\u30eb\u30d5\u30a1<\/strong><\/a>\u300d\u3068\u306f\u3001\u30c8\u30e9\u30c3\u30af\u306b\u30bb\u30c3\u30c8\u3055\u308c\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30dd\u30fc\u30ba\u3092\u5408\u6210\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u30a2\u30eb\u30d5\u30a1\u306f\u6570\u5024\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u6700\u5c0f\u5024\u304c0\u3002\u6700\u5927\u5024\u304c100\u3067\u3059\u3002\uff08\u203bSpine\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u306f\u6700\u5c0f\u50240\u3002\u6700\u5927\u50241\u3067\u3059\u3002\uff09<br \/>\n\u4e0a\u4f4d\u30c8\u30e9\u30c3\u30af\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30dd\u30fc\u30ba\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u3001\u4e0b\u4f4d\u30c8\u30e9\u30c3\u30af\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u30dd\u30fc\u30ba\u304c\u5408\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Spine\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u30d3\u30e5\u30fc\u3067\u30c8\u30e9\u30c3\u30af\u3068\u30a2\u30eb\u30d5\u30a1\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h3>\n<p>\u6587\u5b57\u3060\u3051\u306e\u89e3\u8aac\u3067\u3059\u3068\u3001\u306a\u3093\u3068\u3082\u5206\u304b\u308a\u3065\u3089\u3044\u306e\u3067\u3001\u52d5\u753b\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4ee5\u4e0b\u306f\u3001Spine\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u30d3\u30e5\u30fc\u306e\u52d5\u753b\u30ad\u30e3\u30d7\u30c1\u30e3\u3067\u3059\u3002<br \/>\n\u30d7\u30ec\u30d3\u30e5\u30fc\u30d3\u30e5\u30fc\u306f\u3001Spine\u3067\u88fd\u4f5c\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u969b\u306b\u3069\u3046\u52d5\u304f\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\n&nbsp;<\/p>\n<div style=\"width: 1050px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-6099-1\" width=\"1050\" height=\"722\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/zunko_flag_anime_spine_trimed.mp4?_=1\" \/><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/zunko_flag_anime_spine_trimed.mp4\">https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/zunko_flag_anime_spine_trimed.mp4<\/a><\/video><\/div>\n<p>\n&nbsp;<\/p>\n<p>\u4eca\u56de\u306e\u305a\u3093\u5b50\u3061\u3083\u3093\u306b\u306f\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>idle \u2026 \u5f85\u6a5f\u4e2d\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3002\u30eb\u30fc\u30d7\u3057\u307e\u3059\u3002<\/li>\n<li>red_flag_hand \u2026 \u8d64\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/li>\n<li>white_flag_hand \u2026 \u767d\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<p>\u52d5\u753b\u5185\u3067\u306f\u3001\u307e\u305a\u300cidle\u300d\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30c8\u30e9\u30c3\u30af0\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u305d\u306e\u5f8c\u306b\u3001\u300cred_flag_hand\u300d\u3068\u300cwhite_flag_hand\u300d\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3001\u30c8\u30e9\u30c3\u30af1\u3078\u9806\u306b\u9069\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u30c8\u30e9\u30c3\u30af1\u306b\u30bb\u30c3\u30c8\u3057\u305f\u5f8c\u3067\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u52d5\u753b\u3092\u898b\u3066\u3044\u305f\u3060\u304f\u3068\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u5909\u66f4\u3057\u305f\u6642\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u9023\u52d5\u3057\u3066\u5909\u5316\u3057\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u3053\u306e\u6642\u3001\u305a\u3093\u5b50\u3061\u3083\u3093\u306f<strong>\u30c8\u30e9\u30c3\u30af0\u306e\u300cidle\u300d\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001\u300cred_flag_hand\u300d\u30fb\u300cwhite_flag_hand\u300d\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5408\u6210\u3055\u308c\u305f\u30dd\u30fc\u30ba<\/strong>\u3092\u3068\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u3053\u306e\u3088\u3046\u306b\u3001Spine\u306b\u304a\u3051\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u88fd\u4f5c\u3067\u306f\u3001\u8907\u96d1\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3089\u305a\u3068\u3082\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u30dd\u30fc\u30ba\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u4e8b\u3067\u3001\u69d8\u3005\u306a\u8868\u73fe\u304c\u53ef\u80fd\u3067\u3059\u3002<\/strong><br \/>\n\u30c8\u30e9\u30c3\u30af\u3068\u30a2\u30eb\u30d5\u30a1\u3092\u4f7f\u3063\u305f\u67d4\u8edf\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5408\u6210\u304c\u3001Spine\u306e\u9b45\u529b\u306e1\u3064\u3067\u3059\u3002<\/p>\n<p>\n&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u2026\u3001\u5b9f\u306f\u3001red_flag_hand\u3068white_flag_hand\u306e2\u3064\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001<strong>\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c1\u3064\u3060\u3051\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/strong>\u3067\u3059\u3002<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001<strong>\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u304c1\u3064\u3060\u3051\u3067\u3059\u306e\u3067\u52d5\u304d\u307e\u305b\u3093\u3002<\/strong>\u5b9f\u8cea\u306f\u305f\u3060\u306e\u9759\u6b62\u753b\u3067\u3059\u3002<\/p>\n<div id=\"attachment_6181\" style=\"width: 1010px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image01.png\"><img aria-describedby=\"caption-attachment-6181\" loading=\"lazy\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image01.png\" alt=\"\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093 \u8d64\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30dd\u30fc\u30ba\" width=\"1000\" height=\"400\" class=\"size-full wp-image-6181\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image01.png 1000w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image01-300x120.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image01-768x307.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><p id=\"caption-attachment-6181\" class=\"wp-caption-text\">\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093 \u8d64\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff08red_flag_hand\uff09 \u30dd\u30fc\u30ba<\/p><\/div>\n<div id=\"attachment_6182\" style=\"width: 1010px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image02.png\"><img aria-describedby=\"caption-attachment-6182\" loading=\"lazy\" src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image02.png\" alt=\"\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093 \u767d\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 \u30dd\u30fc\u30ba\" width=\"1000\" height=\"400\" class=\"size-full wp-image-6182\" srcset=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image02.png 1000w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image02-300x120.png 300w, https:\/\/www.sria.co.jp\/blog\/wp-content\/uploads\/2021\/10\/image02-768x307.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><p id=\"caption-attachment-6182\" class=\"wp-caption-text\">\u6771\u5317\u305a\u3093\u5b50\u3061\u3083\u3093 \u767d\u65d7\u3042\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3(white_flag_hand) \u30dd\u30fc\u30ba<\/p><\/div>\n<p>\u3064\u307e\u308a\u3001\u5148\u7a0b\u306e\u52d5\u753b\u3067\u306f\u3001\u30eb\u30fc\u30d7\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306eidle\u306b\u5bfe\u3057\u3066\u3001\u9759\u6b62\u3057\u305f\u30dd\u30fc\u30ba\u306ered_flag_hand\u30fbwhite_flag_hand\u3092\u5408\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Spine\u306e\u3059\u3054\u3044\u3068\u3053\u308d\u306f\u3001<strong>\u30eb\u30fc\u30d7\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u3001\u9759\u6b62\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff08\u30dd\u30fc\u30ba\uff09\u3092\u5408\u6210\u3057\u3066\u3082\u7834\u7dbb\u305b\u305a\u306b\u3088\u3057\u306a\u306b\u3057\u3066\u304f\u308c\u308b<\/strong>\u70b9\u3067\u3059\u3002<br \/>\n\u5408\u6210\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u540c\u58eb\u3067\u30ad\u30fc\u30d5\u30ec\u30fc\u30e0\u3092\u5bfe\u5fdc\u3055\u305b\u305f\u308a\u2026\u306a\u3069\u306e\u4e0b\u6e96\u5099\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3069\u308c\u304f\u3089\u3044\u5408\u6210\u3059\u308b\u304b\u306f\u3001\u30a2\u30eb\u30d5\u30a1\u5024\u306e\u8abf\u65741\u3064\u3067\u4e8b\u8db3\u308a\u307e\u3059\u3002<\/p>\n<p>\n&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u8aad\u307f\u9032\u3081\u3066\u3044\u305f\u3060\u3044\u305f\u65b9\u306f\u3001\u65e2\u306b\u304a\u5bdf\u3057\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u2026\u3001\u3053\u306e<strong>\u30c8\u30e9\u30c3\u30af\u3068\u30a2\u30eb\u30d5\u30a1\u306fSpine\u30e9\u30f3\u30bf\u30a4\u30e0\u304b\u3089\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/strong><br \/>\n\uff08\u5b9f\u306f<a href=\"https:\/\/www.sria.co.jp\/blog\/2021\/09\/5879\/\">\u524d\u56de<\/a>\u3082\u3001\u3057\u308c\u3063\u3068\u30c8\u30e9\u30c3\u30af\u306e\u8a2d\u5b9a\u3092\u3084\u3063\u3066\u3044\u307e\u3057\u305f\u3002\uff09<\/p>\n<p>\u672c\u30da\u30fc\u30b8\u53f3\u4e0b\u306e\u305a\u3093\u5b50\u3061\u3083\u3093\u306b\u306f\u3001\u300c\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u304c\u66f4\u65b0\u3055\u308c\u308b\u5ea6\u306b\u3001\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u66f4\u65b0\u3059\u308b\u300d\u51e6\u7406\u3092JavaScript\uff08TypeScript\uff09\u3067\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u2026\u306a\u306e\u3067\u3001\u30de\u30a6\u30b9\u4f4d\u7f6e\u3068\u9023\u52d5\u3057\u3066\u3001\u3046\u307e\u3044\u3053\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u305d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066<\/h2>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068main.ts<\/h3>\n<p>\u4eca\u56de\u306e\u65d7\u63da\u3052\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f<a href=\"https:\/\/github.com\/sriaTsuji\/public\/tree\/main\/canvas08_spine\" rel=\"noopener\" target=\"_blank\">\u30b3\u30c1\u30e9<\/a>\u3067\u3059\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306f\u3001\u57fa\u672c\u7684\u306b<a href=\"https:\/\/github.com\/sriaTsuji\/public\/tree\/main\/canvas07_spine\">\u524d\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u3068\u540c\u69d8\u3067\u3059\u3002<br \/>\n\u66f4\u65b0\u3057\u305f\u306e\u306f\u3001out\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306espine\u30c7\u30fc\u30bf3\u70b9\u3068src\/main.ts\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nspine\u30c7\u30fc\u30bf3\u70b9\u306f\u5358\u7d14\u306b\u5dee\u3057\u66ff\u3048\u305f\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u524d\u56de\u304b\u3089\u5927\u304d\u304f\u5909\u66f4\u3057\u305f\u306e\u306fsrc\/main.ts\u306e1\u70b9\u3060\u3051\u3067\u3059\u306d\u3002<br \/>\n\u2026\u3067\u3059\u306e\u3067\u3001src\/main.ts\u3060\u3051\u898b\u3066\u3044\u3051\u3070OK\u3067\u3059\u3002<\/p>\n<p><strong>\u25bcsrc\/main.ts \u5168\u6587<\/strong><\/p>\n<pre>\nimport * as PIXI from 'pixi.js'\nimport { Spine } from 'pixi-spine'\n\nconst app = new PIXI.Application({\n  backgroundAlpha: 0.5,\n  backgroundColor: 0x1099bb,\n  height: window.innerHeight,\n  width: window.innerWidth\n})\n\ndocument.body.appendChild(app.view)\n\n\/**\n * onAssetsLoaded\n * \u6771\u5317\u305a\u3093\u5b50\u306espine\u30c7\u30fc\u30bf\uff08zunko\uff09\u3092\u8aad\u307f\u8fbc\u3093\u3060\u5f8c\u306b\u767a\u706b\u3055\u305b\u308b\u95a2\u6570\n * @param {object} loader\n * @param {object} res\n *\/\nconst onAssetsLoaded = (loader: any, res: any) => {\n  \/\/ Spine \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\n  const zunko = new Spine(res.zunko.spineData)\n  \/\/ zunko\u306e\u4f4d\u7f6e\u3092\u30bb\u30c3\u30c8\n  zunko.x = app.screen.width \/ 2\n  zunko.y = app.screen.height\n  \/\/ zunko\u306e\u5927\u304d\u3055\u3092\u30bb\u30c3\u30c8\n  zunko.scale.set(0.75)\n  \/\/ stage\u306bzunko\u3092\u8ffd\u52a0\n  app.stage.addChild(zunko)\n  \/\/ \u521d\u671f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001idle\u3092\u30bb\u30c3\u30c8\n  zunko.state.setAnimation(0, 'idle', true)\n  \/\/ \u4ed6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\n  zunko.state.addAnimation(1, 'white_flag_hand', false, 0)\n  zunko.state.addAnimation(2, 'red_flag_hand', false, 0)\n  \/\/ \u4ed6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u30920\u306b\u3059\u308b\n  zunko.state.tracks[1].alpha = 0\n  zunko.state.tracks[2].alpha = 0\n\n  \/\/ \u753b\u9762\u4e0a\u306e\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u691c\u77e5\u3059\u308b\u51e6\u7406\n  window.addEventListener('mousemove', (event) => {\n    \/\/ \u30de\u30a6\u30b9\u304c\u753b\u9762\u306e\u53f3\u5074\u304b\u5de6\u5074\u304b\u3092\u53d6\u5f97\n    const mousePositon = getMousePosition(window.innerWidth, event.clientX)\n    \/\/ \u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306e\u9ad8\u3055\uff08\u6bd4\u7387\uff09\u3092\u53d6\u5f97\n    const heightRatio = getRatio(window.innerHeight, event.clientY)\n    \/\/ \u5404\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u66f4\u65b0\n    switch (mousePositon) {\n      \/\/ \u753b\u9762\u53f3\u5074\n      case 'right':\n        zunko.state.tracks[1].alpha = 1 - heightRatio\n        zunko.state.tracks[2].alpha = 0\n        break\n      \/\/ \u753b\u9762\u5de6\u5074\n      case 'left':\n        zunko.state.tracks[2].alpha = 1 - heightRatio\n        zunko.state.tracks[1].alpha = 0\n        break\n      default:\n        zunko.state.tracks[1].alpha = 0\n        zunko.state.tracks[2].alpha = 0\n        break\n    }\n  })\n}\n\n\/\/ zunko\u306espine\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\napp.loader.add('zunko', '\/illust_zunko_flag.json').load(onAssetsLoaded)\n\n\/**\n * getMousePosition\n * \u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u304c\u753b\u9762\u306e\u53f3\u5074\u304b\u5de6\u5074\u304b\u3092\u53d6\u5f97\u3059\u308b\n * @param {number} allWidth \u5168\u4f53\u30b5\u30a4\u30ba\n * @param {number} currentPositionX \u30de\u30a6\u30b9\u306e\u73fe\u5728\u4f4d\u7f6e\u306eX\u306e\u5024\n * @return {\"right\" | \"left\"}\n *\/\nconst getMousePosition = (allWidth: number, currentPositionX: number) => {\n  return currentPositionX >= Math.round(allWidth \/ 2) ? 'right' : 'left'\n}\n\n\/**\n * getRatio\n * \u5168\u4f53\uff08all\uff09\u3092\u5143\u306b\u3057\u3066\u3001\u90e8\u5206\uff08part\uff09\u306e\u6bd4\u7387\u3092\u53d6\u5f97\u3059\u308b\n * @param {number} all \u5168\u4f53\n * @param {number} part \u90e8\u5206\n * @return {number} 0\u301c1\u3002\u5c0f\u6570\u70b9\u7b2c\u4e8c\u4f4d\u307e\u3067\u542b\u3080\u3002\n *\/\nconst getRatio = (all: number, part: number) => {\n  return Math.round((part \/ all) * 100) \/ 100\n}\n<\/pre>\n<p>pixi.js\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3084\u3001Spine\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u306f<a href=\"https:\/\/www.sria.co.jp\/blog\/2021\/09\/5879\/\">\u524d\u56de<\/a>\u3068\u540c\u69d8\u3067\u3059\u306e\u3067\u3001\u89e3\u8aac\u306f\u7701\u7565\u3057\u307e\u3059\u306d\u3002<br \/>\n\u5927\u304d\u304f\u5909\u308f\u3063\u305f\u70b9\u3060\u3051\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>white_flag_hand\u30fbred_flag_hand\u3092\u30c8\u30e9\u30c3\u30af\u306b\u8ffd\u52a0\u3059\u308b<\/h3>\n<p><a href=\"https:\/\/www.sria.co.jp\/blog\/2021\/09\/5879\/\">\u524d\u56de<\/a>\u306f\u521d\u671f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066idle\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3001pose\u3068\u5207\u308a\u66ff\u3048\u3066\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u6642\u306f\u3001\u30c8\u30e9\u30c3\u30af\u756a\u53f7\u30920\u3067\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3057\u305f\u306d\u3002<\/p>\n<pre>\n\/\/ \u521d\u671f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001idle\u3092\u30bb\u30c3\u30c8\nzunko.state.setAnimation(0, 'idle', true)\n\/\/ \u4ed6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\nzunko.state.addAnimation(1, 'white_flag_hand', false, 0) \/\/ \u2460\nzunko.state.addAnimation(2, 'red_flag_hand', false, 0) \/\/ \u2460\n\/\/ \u4ed6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u30920\u306b\u3059\u308b\nzunko.state.tracks[1].alpha = 0 \/\/ \u2461\nzunko.state.tracks[2].alpha = 0 \/\/ \u2461\n<\/pre>\n<p>\u4eca\u56de\u306f0\u4ee5\u5916\u306e\u4ed6\u306e\u30c8\u30e9\u30c3\u30af\u756a\u53f7\u3082\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<strong>addAnimation<\/strong>\u95a2\u6570\u3067\u3001\u30c8\u30e9\u30c3\u30af1\u306b\u306fwhite_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3001\u30c8\u30e9\u30c3\u30af2\u306b\u306fred_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff08\u2460\uff09<br \/>\n\u3053\u308c\u3067\u5148\u7a0b\u306e\u52d5\u753b\u3067\u3084\u3063\u3066\u3044\u305f\u30c8\u30e9\u30c3\u30af\u3078\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30c8\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30c8\u30e9\u30c3\u30af1\u306ewhite_flag_hand\u3068\u3001\u30c8\u30e9\u30c3\u30af2\u306ered_flag_hand\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u30920\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u2461\uff09<br \/>\n\u30c8\u30e9\u30c3\u30af\u306e\u72b6\u614b\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001XXXXX.state.tracks[x]\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u5404\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001setAnimation\u95a2\u6570\u30fbaddAnimation\u95a2\u6570\u306e\u7b2c\u4e00\u5f15\u6570\u306b\u5165\u308c\u305f\u6570\u5024\u304c\u3001\u305d\u306e\u307e\u307e\u30c8\u30e9\u30c3\u30af\uff08tracks\uff09\u306eindex\u756a\u53f7\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30c8\u30e9\u30c3\u30af\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u30c8\u30e9\u30c3\u30af0: idle<\/li>\n<li>\u30c8\u30e9\u30c3\u30af1: white_flag_hand \uff08\u30a2\u30eb\u30d5\u30a1\u5024: 0\uff09<\/li>\n<li>\u30c8\u30e9\u30c3\u30af2: red_flag_hand \uff08\u30a2\u30eb\u30d5\u30a1\u5024: 0\uff09<\/li>\n<\/ul>\n<h3>\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u30a2\u30eb\u30d5\u30a1\u5024\u306b\u53cd\u6620\u3059\u308b<\/h3>\n<p>\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u30a2\u30eb\u30d5\u30a1\u5024\u306b\u53cd\u6620\u3059\u308b\u51e6\u7406\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u4eca\u56de\u306e\u809d\u3067\u3059\u3002<\/p>\n<pre>\n\/\/ \u753b\u9762\u4e0a\u306e\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u691c\u77e5\u3059\u308b\u51e6\u7406\nwindow.addEventListener('mousemove', (event) => { \/\/ \u2460\n  \/\/ \u30de\u30a6\u30b9\u304c\u753b\u9762\u306e\u53f3\u5074\u304b\u5de6\u5074\u304b\u3092\u53d6\u5f97\n  const mousePositon = getMousePosition(window.innerWidth, event.clientX) \/\/\u3000\u2461\n  \/\/ \u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306e\u9ad8\u3055\uff08\u6bd4\u7387\uff09\u3092\u53d6\u5f97\n  const heightRatio = getRatio(window.innerHeight, event.clientY) \/\/\u3000\u2462\n  \/\/ \u5404\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u66f4\u65b0\n  switch (mousePositon) { \/\/ \u2463\n    \/\/ \u753b\u9762\u53f3\u5074\n    case 'right':\n      zunko.state.tracks[1].alpha = 1 - heightRatio\n      zunko.state.tracks[2].alpha = 0\n      break\n    \/\/ \u753b\u9762\u5de6\u5074\n    case 'left':\n      zunko.state.tracks[2].alpha = 1 - heightRatio\n      zunko.state.tracks[1].alpha = 0\n      break\n    default:\n      zunko.state.tracks[1].alpha = 0\n      zunko.state.tracks[2].alpha = 0\n      break\n  }\n})\n<\/pre>\n<p>\u6700\u521d\u306f\u3001window.addEventListener(&#8216;mousemove&#8217;,\u2026)\u3067\u3001\u30de\u30a6\u30b9\u304c\u52d5\u3044\u305f\u6642\u306b\u95a2\u6570\u304c\u767a\u706b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\uff08\u2460\uff09<br \/>\n\u3067\u306f\u3001\u305d\u306e\u95a2\u6570\u306e\u4e2d\u8eab\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306f\u3058\u3081\u306b\u3001\u30de\u30a6\u30b9\u304c\u753b\u9762\u4e0a\u306e\u53f3\u5074\u306b\u3044\u308b\u306e\u304b\u3001\u5de6\u5074\u306b\u3044\u308b\u306e\u304b\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u2461\uff09<br \/>\n\u30de\u30a6\u30b9\u304c\u753b\u9762\u53f3\u5074\u306b\u3044\u308c\u3070\u3001mousePositon\u306b\u306f\u3001&#8217;right&#8217;\u304c\u5165\u308a\u307e\u3059\u3002<br \/>\n\u53cd\u5bfe\u306b\u5de6\u5074\u306b\u3044\u308c\u3070\u3001mousePositon\u306b\u306f\u3001&#8217;left&#8217;\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u306b\u3001\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306e\u9ad8\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\uff08\u2462\uff09<br \/>\n\u3053\u306e\u6642\u306b\u53d6\u5f97\u3059\u308b\u9ad8\u3055\u3067\u3059\u304c\u3001<strong>\u305d\u306e\u307e\u307e\u306e\u5024\uff08event.clientY\uff09\u3067\u306f\u306a\u304f\u3001\u753b\u9762\u5168\u4f53\u306e\u9ad8\u3055\u30921\u3068\u3057\u305f\u6642\u306e\u6bd4\u7387\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n<p>\u306a\u305c\u304b\u3068\u8a00\u3046\u3068\u3001<strong>Spine\u30e9\u30f3\u30bf\u30a4\u30e0\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u306b\u306f\u30010\u301c1\u306e\u7bc4\u56f2\u306e\u6570\u5024\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081<\/strong>\u3067\u3059\u3002<br \/>\n\u30a2\u30eb\u30d5\u30a1\u5024 = 0\u306e\u5834\u5408\u306f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u5408\u6210\u304c\u5168\u304f\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\u3002<br \/>\n\u30a2\u30eb\u30d5\u30a1\u5024 = 1\u306e\u5834\u5408\u306f\u3001100%\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5408\u6210\u3055\u308c\u305f\u72b6\u614b\u3001\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\uff08\u53b3\u5bc6\u306b\u306f1\u3088\u308a\u5927\u304d\u3044\u5024\u3082\u5165\u308c\u3089\u308c\u308b\u306e\u3067\u3059\u304c\u2026\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u7834\u7dbb\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3002\uff09<\/p>\n<p>\u6700\u5f8c\u306eswitch\u6587\u306b\u3066\u3001\u2461\u3001\u2462\u306e\u5024\u3092\u4f7f\u3063\u3066\u30a2\u30eb\u30d5\u30a1\u5024\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u2463\uff09<\/p>\n<p>\u30de\u30a6\u30b9\u304c\u753b\u9762\u53f3\u5074\u306b\u3044\u308b\u6642\uff08mousePositon === &#8216;right&#8217;\uff09\u306e\u6642\u3001<br \/>\n\u30c8\u30e9\u30c3\u30af1\uff08white_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u3092 1 &#8211; heightRatio \u3067\u66f4\u65b0\u3057\u3001\u30c8\u30e9\u30c3\u30af2\uff08red_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u30920\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u767d\u65d7\u3092\u6301\u3063\u305f\u624b\u304c\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u9023\u52d5\u3057\u3001\u53cd\u5bfe\u306b\u8d64\u65d7\u3092\u6301\u3063\u305f\u624b\u306f\u5168\u304f\u52d5\u304b\u306a\u304f\u306a\u308b\u2026\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\uff08\u3061\u306a\u307f\u306b\u3001\u306a\u305c (1 &#8211; heightRatio) \u3068\u3057\u3066\u3044\u308b\u304b\u3068\u8a00\u3046\u3068\u3001event.clientY\u306f\u30d6\u30e9\u30a6\u30b6\u4e0a\u7aef\u304c0\u3067\u3042\u308a\u3001\u4e0b\u7aef\u3078\u884c\u3051\u3070\u884c\u304f\u307b\u3069\u6b63\u306b\u5897\u5927\u3059\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u30de\u30a6\u30b9\u304c\u30d6\u30e9\u30a6\u30b6\u4e0a\u7aef\u306b\u884c\u3051\u3070\u624b\u304c\u6319\u304c\u308b\u3002\u4e0b\u7aef\u306b\u884c\u3051\u3070\u624b\u304c\u4e0b\u304c\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308a\u305f\u304b\u3063\u305f\u305f\u3081\u30011\u304b\u3089heightRatio\u3092\u5f15\u3044\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\n&nbsp;<\/p>\n<p>\u30de\u30a6\u30b9\u304c\u753b\u9762\u5de6\u5074\u306b\u3044\u308b\u6642\uff08mousePositon === &#8216;left&#8217;\uff09\u306f\u3001\u4e0a\u8a18\u306e\u9006\u3067\u3059\u306d\u3002<br \/>\n\u30c8\u30e9\u30c3\u30af1\uff08white_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u30920\u306b\u3002<br \/>\n\u30c8\u30e9\u30c3\u30af2\uff08red_flag_hand\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff09\u306e\u30a2\u30eb\u30d5\u30a1\u5024\u3092 1 &#8211; heightRatio \u3067\u66f4\u65b0\u3059\u308c\u3070\u3001\u8d64\u65d7\u3060\u3051\u3092\u3042\u3052\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u3066\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3068\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u9023\u52d5\u3059\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u307e\u3067\u304a\u4ed8\u304d\u5408\u3044\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u30c8\u30e9\u30c3\u30af\u3068\u30a2\u30eb\u30d5\u30a1\u4ee5\u5916\u306b\u3082\u3001<a href=\"http:\/\/ja.esotericsoftware.com\/spine-demos#Mesh-deformations\" rel=\"noopener\" target=\"_blank\">\u30e1\u30c3\u30b7\u30e5\u5909\u5f62<\/a>\u3068<a href=\"http:\/\/ja.esotericsoftware.com\/spine-demos#Path-constraints\" rel=\"noopener\" target=\"_blank\">\u30d1\u30b9\u30fb\u30b3\u30f3\u30b9\u30c8\u30ec\u30a4\u30f3\u30c8<\/a>\u7d44\u307f\u5408\u308f\u305b\u3066\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u3001<a href=\"http:\/\/ja.esotericsoftware.com\/spine-bounding-boxes\" rel=\"noopener\" target=\"_blank\">\u5883\u754c\u30dc\u30c3\u30af\u30b9\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8<\/a>\u3092\u4f7f\u3063\u3066\u5f53\u305f\u308a\u5224\u5b9a\u3092\u81ea\u4f5c\u3059\u308b\u306a\u3069\u2026\u3001Spine\u306b\u306f\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u79c1\u3082\u307e\u3060\u307e\u3060Spine\u3092\u4f7f\u3044\u3053\u306a\u305b\u305a\u3067\u3057\u3066\u2026\u3001\u3082\u3063\u3068\u7df4\u7fd2\u3057\u3066\u30ea\u30c3\u30c1\u306a\u8868\u73fe\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u3001Spine x JavaScript\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<br \/>\n\u305d\u308c\u3067\u306f\u3001\u307e\u305f\u3002<\/p>\n<div\nid=\"canvasWrapper\"\nstyle=\"\n    position: fixed;\n    bottom: 0;\n    right: 0;\n    padding: 0;\n    pointer-events: none;\n    margin: 0;\n\"><\/div>\n<p><script src=\"https:\/\/www.sria.co.jp\/blog\/wp-content\/themes\/sria2017\/js\/spine_zunko-flag-anime.js\"><\/script><\/p>\n<style>\n.footer {padding: 3.3215% 3.3215% 230px 3.3215%;}\n<\/style>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u8fbb\u3067\u3059\u3002 \u524d\u56de\u306fSpine\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092Web\u30da\u30fc\u30b8\u306b\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u3055\u3066\u3001\u4eca\u56de\u306f\u8868\u793a\u3060\u3051\u3067\u306f\u306a\u304f\u3001JavaScript\u3092\u4f7f\u3063\u3066Spine\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u6210\u679c\u7269\u306e&#8230;<\/p>\n","protected":false},"author":5,"featured_media":5911,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[29,49],"_links":{"self":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/6099"}],"collection":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=6099"}],"version-history":[{"count":162,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/6099\/revisions"}],"predecessor-version":[{"id":6291,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/6099\/revisions\/6291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media\/5911"}],"wp:attachment":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=6099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=6099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=6099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}