{"json_modified": "2016-09-02T13:51:49.501308", "uuid": "8a58a336-5a23-4455-ac6e-ad7a5fd405c7", "title": "CanvasRenderingContext2D.addHitRegion()", "url": "/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion", "tags": ["Canvas", "API", "Reference", "Experimental", "CanvasRenderingContext2D", "Method"], "translations": [{"uuid": "e1f0adce-6a9d-4a5c-bbaf-f68795dc637f", "title": "CanvasRenderingContext2D.addHitRegion()", "url": "/ja/docs/Web/API/CanvasRenderingContext2D/addHitRegion", "tags": [], "summary": "Canvas 2D API\u306eCanvasRenderingContext2D
.addHitRegion()
\u30e1\u30bd\u30c3\u30c9\u306f\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u306b\u30d2\u30c3\u30c8\u9818\u57df\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d2\u30c3\u30c8\u691c\u51fa\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u30a4\u30d9\u30f3\u30c8\u3092DOM\u8981\u7d20\u306b\u30eb\u30fc\u30c8\u3067\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306fcanvas\u3092\u898b\u306a\u304f\u3066\u3082\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-01-16T23:29:09", "review_tags": []}, {"uuid": "dd0a6f83-09c0-4662-a844-c18b36d7059b", "title": "CanvasRenderingContext2D.addHitRegion()", "url": "/zh-CN/docs/Web/API/CanvasRenderingContext2D/addHitRegion", "tags": [], "summary": "CanvasRenderingContext2D
.addHitRegion()
\u00a0\u662f\u00a0Canvas 2D API \u7ed9\u4f4d\u56fe\u6dfb\u52a0\u70b9\u51fb\u533a\u57df\u7684\u65b9\u6cd5\u3002 \u5b83\u5141\u8bb8\u4f60\u5f88\u5bb9\u6613\u5730\u5b9e\u73b0\u4e00\u4e2a\u70b9\u51fb\u533a\u57df\uff0c \u8ba9\u4f60\u89e6\u53d1 DOM \u5143\u7d20\u7684\u4e8b\u4ef6\uff0c\u00a0\u53bb\u63a2\u7d22\u770b\u4e0d\u89c1\u7684\u753b\u5e03\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-04-23T20:05:28", "review_tags": []}], "modified": "2016-09-02T13:51:48", "label": "CanvasRenderingContext2D.addHitRegion()", "localization_tags": [], "locale": "en-US", "id": 131009, "last_edit": "2015-07-16T09:54:06", "summary": "The CanvasRenderingContext2D
.addHitRegion()
method of the Canvas 2D API adds a hit region to the bitmap. This allows you to make hit detection easier, lets you route events to DOM elements, and makes it possible for users to explore the canvas without seeing it.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Options", "title": "Options"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_the_addHitRegion_method", "title": "Using the "}, {"id": "HTML", "title": "HTML"}, {"id": "JavaScript", "title": "JavaScript"}, {"id": "Playable_code", "title": "Playable code"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/CanvasRenderingContext2D/addHitRegion", "review_tags": []}