Skip to content

Commit

Permalink
Remove obsolete CanvasRenderingContext2D.currentTransform interface (
Browse files Browse the repository at this point in the history
…#16995)

* remove CanvasRenderingContext.currentTransform

* [ru]: fix CanvasRenderingContext2D.currentTransform redirect
  • Loading branch information
leon-win authored Nov 27, 2023
1 parent 01bd099 commit 566a1a6
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 84 deletions.
6 changes: 0 additions & 6 deletions files/fr/web/api/canvasrenderingcontext2d/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ The following methods can be used to manipulate paths of objects.

Objects in the `CanvasRenderingContext2D` rendering context have a current transformation matrix and methods to manipulate it. The transformation matrix is applied when creating the current default path, painting text, shapes and {{domxref("Path2D")}} objects. The methods listed below remain for historical and compatibility reasons as {{domxref("SVGMatrix")}} objects are used in most parts of the API nowadays and will be used in the future instead.

- {{domxref("CanvasRenderingContext2D.currentTransform")}}
- : Current transformation matrix ({{domxref("SVGMatrix")}} object).
- {{domxref("CanvasRenderingContext2D.rotate()")}}
- : Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
- {{domxref("CanvasRenderingContext2D.scale()")}}
Expand Down Expand Up @@ -273,10 +271,6 @@ Most of these APIs are [deprecated and will be removed in the future](https://co

#### Prefixed APIs

- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransform`
- : Sets or gets the current transformation matrix, see {{domxref("CanvasRenderingContext2D.currentTransform")}}.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransformInverse`
- : Sets or gets the current inversed transformation matrix.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozImageSmoothingEnabled`
- : See {{domxref("CanvasRenderingContext2D.imageSmoothingEnabled")}}.
- {{non-standard_inline}} {{deprecated_inline}} `CanvasRenderingContext2D.mozTextStyle`
Expand Down
6 changes: 0 additions & 6 deletions files/pt-br/web/api/canvasrenderingcontext2d/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ Os seguintes métodos podem ser usados para manipular caminhos de desenhos.

Objects in the `CanvasRenderingContext2D` rendering context have a current transformation matrix and methods to manipulate it. The transformation matrix is applied when creating the current default path, painting text, shapes and {{domxref("Path2D")}} objects. The methods listed below remain for historical and compatibility reasons as {{domxref("SVGMatrix")}} objects are used in most parts of the API nowadays and will be used in the future instead.

- {{domxref("CanvasRenderingContext2D.currentTransform")}}
- : Current transformation matrix ({{domxref("SVGMatrix")}} object).
- {{domxref("CanvasRenderingContext2D.rotate()")}}
- : Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
- {{domxref("CanvasRenderingContext2D.scale()")}}
Expand Down Expand Up @@ -271,10 +269,6 @@ Most of these APIs are [deprecated and will be removed in the future](https://co

#### Prefixed APIs

- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransform`
- : Sets or gets the current transformation matrix, see {{domxref("CanvasRenderingContext2D.currentTransform")}}.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransformInverse`
- : Sets or gets the current inversed transformation matrix.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozFillRule`
- : The [fill rule](http://cairographics.org/manual/cairo-cairo-t.html#cairo-fill-rule-t) to use. This must be one of `evenodd` or `nonzero` (default).
- {{non-standard_inline}} `CanvasRenderingContext2D.mozImageSmoothingEnabled`
Expand Down
2 changes: 1 addition & 1 deletion files/ru/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
/ru/docs/Web/API/AudioContext/currentTime /ru/docs/Web/API/BaseAudioContext/currentTime
/ru/docs/Web/API/ByteString /ru/docs/conflicting/Web/JavaScript/Reference/Global_Objects/String
/ru/docs/Web/API/CSS_Object_Model/ориентация_экрана /ru/docs/Web/API/CSS_Object_Model/Managing_screen_orientation
/ru/docs/Web/API/CanvasRenderingContext2D/currentTransform /ru/docs/conflicting/Web/API/CanvasRenderingContext2D
/ru/docs/Web/API/CanvasRenderingContext2D/currentTransform /ru/docs/Web/API/CanvasRenderingContext2D
/ru/docs/Web/API/Canvas_API/A_basic_ray-caster /ru/docs/orphaned/Web/API/Canvas_API/A_basic_ray-caster
/ru/docs/Web/API/Canvas_API/Tutorial/Использование_изображений /ru/docs/Web/API/Canvas_API/Tutorial/Using_images
/ru/docs/Web/API/Canvas_API/Tutorial/Композиции /ru/docs/Web/API/Canvas_API/Tutorial/Compositing
Expand Down
65 changes: 0 additions & 65 deletions files/ru/conflicting/web/api/canvasrenderingcontext2d/index.md

This file was deleted.

6 changes: 0 additions & 6 deletions files/ru/web/api/canvasrenderingcontext2d/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ ctx.fillRect(10, 10, 55, 50);

Объекты в контексте рендеринга `CanvasRenderingContext2D` имеют текущую матрицу преобразований и методы для управления ей. Матрица преобразований применяется в момент создания текущего контура по умолчанию, рисования текста, форм и объектов {{domxref("Path2D")}}. Методы, перечисленные ниже, остаются по историческим причинам и из соображений совместимости, в то время как в настоящее время в большинстве разделов API используются объекты {{domxref("SVGMatrix")}}, которые будут использоваться в будущем как замена устаревшим методам.

- {{domxref("CanvasRenderingContext2D.currentTransform")}}
- : Текущая матрица преобразований ({{domxref("SVGMatrix")}} object).
- {{domxref("CanvasRenderingContext2D.rotate()")}}
- : Добавляет вращение в матрицу преобразований. Аргумент представляет угол вращения по часовой стрелке, выраженный в радианах.
- {{domxref("CanvasRenderingContext2D.scale()")}}
Expand Down Expand Up @@ -275,10 +273,6 @@ ctx.fillRect(10, 10, 55, 50);

#### Prefixed APIs

- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransform`
- : Sets or gets the current transformation matrix, see {{domxref("CanvasRenderingContext2D.currentTransform")}}.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozCurrentTransformInverse`
- : Sets or gets the current inversed transformation matrix.
- {{non-standard_inline}} `CanvasRenderingContext2D.mozFillRule`
- : The [fill rule](http://cairographics.org/manual/cairo-cairo-t.html#cairo-fill-rule-t) to use. This must be one of `evenodd` or `nonzero` (default).
- {{non-standard_inline}} `CanvasRenderingContext2D.mozImageSmoothingEnabled`
Expand Down

0 comments on commit 566a1a6

Please sign in to comment.