{"id":411,"date":"2015-07-20T13:25:38","date_gmt":"2015-07-20T04:25:38","guid":{"rendered":"http:\/\/ik1-306-13392.vs.sakura.ne.jp\/?p=411"},"modified":"2015-07-22T23:09:44","modified_gmt":"2015-07-22T14:09:44","slug":"post-411","status":"publish","type":"post","link":"https:\/\/nobunobu1717.site\/?p=411","title":{"rendered":"HTML5\u3068JavaScript\u3067\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u3092\u4f5c\u308b(TypeScript\u4f7f\u7528)"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u6982\u8981<\/a><\/li><li><a href=\"#TypeScript\"><span class=\"toc_number toc_depth_1\">2<\/span> TypeScript\u3068\u306f<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">3<\/span> \u3084\u308a\u305f\u3044\u3053\u3068<\/a><\/li><li><a href=\"#TypeScript-2\"><span class=\"toc_number toc_depth_1\">4<\/span> TypeScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3068\u5185\u5bb9\u78ba\u8a8d<\/a><\/li><li><a href=\"#HTML\"><span class=\"toc_number toc_depth_1\">5<\/span> HTML\u306e\u8a18\u8ff0<\/a><\/li><li><a href=\"#Canvas\"><span class=\"toc_number toc_depth_1\">6<\/span> Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b<\/a><\/li><li><a href=\"#TypeScript-3\"><span class=\"toc_number toc_depth_1\">7<\/span> TypeScript\u4f5c\u6210<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">8<\/span> \u547c\u3073\u51fa\u3057\u51e6\u7406<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">9<\/span> \u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u6982\u8981<\/span><\/h2>\n<p style=\"text-align: left;\">\u73fe\u5728\u3001TypeScript\u306e\u52c9\u5f37\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6298\u89d2\u306a\u306e\u3067\u81ea\u5206\u306e\u597d\u304d\u306a\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u3092\u4f5c\u308b\u76ee\u6a19\u3067\u52c9\u5f37\u3057\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/kama.png\"><img class=\" size-medium wp-image-422 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/kama-300x225.png\" alt=\"kama\" width=\"300\" height=\"225\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/kama-300x225.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/kama.png 400w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u4eca\u56de\u306f\u3001\u5358\u7d14\u306a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30de\u30a6\u30b9\u30af\u30ea\u30c3\u30af\u6642\u306b\u6587\u5b57\u3092\u8868\u793a\u3057\u3066\u3044\u304f\u51e6\u7406\u3092\u8003\u3048\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/sample.nobu1710.expressweb.jp\/novel1\/index.html\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb<\/a><\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h2><span id=\"TypeScript\">TypeScript\u3068\u306f<\/span><\/h2>\n<p>\u307e\u305a\u306fTypeScript\u306b\u95a2\u3057\u3066\u7c21\u5358\u306b\u89e6\u308c\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002TypeScript\u3068\u306f\u3001MicroSoft\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u8a73\u7d30\u306f<a href=\"https:\/\/ja.wikipedia.org\/wiki\/TypeScript\" target=\"_blank\">Wiki<\/a>\u3092\u306a\u3069\u3092\u898b\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<br \/>\n\u7c21\u5358\u306b\u8a00\u3063\u3066\u3057\u307e\u3046\u3068JavaScript\u306b\u8272\u3005\u3068\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3082\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306bJavaScript\u3092\u51fa\u529b\u3057\u3066\u304f\u308c\u308b\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u51fa\u529b\u3055\u308c\u308b\u6700\u7d42\u7684\u306a\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u304cJavaScript\u306b\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u901a\u308a\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u52d5\u304f\u3082\u306e\u306b\u306a\u308a\u3064\u3064\u3001\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u969b\u306fJavaScript\u306e\u3061\u3083\u3089\u3093\u307d\u3089\u3093\u306a\u90e8\u5206\u3092\u88dc\u3063\u3066\u3001\u3042\u308b\u7a0b\u5ea6\u9759\u7684\u306a\u578b\u4ed8\u8a00\u8a9e\u306e\u3088\u3046\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u8a18\u8ff0\u30df\u30b9\u306a\u3069\u3092\u9632\u304e\u3001\u751f\u7523\u6027\u3092\u4e0a\u3052\u3066\u304f\u308c\u308b\u305f\u3081\u3001\u975e\u5e38\u306b\u6709\u7528\u306a\u8a00\u8a9e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001MS\u88fd\u3068\u3044\u3046\u3053\u3068\u3067Visual Studio\u3068\u306e\u76f8\u6027\u3082\u826f\u3044\u306e\u3067\u3001\u666e\u6bb5C#\u3092\u4f7f\u3063\u3066\u3044\u308b\u958b\u767a\u8005\u306b\u3082\u306a\u3058\u307f\u3084\u3059\u3044\u8a00\u8a9e\u3067\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\nVisual Studio\u81ea\u4f53\u3082\u73fe\u5728\u306fVisual Studio Community\u3068\u3057\u3066\u500b\u4eba\u958b\u767a\u8005\u306f\u7121\u6599\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u3053\u308c\u304b\u3089JavaScript\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u308b\u4eba\u304cTypeScript\u304b\u3089\u5b66\u3093\u3067\u898b\u308b\u306e\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2><span id=\"i-2\">\u3084\u308a\u305f\u3044\u3053\u3068<\/span><\/h2>\n<p>\u6298\u89d2\u5b66\u3076\u306e\u3067\u3042\u308c\u3070\u3001\u81ea\u5206\u304c\u697d\u3057\u3081\u308b\u3082\u306e\u304c\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u81ea\u5206\u306e\u597d\u304d\u306a\u30b8\u30e3\u30f3\u30eb\u3067\u3042\u308b\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u306e\u4f5c\u6210\u3092\u76ee\u6a19\u306b\u3084\u3063\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u8907\u96d1\u306a\u3082\u306e\u3092\u3044\u304d\u306a\u308a\u5b9f\u73fe\u306f\u96e3\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u6587\u7ae0\u8868\u793a\u3055\u305b\u308b\u3068\u3053\u308d\u304b\u3089\u5b66\u3093\u3067\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2><span id=\"TypeScript-2\">TypeScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3068\u5185\u5bb9\u78ba\u8a8d<\/span><\/h2>\n<p>\u307e\u305a\u306fVisual Studio\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067TypeScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types1.png\"><img class=\" size-medium wp-image-412 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types1-300x207.png\" alt=\"types1\" width=\"300\" height=\"207\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types1-300x207.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types1.png 953w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>css\u3068html\u3068ts\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u6210\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nWeb.config\u304c\u3042\u308a\u307e\u3059\u304c\u3053\u308c\u306fASP.NET\u3068\u306e\u9023\u643a\u7528\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types2.png\"><img class=\" size-medium wp-image-413 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types2-300x199.png\" alt=\"types2\" width=\"300\" height=\"199\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types2-300x199.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types2.png 348w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nhtml\u3092\u958b\u304f\u3068ts\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u540d\u306ejs\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u8a18\u8ff0\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3069\u3046\u3084\u3089ts\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u540d\u306ejs\u30d5\u30a1\u30a4\u30eb\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types3.png\"><img class=\" size-medium wp-image-414 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types3-300x143.png\" alt=\"types3\" width=\"300\" height=\"143\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types3-300x143.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types3.png 517w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u5b9f\u969b\u306bts\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3066\u898b\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aGreeter\u30af\u30e9\u30b9\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30bf\u30a4\u30de\u30fc\u3067\u5b9a\u671f\u7684\u306b\u6642\u523b\u3092\u53d6\u5f97\u3057\u3066\u753b\u9762\u51fa\u529b\u3059\u308b\u51e6\u7406\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types4.png\"><img class=\" size-medium wp-image-415 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types4-300x134.png\" alt=\"types4\" width=\"300\" height=\"134\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types4-300x134.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types4.png 702w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u307e\u305f\u3001\u30da\u30fc\u30b8\u8d77\u52d5\u6642\u306b\u4e0a\u8a18\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u51e6\u7406\u304c\u8a18\u8ff0\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u5b9f\u969b\u306b\u51e6\u7406\u304c\u884c\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types5.png\"><img class=\" size-medium wp-image-416 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types5-300x72.png\" alt=\"types5\" width=\"300\" height=\"72\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types5-300x72.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types5.png 356w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u5b9f\u969b\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u3055\u308c\u305f\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6642\u523b\u90e8\u5206\u306f\u5b9a\u671f\u7684\u306b\u8868\u793a\u304c\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types6.png\"><img class=\" size-medium wp-image-417 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types6-300x95.png\" alt=\"types6\" width=\"300\" height=\"95\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types6-300x95.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types6.png 361w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u307e\u305a\u306fTypeScript\u30a2\u30d7\u30ea\u306e\u8d77\u52d5\u78ba\u8a8d\u307e\u3067\u884c\u3044\u307e\u3057\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u8a18\u8ff0\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2><span id=\"HTML\">HTML\u306e\u8a18\u8ff0<\/span><\/h2>\n<p>TypeScript\u3092\u5b9f\u969b\u306b\u66f8\u304f\u524d\u306b\u3001\u307e\u305a\u306f\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u3068\u3057\u3066\u6587\u7ae0\u8868\u793a\u3092\u884c\u3044\u305f\u3044\u9818\u57df\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nHTML5\u3067\u4f55\u304b\u3092\u63cf\u753b\u3068\u3044\u3046\u3068\u3001Canvas\u3068\u3044\u3046\u8981\u7d20\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u305d\u308c\u3092\u4f7f\u3063\u3066\u898b\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u30c6\u30ad\u30c8\u30fc\u306b\u5e45700\u3068\u9ad8\u3055550\u3068\u3057\u3066\u5ba3\u8a00\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001IE\u306e\u4e00\u90e8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067Canvas\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u53d6\u5f97\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u305f\u3081\u6700\u65b0\u306e\u30e2\u30fc\u30c9\u3067\u52d5\u304f\u3088\u3046\u306b\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u5ba3\u8a00\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u8aad\u307f\u8fbc\u3080\u30b9\u30af\u30ea\u30d7\u30c8\u306fapp.js\u304b\u3089novel.js\u3068\u3057\u3066\u3001\u5f8c\u307b\u3069\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:vs2012 lang:default decode:true \" title=\"Canvas\">&lt;!DOCTYPE html&gt;\r\n&lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" \/&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n    &lt;meta charset=\"utf-8\" \/&gt;\r\n    &lt;title&gt;TypeScript HTML App&lt;\/title&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"app.css\" type=\"text\/css\" \/&gt;\r\n    &lt;script src=\"novel.js\"&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;canvas id=\"canvas1\" width=\"700\" height=\"550\"&gt;&lt;\/canvas&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h2><span id=\"Canvas\">Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b<\/span><\/h2>\n<p>\u3053\u3053\u3067\u4e00\u5ea6\u3001Canvas\u3067\u306e\u6587\u5b57\u306e\u8868\u793a\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b1 \u6539\u884c<\/h3>\n<p>\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u3068\u3057\u3066\u6587\u7ae0\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u8003\u3048\u307e\u3059\u3002<br \/>\nCanvas\u306b\u306f\u6587\u7ae0\u3092\u63cf\u753b\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306afillText\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>fillText(text, x, y [, maxWidth ] )<\/strong><em><br \/>\n<a href=\"http:\/\/www.html5.jp\/canvas\/ref\/method\/fillText.html\" target=\"_blank\">\u53c2\u8003URL<\/a><\/em><br \/>\n\u305f\u3060\u3057\u3001\u4e0a\u8a18\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u898b\u3066\u3082\u3089\u3048\u3070\u308f\u304b\u308b\u901a\u308a\u3001\u6587\u5b57\u306e\u4f4d\u7f6e\u6307\u5b9a\u306fx,y\u306b\u3088\u308b\u5ea7\u6a19\u6307\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3088\u3063\u3066\u3001\u3088\u304f\u3042\u308b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3084\u30e9\u30d9\u30eb\u306e\u3088\u3046\u306b\u3001\u305f\u3060\u8868\u793a\u3057\u305f\u3044\u6587\u5b57\u5217\u3060\u3051\u3092\u6e21\u3059\u3060\u3051\u3067\u306f\u306a\u304f\u3001<br \/>\n\u6539\u884c\u3092\u8003\u3048\u3066\u81ea\u5206\u3067y\u5ea7\u6a19\u3092\u4f4d\u7f6e\u3057\u3066\u63cf\u753b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066\u3001measureText\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>metrics = context . measureText(text)<br \/>\n\u73fe\u5728\u306e\u30d5\u30a9\u30f3\u30c8\u306b\u304a\u3051\u308b\u6307\u5b9a\u30c6\u30ad\u30b9\u30c8\u306e\u9577\u3055\u3092\u6301\u3063\u305f TextMetrics \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\nmetrics . width<br \/>\nmeasureText() \u30e1\u30bd\u30c3\u30c9\u306b\u5f15\u304d\u6e21\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u306e\u5e45\u3092\u524d\u3082\u3063\u3066\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p><a href=\"http:\/\/www.html5.jp\/canvas\/ref\/method\/measureText.html\" target=\"_blank\">\u53c2\u8003URL<\/a><\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u30661\u6587\u5b57\u305a\u3064\u3001\u63cf\u753b\u524d\u306b\u6539\u884c\u3059\u3079\u304d\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u3001\u63cf\u753b\u9818\u57df\u3092\u8d85\u3048\u308b\u5834\u5408\u306b\u306f\u6539\u884c\u3092\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u6587\u7ae0\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3060\u3051\u306b\u3053\u3053\u307e\u3067\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u306f\u6b63\u76f4\u9762\u5012\u304f\u3055\u3044\u3067\u3059\u306d\u30fb\u30fb\u30fb\u3002<\/p>\n<h3>Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b2 \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u8868\u793a<\/h3>\n<p>\u4e00\u822c\u7684\u306a\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u3067\u306f\u3001\u6587\u7ae0\u3092\u8868\u793a\u3059\u308b\u969b\u306b\u4e00\u5ea6\u306b\u5168\u3066\u306e\u6587\u7ae0\u306e\u8868\u793a\u3092\u884c\u3046\u306e\u3067\u306f\u306a\u304f\u3001\u5f90\u3005\u306b\u8868\u793a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306f\u304b\u307e\u3044\u305f\u3061\u306e\u591c\u306e\u5834\u5408\u3067\u3059\u3002<br \/>\n<iframe width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/F3R5xg0fZjU\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u306f1\u6587\u5b57\u305a\u3064\u3001\u30bf\u30a4\u30de\u30fc\u3092\u7528\u3044\u3066\u6587\u5b57\u3092\u63cf\u753b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nJavaScript\u3067\u306f\u4e00\u5b9a\u6642\u9593\u3054\u3068\u306b\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306esetInterval\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.pori2.net\/js\/timer\/1.html\" target=\"_blank\">\u53c2\u8003URL<\/a><\/p>\n<h3>Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b \u307e\u3068\u3081<\/h3>\n<p>\u4e0a\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001Canvas\u3092\u7528\u3044\u3066\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u7684\u306a\u6587\u7ae0\u8868\u793a\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u4ee5\u4e0b\u306e2\u3064\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n1.\u6539\u884c\u3092\u610f\u8b58\u3057\u305f\u6587\u5b57\u8868\u793a<br \/>\n2.\u30bf\u30a4\u30de\u30fc\u3092\u7528\u3044\u305f1\u6587\u5b57\u305a\u3064\u306e\u8868\u793a<\/p>\n<p>\u6587\u7ae0\u8868\u793a\u3092\u3059\u308b\u306e\u306b\u3053\u3053\u307e\u3067\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u306f\u3001\u591a\u6a5f\u80fd\u306aUI\u90e8\u6750\u306b\u6163\u308c\u3066\u3044\u308b\u3068\u5c11\u3057\u5104\u52ab\u3067\u3059\u306d\u3002<br \/>\n\u3082\u3046\u5c11\u3057Canvas\u306e\u6a5f\u80fd\u304c\u62e1\u5f35\u3055\u308c\u308b\u3068\u826f\u3044\u306e\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3002<\/p>\n<h2><span id=\"TypeScript-3\">TypeScript\u4f5c\u6210<\/span><\/h2>\n<p>\u5b9f\u969b\u306bTypeScript\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u304b\u3089\u65b0\u3057\u3044TypeScript\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types7.png\"><img class=\" size-medium wp-image-420 aligncenter\" src=\"http:\/\/168.138.214.208\/wp-content\/uploads\/2015\/07\/types7-300x207.png\" alt=\"types7\" width=\"300\" height=\"207\" srcset=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types7-300x207.png 300w, https:\/\/nobunobu1717.site\/wp-content\/uploads\/2015\/07\/types7.png 955w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4f5c\u6210\u3055\u308c\u305fts\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306aNovelDisplay\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u98a8\u8868\u793a\">class NovelDisplay{\r\n    \/\/\u8868\u793a\u6587\u5b57\u5217[\u30da\u30fc\u30b8\u6570][\u884c\u6570]\r\n    private sentences: string[][];\r\n    \/\/\u30ad\u30e3\u30f3\u30d0\u30b9\r\n    private canvas: HTMLCanvasElement;\r\n    private canvas2D: CanvasRenderingContext2D;\r\n    \/\/\u8868\u793a\u5e45,\u9ad8\u3055\r\n    private maxWidth: number;\r\n    private maxHeight: number;\r\n    \/\/1\u884c\u306e\u9ad8\u3055\r\n    private rowHeight: number;\r\n    \/\/\u8868\u793a\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\r\n    private displayInterval: number;\r\n    \/\/\u6587\u5b57\u8868\u793a\u7528\u30bf\u30a4\u30de\u30fc\r\n    private timer: number;\r\n    \/\/\u8868\u793a\u4e2d\u306e\u884c\u3068\u5217\u3068\u30da\u30fc\u30b8\r\n    private currentColumn: number;\r\n    private currentRow: number;\r\n    private currentPage: number;\r\n    \/\/1\u6587\u5b57\u5217\u8868\u793a\u5f8c\u306b\u81ea\u52d5\u6539\u884c\u3059\u308b\u304b\u3069\u3046\u304b\r\n    private isAutoNewLine: boolean;\r\n\r\n    \/\/\u6587\u5b57\u5217\u4e8c\u91cd\u8868\u793a\u53ef\u80fd\u5224\u5b9a\r\n    public isEnableSendText: boolean;\r\n\r\n    constructor(canvas: HTMLCanvasElement) {\r\n\r\n        this.canvas = canvas;\r\n        this.canvas2D = canvas.getContext(\"2d\");\r\n        \/\/\u4f4d\u7f6e\u306e\u521d\u671f\u5316\r\n        this.currentColumn = 0;\r\n        this.currentRow = 0;\r\n        this.currentPage = 0;\r\n        \/\/\u8868\u793a\u9818\u57df\u306e\u6307\u5b9a\r\n        this.maxHeight = 500;\r\n        this.maxWidth = 500;\r\n        \/\/\u914d\u5217\u3092\u521d\u671f\u5316\r\n        this.sentences = new Array();\r\n        this.sentences[0] = new Array();\r\n        this.sentences[0][0] = \"\";\r\n        \/\/\u8868\u793a\u9593\u9694\u3068\u30bf\u30a4\u30de\u30fc\u306e\u521d\u671f\u5316\r\n        this.displayInterval = 20;\r\n        this.timer = 0;\r\n        \/\/\u30d5\u30a9\u30f3\u30c8\u6307\u5b9a\u3068\u884c\u306e\u9ad8\u3055\u6307\u5b9a\r\n        this.canvas2D.font = \"20pt Gothic\";\r\n        this.rowHeight = 30;\r\n\r\n        this.isAutoNewLine = true;\r\n        this.isEnableSendText = true;\r\n    }\r\n\r\n\r\n    \/\/1\u6587\u5b57\u5217\u3092\u8868\u793a\u3002\u63cf\u753b\u4e2d\u306e\u5834\u5408\u306ffalse\u3092\u8fd4\u3059\r\n    public showOneString(str: string) {\r\n\r\n        \/\/\u8868\u793a\u4e2d\u306e\u30af\u30ea\u30c3\u30af\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044\u3088\u3046\u306b\u3059\u308b\r\n        this.isEnableSendText = false;\r\n\r\n        \/\/1\u6587\u5b57\u305a\u3064\u30bf\u30a4\u30de\u30fc\u8868\u793a\r\n        var strCount = 0;\r\n        this.timer = setInterval(() =&gt; {\r\n            if (str.length &gt; strCount) {\r\n                this.showOnechar(str[strCount]);\r\n                strCount++;\r\n            } else {\r\n                \/\/\u30bf\u30a4\u30de\u30fc\u3092\u30af\u30ea\u30a2\r\n                clearInterval(this.timer);\r\n                this.timer = 0;\r\n                \/\/\u81ea\u52d5\u6539\u884c\u306e\u5834\u5408\u306f\u6539\u884c\u3092\u8ffd\u52a0\r\n                if (this.isAutoNewLine) {\r\n                    this.changeRowOrPage();\r\n                }\r\n                this.isEnableSendText = true;\r\n            }\r\n        }, this.displayInterval)\r\n\r\n    }\r\n\r\n    \/\/\u4e00\u6587\u5b57\u3092\u8868\u793a\r\n    private showOnechar(oneChar: string) {\r\n\r\n        \/\/\u6b21\u306e\u6587\u5b57\u3092\u8868\u793a\u3057\u305f\u5834\u5408\u306e\u5e45\u3092\u53d6\u5f97\r\n        var currentWidth = this.canvas2D.measureText(\r\n            this.sentences[this.currentPage][this.currentRow] + oneChar).width;\r\n\r\n        \/\/\u6700\u5927\u5e45\u3092\u8d85\u3048\u305f\u3089\u6539\u884c\r\n        if (currentWidth &gt; this.maxWidth) {\r\n            \/\/\u6539\u884c\u304b\u6539\u30da\u30fc\u30b8\u304b\u5224\u5b9a\r\n            this.changeRowOrPage();\r\n        }\r\n        \/\/\u6587\u5b57\u3092\u8868\u793a\u3057\u3066\u683c\u7d0d\r\n        var x = this.canvas2D.measureText(this.sentences[this.currentPage][this.currentRow]).width;\r\n        var y = this.rowHeight * (this.currentRow +1);\r\n        this.canvas2D.fillText(oneChar, x, y);\r\n        this.currentColumn++;\r\n        this.sentences[this.currentPage][this.currentRow] += oneChar;\r\n    }\r\n\r\n    \/\/\u884c\u3082\u3057\u304f\u306f\u30da\u30fc\u30b8\u3092\u5909\u66f4\u3057\u307e\u3059\r\n    private changeRowOrPage() {\r\n        var nextHeight = (this.currentRow + 1) * (this.rowHeight) + this.rowHeight;\r\n        \/\/\u6700\u5927\u9ad8\u3055\u3092\u8d85\u3048\u305f\u3089\u6539\u884c\r\n        if (nextHeight &gt; this.maxHeight) {\r\n            this.changePage();\r\n        } else {\r\n            this.changeRow();\r\n        }\r\n    }\r\n\r\n    \/\/\u884c\u3092\u5909\u66f4\r\n    private changeRow() {\r\n        \/\/\u5217\u6570\u3092\u8ffd\u52a0\u3057\u3066\u884c\u60c5\u5831\u3092\u30af\u30ea\u30a2\r\n        this.currentRow++;\r\n        this.currentColumn = 0;\r\n        this.sentences[this.currentPage][this.currentRow] = \"\";\r\n    }\r\n    \/\/\u30da\u30fc\u30b8\u3092\u5909\u66f4\r\n    private changePage() {\r\n        \/\/\u30da\u30fc\u30b8\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3066\u8868\u793a\u4f4d\u7f6e\u3092\u30ea\u30bb\u30c3\u30c8\r\n        this.currentPage++;\r\n        this.currentRow = 0;\r\n        this.currentColumn = 0;\r\n        this.sentences[this.currentPage] = new Array();\r\n        this.sentences[this.currentPage][0] = \"\";\r\n        \/\/\u8868\u793a\u3092\u30af\u30ea\u30a2\r\n        this.canvas2D.clearRect(0, 0, this.maxWidth, this.maxHeight);\r\n    }\r\n}<\/pre>\n<p>\u7c21\u5358\u306b\u3067\u3059\u304c\u4e3b\u306a\u30dd\u30a4\u30f3\u30c8\u306e\u8aac\u660e\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3>\u57fa\u672c\u7684\u306a\u8003\u3048\u65b9<\/h3>\n<p>\u6587\u5b57\u5217\u306e2\u6b21\u5143\u914d\u5217\u3092\u5229\u7528\u3057\u3066\u3001\u30da\u30fc\u30b8\u3001\u884c\u5358\u4f4d\u3067\u306e\u8868\u793a\u6e08\u307f\u306e\u6587\u5b57\u3092\u4fdd\u6301\u3057\u3066\u304a\u304d\u307e\u3059\u3002(sentences\u30d5\u30a3\u30fc\u30eb\u30c9)<br \/>\n\u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u73fe\u5728\u306e\u884c\u3068\u5217\u4f4d\u7f6e\u3092\u4f7f\u3063\u3066\u6587\u5b57\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u6c7a\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>showOnechar\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6e21\u3055\u308c\u305f1\u6587\u5b57\u306e\u6587\u5b57\u5217\u3092\u63cf\u753b\u3057\u307e\u3059\u30021\u6587\u5b57\u306a\u7406\u7531\u306f\u524d\u8ff0\u306e\u901a\u308a\u3001\u30bf\u30a4\u30de\u30fc\u51e6\u7406\u306b\u3088\u3063\u3066\u5f90\u3005\u306b\u8868\u793a\u3092\u884c\u3046\u305f\u3081\u3067\u3059\u3002<br \/>\n\u307e\u305a\u63cf\u753b\u524d\u306b\u3001measureText\u3092\u7528\u3044\u3066\u6539\u884c\u3082\u3057\u304f\u306f\u6539\u30da\u30fc\u30b8\u5224\u5b9a\u3092\u884c\u3044\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u6539\u884c\u3001\u6539\u30da\u30fc\u30b8\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5f8c\u3001\u5b9f\u969b\u306b\u8868\u793a\u4f4d\u7f6e\u3092\u8a08\u7b97\u3057\u3066\u63cf\u753b\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3>changeRowOrPage, changeRow, changePage\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u6539\u884c\u3082\u3057\u304f\u306f\u6539\u30da\u30fc\u30b8\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nchangeRowOrPage\u30e1\u30bd\u30c3\u30c9\u3067\u3069\u3061\u3089\u3092\u884c\u3046\u304b\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u73fe\u5728\u306e\u6587\u5b57\u5217\u63cf\u753b\u306e\u9ad8\u3055\u3092\u8a08\u7b97\u3057\u3001\u753b\u9762\u4e0b\u90e8\u307e\u3067\u9054\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u57fa\u6e96\u3068\u3057\u307e\u3059\u3002<br \/>\n\u6539\u884c\u306e\u5834\u5408\u306b\u306f\u3001\u73fe\u5728\u306e\u884c\u6570\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3066\u3001\u884c\u60c5\u5831\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<br \/>\n\u6539\u30da\u30fc\u30b8\u306e\u5834\u5408\u306b\u306f\u30ad\u30e3\u30f3\u30d0\u30b9\u306e\u63cf\u753b\u3092\u30af\u30ea\u30a2\u3057\u3066\u8868\u793a\u6587\u5b57\u3092\u5168\u3066\u6d88\u3057\u3001\u884c\u3001\u5217\u3069\u3061\u3089\u306e\u60c5\u5831\u3082\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<\/p>\n<h3>showOneString\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u6e21\u3057\u305f\u6587\u5b57\u5217\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306eshowOnechar\u30e1\u30bd\u30c3\u30c9\u306b1\u6587\u5b57\u305a\u3064\u6e21\u3059\u6587\u5b57\u3092\u6e21\u3059\u30bf\u30a4\u30de\u30fc\u3092\u5b9a\u7fa9\u3057\u3066\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u51e6\u7406\u3057\u307e\u3059\u3002<br \/>\n\u6587\u5b57\u63cf\u753b\u4e2d\u306b\u51e6\u7406\u3092\u547c\u3073\u51fa\u3055\u308c\u3066\u3082\u9032\u307e\u306a\u3044\u3088\u3046\u306b\u30bf\u30a4\u30de\u30fc\u306e\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u63cf\u753b\u304c\u7d42\u4e86\u3059\u308b\u3068\u30bf\u30a4\u30de\u30fc\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u63cf\u753b\u3092\u53d7\u3051\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2><span id=\"i-3\">\u547c\u3073\u51fa\u3057\u51e6\u7406<\/span><\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u3053\u307e\u3067\u4f5c\u6210\u3057\u305f\u51e6\u7406\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nCanvas\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u6642\u306b\u51e6\u7406\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u30013\u30d1\u30bf\u30fc\u30f3\u306e\u6587\u7ae0\u3092\u5ef6\u3005\u3068\u8868\u793a\u3055\u305b\u307e\u3059\u3002<br \/>\n\u5b9f\u969b\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3053\u3061\u3089\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/sample.nobu1710.expressweb.jp\/novel1\/index.html\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb<\/a><\/p>\n<pre class=\"lang:default decode:true \" title=\"\u51e6\u7406\u547c\u3073\u51fa\u3057\">window.onload = () =&gt; {\r\n    \/\/\u8868\u793a\u6587\u5b57\u5217\r\n    var tList = [\r\n        \"\u3088\u3046\u3084\u304f\u899a\u3048\u305f\u30dc\u30fc\u30b2\u30f3\u3067\u306a\u3093\u3068\u304b\u9e93\u306e\u30ec\u30b9\u30c8\u30cf\u30a6\u30b9\u307e\u3067\u305f\u3069\u308a\u7740\u304d\u3001\u307c\u304f\u306f\u4e00\u606f\u3064\u3044\u3066\u3044\u305f\u3002\",\r\n        \"\u771f\u7406\u306f\u305d\u3093\u306a\u307c\u304f\u306e\u76ee\u306e\u524d\u3067\u3001\u96ea\u3092\u3051\u305f\u3066\u3066\u9bae\u3084\u304b\u306b\u6b62\u307e\u3063\u305f\u3002\",\r\n        \"\u30b4\u30fc\u30b0\u30eb\u304c\u7c89\u96ea\u307e\u307f\u308c\u306b\u306a\u3063\u3066\u3001\u4f55\u3082\u898b\u3048\u306a\u3044\u3002\",\r\n    ];\r\n    \/\/\u30ad\u30e3\u30f3\u30d0\u30b9\u3092\u53d6\u5f97\u3057\u3066\u8868\u793a\u30af\u30e9\u30b9\u306b\u6e21\u3059\r\n    var canvas = &lt;HTMLCanvasElement&gt;document.getElementById('canvas1');\r\n    var novel = new NovelDisplay(canvas);\r\n\r\n    var currentTxtIndex = 0;\r\n    function write() {\r\n        \/\/\u30c6\u30b9\u30c8\u7528\u306b\u30eb\u30fc\u30d7\r\n        if (tList.length &lt;= currentTxtIndex) {\r\n            currentTxtIndex = 0;\r\n        }\r\n\r\n        \/\/\uff12\u91cd\u30af\u30ea\u30c3\u30af\u9632\u6b62\r\n        if (novel.isEnableSendText) {\r\n            novel.showOneString(tList[currentTxtIndex]);\r\n            currentTxtIndex++;\r\n        }\r\n    }\r\n    \/\/\u30af\u30ea\u30c3\u30af\u6642\u306b\u547c\u3073\u51fa\u3057\r\n    canvas.onclick = write;\r\n}<\/pre>\n<h2><span id=\"i-4\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001TypeScript(HTML5 + JavaScript)\u3092\u7528\u3044\u3066\u30b5\u30a6\u30f3\u30c9\u30ce\u30d9\u30eb\u98a8\u306e\u6587\u7ae0\u8868\u793a\u3092\u884c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nJavaScript\u81ea\u4f53\u305d\u3053\u307e\u3067\u8a73\u3057\u304f\u306a\u3044\u305f\u3081\u8a00\u3063\u3066\u3044\u3044\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u6c5a\u3044\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u30a4\u30e1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3057\u304b\u3057\u4eca\u56de\u306fTypeScript\u3092\u4f7f\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u7684\u306b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u305f\u306e\u3067\u3060\u3044\u3076\u66f8\u304d\u3084\u3059\u304f\u3066\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089\u8272\u3005\u3068\u624b\u3092\u52a0\u3048\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u624b\u6cd5\u7b49\u304c\u307e\u3068\u307e\u308a\u307e\u3057\u305f\u3089\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>2015\/07\/22<br \/>\n<a href=\"http:\/\/168.138.214.208\/?p=430\" target=\"_blank\">\u305d\u306e2\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u6982\u89812 TypeScript\u3068\u306f3 \u3084\u308a\u305f\u3044\u3053\u30684 TypeScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3068\u5185\u5bb9\u78ba\u8a8d5 HTML\u306e\u8a18\u8ff06 Canvas\u3067\u306e\u6587\u5b57\u306e\u63cf\u753b7 TypeScript\u4f5c\u62108  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":422,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,16],"tags":[],"_links":{"self":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/411"}],"collection":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":11,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions\/434"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/media\/422"}],"wp:attachment":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}