Skip to content

Commit

Permalink
Restore list of values to globalCompositeOperation page
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Oct 20, 2023
1 parent 83c4c62 commit 98c10aa
Show file tree
Hide file tree
Showing 5 changed files with 369 additions and 359 deletions.
2 changes: 1 addition & 1 deletion files/zh-cn/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@
/zh-CN/docs/Web/API/CanvasRenderingContext2D.createPattern /zh-CN/docs/Web/API/CanvasRenderingContext2D/createPattern
/zh-CN/docs/Web/API/CanvasRenderingContext2D/currentTransform /zh-CN/docs/Web/API/CanvasRenderingContext2D
/zh-CN/docs/Web/API/CanvasRenderingContext2D/drawWindow /zh-CN/docs/Web/API/CanvasRenderingContext2D/drawImage
/zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing/Example /zh-CN/docs/conflicting/Web/API/CanvasRenderingContext2D/globalCompositeOperation
/zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing/Example /zh-CN/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
/zh-CN/docs/Web/API/Channel_Messaging_API/使用_channel_messaging /zh-CN/docs/Web/API/Channel_Messaging_API/Using_channel_messaging
/zh-CN/docs/Web/API/ChildNode.nextElementSibling /zh-CN/docs/Web/API/Element/nextElementSibling
/zh-CN/docs/Web/API/Childnode.previousElementSibling /zh-CN/docs/Web/API/Element/previousElementSibling
Expand Down
11 changes: 0 additions & 11 deletions files/zh-cn/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -32797,16 +32797,5 @@
"skyfore",
"xgqfrms-GitHub"
]
},
"conflicting/Web/API/CanvasRenderingContext2D/globalCompositeOperation": {
"modified": "2019-03-23T22:08:51.586Z",
"contributors": [
"lakeinchina",
"JinRong.Yang",
"zhangchen",
"Iwakura-Lain",
"blackmomo",
"Akimyou"
]
}
}

This file was deleted.

4 changes: 0 additions & 4 deletions files/zh-cn/web/api/canvas_api/tutorial/compositing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ slug: Web/API/Canvas_API/Tutorial/Compositing
- {{domxref("CanvasRenderingContext2D.globalCompositeOperation", "globalCompositeOperation = type")}}
- : 这个属性设定了在画新图形时采用的遮盖策略,其值是一个标识 12 种遮盖方式的字符串。

查看下面[Compositing 示例](/zh-CN/docs/Web/API/Canvas_API/Tutorial/Compositing/Example)的代码。

{{EmbedLiveSample("合成示例", 750, 6750, "")}}

## 裁切路径

![](canvas_clipping_path.png)裁切路径和普通的 canvas 图形差不多,不同的是它的作用是遮罩,用来隐藏不需要的部分。如右图所示。红边五角星就是裁切路径,所有在路径以外的部分都不会在 canvas 上绘制出来。
Expand Down
Loading

0 comments on commit 98c10aa

Please sign in to comment.