Skip to content

Commit

Permalink
Merge pull request #108 from karasjs/0.41
Browse files Browse the repository at this point in the history
0.41
  • Loading branch information
army8735 authored Nov 24, 2020
2 parents a8d85b7 + 3f8f339 commit 686641e
Show file tree
Hide file tree
Showing 46 changed files with 1,515 additions and 703 deletions.
6 changes: 3 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ a.on(karas.Event.END, function() {
#### zIndexChildren
* **类型** `Array<Dom/Text/Geom>`
* **说明**
此Dom下的直接孩子,且按照zIndex属性排好顺序,去除`mask`遮罩孩子
此Dom下的直接孩子,且按照zIndex属性排好顺序。

#### lineGroups
* **类型** `Array<Dom/Text/Geom>`
Expand Down Expand Up @@ -1208,12 +1208,12 @@ karas.render(
#### isClip
* **类型** `boolean` 只读
* **说明**
当前标签属性是否传入了`clip`表明图形是无透明遮罩。当为真值时,强制没有边线且没有透明度,因此只有封闭图形有效
当前标签属性是否传入了`clip`表明遮罩是裁剪性质。它和mask正好反过来,mask是只显示重合部分,clip是反之。`clip`依赖`mask`属性声明
* **示例**
```jsx
karas.render(
<canvas>
<$rect style={{width: 100, height:100}} clip={true}/>
<$rect style={{width: 100, height:100}} mask={true} clip={true}/>
</canvas>,
'#selector'
);
Expand Down
8 changes: 8 additions & 0 deletions csx.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
* inherit 默认
* none
* auto
* overflow
* visible 默认
* hidden
* fill
* transparent 默认
* #rgb/rgb/rgba
Expand Down Expand Up @@ -248,6 +251,11 @@
描边转角
* stroke-miterlimit: Number
描边斜切比率
## 共有属性
* mask: Boolean
是否为遮罩,默认false。
* clip: Boolean
是否为裁剪性质的遮罩,默认false,依赖mask声明。
## 私有属性
### $circle
* r: Number
Expand Down
Loading

0 comments on commit 686641e

Please sign in to comment.