Canvas API terminology

I’ve been making updates to MDN’s Canvas pages lately (with new examples, more detailed explanations, etc.). However, I’m struggling with terminology: almost all these pages reference the “Canvas 2D API,” but nothing seems to actually define what the Canvas 2D API actually is.

MDN has a page for the Canvas API – is that what these pages are referring to? Part of the issue is that I can’t find a formal definition of either “Canvas API” or “Canvas 2D API” in the spec. Seeking clarity, I edited the summary on MDN’s “Canvas API” page, but now I’m wondering if my own edits are in fact technically correct.

Advice would be appreciated!

Canvas 2D APIs probably refers to Canvas APIs used for drawing 2D graphics.

That’s correct. We probably need to expressly say that. But in reality, calling it isn’t really right. The API is “Canvas API.” Saying “Canvas 2D API” is not really right; that should be “2D Canvas API” (meaning the Canvas API which happens to be 2D).

1 Like

Thanks for the responses. What does everyone think about using the term “Canvas API” instead of “Canvas 2D API”/“2D Canvas API”? With things like Offscreen Canvas, the Canvas API doesn’t seem strictly 2D these days.