-2
私はこのようなキャンバス上に円を設定している:私は円の半径の値を見て興味を持っていて)(アークで設定したキャンバス円現在の半径を取得
var ctx = $element.getContext("2d");
ctx.beginPath();
ctx.arc(100, 100, 50, 0, 2 * Math.PI);
質問は、私は後でアークの値を取得する方法です?
console.log(ctx.arc()) // this does not work
を変数に格納します。 – Kaiido