canvas2D icon indicating copy to clipboard operation
canvas2D copied to clipboard

Update Canvas 2D API

Results 18 canvas2D issues
Sort by recently updated
recently updated
newest added

Explainer for the Enhanced TextMetrics proposal that adds `getSelectionRects()` and `getActualBoundingBox()` to the API. Once the feature is submitted under a flag in Chrome, it will be updated with the...

currrent Path2D just contain the point infomation about shap. when call draw(path2D), the borwser must generate new geometry data according lineWidth and other attribuite in context. if the path2D includs...

In [the Color input explainer](https://github.com/fserb/canvas2D/blob/master/spec/color-input.md) all the examples are restricted to the sRGB gamut. It would be useful to add an example or two that uses [Display P3](https://www.w3.org/TR/css-color-4/#valdef-color-display-p3) for example...

Clipping to integer pixel axis aligned rects has a very different implementation than arbitrary geometry. It would be nice to be able to expose `ctx.clipRect()` instead of`ctx.rect(); ctx.clip();` Skia and...

I'm curious about why the naming uses "layers" as a concept with `beginLayer/endLayer`, instead of calling them simply `beginFilter/endFilter` if their sole purpose is to be able to apply filters...

There doesn't seem to be a way to set the `width` `height` `x` and `y` properties of the filter itself. Should the `CanvasFilter` constructor takes these as parameters? Or should...

I’m migrating a Windows GDI application to HTML using Canvas and I stumbled across the fact that canvas uses a fractional coordinate space which requires “moving” to the mid of...

It'd be nice if `CanvasGradient` could have an arbitrary transform. For example, this would allow for elliptical radial gradients or skewed gradients. This is possible with the current canvas API...

It would be useful if `CanvasGradient` allowed specifying a spread method, which determines how the gradient is rendered outside the [0.0, 1.0] stop range: * `Pad` (current default, gradient stop...

Use SVG filters is not flexible enough, i pref using custom GLES fragment shader for filter, which provides most flexibles while not need to switch to WebGL/WebGPU. The background: I'm...