From a68152ef9cd653f92705683592d4652b617ab02c Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Wed, 27 Oct 2021 13:49:02 +0300 Subject: [RU] Fix another live samples (#2879) --- .../ru/web/api/canvasrenderingcontext2d/currenttransform/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/ru/web/api/canvasrenderingcontext2d/currenttransform') 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

HTML

-
<canvas id="canvas"></canvas>
+
<canvas id="canvas"></canvas>

JavaScript

-
const canvas = document.getElementById('canvas');
+
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);
+ctx.fillRect(0, 0, 100, 100);

Результат

-- cgit v1.2.3-54-g00ecf