aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/canvasrenderingcontext2d/currenttransform
diff options
context:
space:
mode:
authorAlexey Pyltsyn <lex61rus@gmail.com>2021-10-27 13:49:02 +0300
committerGitHub <noreply@github.com>2021-10-27 13:49:02 +0300
commita68152ef9cd653f92705683592d4652b617ab02c (patch)
tree7c146e854366c2f99c945c139e357279a03170b5 /files/ru/web/api/canvasrenderingcontext2d/currenttransform
parentd994a7ce54ab29f67b13e49f5eca0930b0803b56 (diff)
downloadtranslated-content-a68152ef9cd653f92705683592d4652b617ab02c.tar.gz
translated-content-a68152ef9cd653f92705683592d4652b617ab02c.tar.bz2
translated-content-a68152ef9cd653f92705683592d4652b617ab02c.zip
[RU] Fix another live samples (#2879)
Diffstat (limited to 'files/ru/web/api/canvasrenderingcontext2d/currenttransform')
-rw-r--r--files/ru/web/api/canvasrenderingcontext2d/currenttransform/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/ru/web/api/canvasrenderingcontext2d/currenttransform/index.html b/files/ru/web/api/canvasrenderingcontext2d/currenttransform/index.html
index f103140929..18774474af 100644
--- a/files/ru/web/api/canvasrenderingcontext2d/currenttransform/index.html
+++ b/files/ru/web/api/canvasrenderingcontext2d/currenttransform/index.html
@@ -31,11 +31,11 @@ translation_of: Web/API/CanvasRenderingContext2D/currentTransform
<h4 id="HTML">HTML</h4>
-<pre><code>&lt;canvas id="canvas"&gt;&lt;/canvas&gt;</code></pre>
+<pre class="brush: html">&lt;canvas id="canvas"&gt;&lt;/canvas&gt;</pre>
<h4 id="JavaScript">JavaScript</h4>
-<pre><code>const canvas = document.getElementById('canvas');
+<pre class="brush: html">const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
let matrix = ctx.currentTransform;
@@ -46,7 +46,7 @@ matrix.d = 1;
matrix.e = 0;
matrix.f = 0;
ctx.currentTransform = matrix;
-ctx.fillRect(0, 0, 100, 100);</code></pre>
+ctx.fillRect(0, 0, 100, 100);</pre>
<h4 id="Результат">Результат</h4>