/* * ãã£ã³ãã¹ã®ä½æã»åæå */ const initialCanvas = id => { // divè¦ç´ ãåå¾ const viewElm = document.getElementById(id); // divè¦ç´ ã®ç¸¦æ¨ªçãæ¹ãåå¾ const minSide = Math.min( viewElm.clientWidth , viewElm.clientHeight ); // æè¨ã®åå¾ãåå¾ const hankei = minSide / 2; // ãã£ã³ãã¹ãä½æ const cvs = document.createElement("canvas"); // ãã£ã³ãã¹ã®æç»ã³ã³ããã¹ããåå¾ const context = cvs.getContext('2d'); // ãã£ã³ãã¹ã®æç»ãµã¤ãºã»ãã cvs.setAttribute( "width" ,
{{#tags}}- {{label}}
{{/tags}}