Skip to content

Commit

Permalink
Canvas: update BCD info (mdn#20302)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored Sep 5, 2022
1 parent 48cdf3e commit 8b532b1
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/canvasrenderingcontext2d/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The resulting drawing looks like this:

### Context

- {{domxref("CanvasRenderingContext2D.isContextLost()")}}
- {{domxref("CanvasRenderingContext2D.isContextLost()")}} {{Experimental_Inline}}
- : Returns `true` if the rendering context was lost.

### Drawing rectangles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ tags:
- CanvasRenderingContext2D
- Method
- Reference
- Experimental
browser-compat: api.CanvasRenderingContext2D.isContextLost
---
{{APIRef}}
{{APIRef}}{{SeeCompatTable}}

The **`CanvasRenderingContext2D.isContextLost()`** method of the Canvas 2D API returns `true` if the rendering context is lost (and has not yet been reset).
This might occur due to driver crashes, running out of memory, and so on.
Expand Down
3 changes: 2 additions & 1 deletion files/en-us/web/api/canvasrenderingcontext2d/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ tags:
- CanvasRenderingContext2D
- Method
- Reference
- Experimental
browser-compat: api.CanvasRenderingContext2D.reset
---

{{APIRef}}
{{APIRef}}{{SeeCompatTable}}

The **`CanvasRenderingContext2D.reset()`** method of the Canvas 2D API resets the rendering context to its default state, allowing it to be reused for drawing something else without having to explicitly reset all the properties.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ tags:
- Event
- Reference
- Canvas
- Experimental
browser-compat: api.HTMLCanvasElement.contextlost_event
---
{{APIRef}}
{{APIRef}}{{SeeCompatTable}}

The **`contextlost`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent detects that the backing storage associated with a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D) context is lost.
Contexts can be lost for several reasons like driver crashes or the application runs out of memory, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ tags:
- Event
- Reference
- Canvas
- Experimental
browser-compat: api.HTMLCanvasElement.contextrestored_event
---
{{APIRef}}
{{APIRef}}{{SeeCompatTable}}

The **`contextrestored`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent restores the backing storage for a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D).

Expand Down
3 changes: 2 additions & 1 deletion files/en-us/web/api/offscreencanvas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ tags:
- Canvas
- Interface
- Reference
- Experimental
browser-compat: api.OffscreenCanvas
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{SeeCompatTable}}

When using the {{HtmlElement("canvas")}} element or the [Canvas API](/en-US/docs/Web/API/Canvas_API), rendering, animation, and user interaction usually happen on the main execution thread of a web application.
The computation relating to canvas animations and rendering can have a significant impact on application performance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ 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("DOMMatrix")}} objects are used in most parts of the API nowadays and will be used in the future instead.

- {{domxref("CanvasRenderingContext2D.getTransform()")}}
- {{domxref("CanvasRenderingContext2D.getTransform()")}} {{Experimental_Inline}}
- : Retrieves the current transformation matrix being applied to the context.
- {{domxref("CanvasRenderingContext2D.rotate()")}}
- : Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/image/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ image-set('cat.jpg' 1x, 'dog.jpg' 1x) /* every image in an image set must have a
## See also

- {{CSSxRef("<gradient>")}}
- {{CSSxRef("element","element()")}}
- {{CSSxRef("element","element()")}} {{Experimental_Inline}}
- {{CSSxRef("image/image", "image()")}}
- {{CSSxRef("image/image-set","image-set()")}}
- {{CSSxRef("cross-fade","cross-fade()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Every JavaScript function is actually a `Function` object. This can be seen with
- {{jsxref("Function.prototype.arguments")}} {{Deprecated_Inline}} {{Non-standard_Inline}}
- : An array corresponding to the arguments passed to a function.
This is deprecated as a property of {{jsxref("Function")}}. Use the {{jsxref("Functions/arguments", "arguments")}} object (available within the function) instead.
- {{jsxref("Function.prototype.caller")}} {{Non-standard_Inline}}
- {{jsxref("Function.prototype.caller")}} {{Non-standard_Inline}} {{Deprecated_Inline}}
- : Specifies the function that invoked the currently executing function.
This property is deprecated, and is only functional for some non-strict functions.
- {{jsxref("Function.prototype.displayName")}} {{Non-standard_Inline}} {{Optional_Inline}}
Expand Down

0 comments on commit 8b532b1

Please sign in to comment.