Skip to content

Commit

Permalink
docs: update bitmap doc
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Apr 17, 2019
1 parent 3cd2dda commit 491c8d6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/api-en/code/view/Bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* set the image。
* @param {Image|String} Image Object or URL.
* @param {Array} rect the range of bitmap in the image, option.
* @param {Boolean} Whether cross-domain is needed, default is false.
* @param {Boolean} crossOrigin Whether cross-domain is needed, default is false.
* @returns {Bitmap} self。
*/
setImage: function(image, rect, crossOrigin){
Expand Down
8 changes: 4 additions & 4 deletions docs/api-en/symbols/Bitmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ <h3 style="display:inline;margin-right:10px;">Methods</h3>

</td>
<td class="fixedFont">
<div><b><a href="../symbols/Bitmap.html#setImage">setImage</a></b>(Image:Image|String, rect:Array, Whether:Boolean):Bitmap
<div><b><a href="../symbols/Bitmap.html#setImage">setImage</a></b>(Image:Image|String, rect:Array, crossOrigin:Boolean):Bitmap
</div>
<div class="description">

Expand Down Expand Up @@ -1099,7 +1099,7 @@ <h3 style="margin-bottom:15px;">Constructor</h3>
<div class="member-box">
<div class="member-header">

<b>setImage</b>(Image:Image|String, rect:Array, Whether:Boolean):<span class="light"><a href="../symbols/Bitmap.html">Bitmap</a></span>
<b>setImage</b>(Image:Image|String, rect:Array, crossOrigin:Boolean):<span class="light"><a href="../symbols/Bitmap.html">Bitmap</a></span>
</div>
<div class="description">set the image。</div>

Expand All @@ -1120,8 +1120,8 @@ <h3 style="margin-bottom:15px;">Constructor</h3>
</dt>

<dt style="margin-left:20px;font-weight:normal;">
<b>Whether</b>:<span>Boolean</span>
— cross-domain is needed, default is false.
<b>crossOrigin</b>:<span>Boolean</span>
Whether cross-domain is needed, default is false.
</dt>

</dl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<span class='line'> 49</span> * set the image。
<span class='line'> 50</span> * @param {Image|String} Image Object or URL.
<span class='line'> 51</span> * @param {Array} rect the range of bitmap in the image, option.
<span class='line'> 52</span> * @param {Boolean} Whether cross-domain is needed, default is false.
<span class='line'> 52</span> * @param {Boolean} crossOrigin Whether cross-domain is needed, default is false.
<span class='line'> 53</span> * @returns {Bitmap} self。
<span class='line'> 54</span> */</span><span class="WHIT">
<span class='line'> 55</span> </span><span class="WHIT"> </span><span class="NAME">setImage</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">image</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rect</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">crossOrigin</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
Expand Down
2 changes: 1 addition & 1 deletion docs/api-zh/code/view/Bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* 设置位图的图片。
* @param {Image|String} image 图片对象或地址。
* @param {Array} rect 指定位图在图片image的矩形区域。可选。
* @param {Boolean} 是否设置 crossOrigin,默认否。
* @param {Boolean} crossOrigin 是否设置 crossOrigin,默认否。
* @returns {Bitmap} 位图本身。
*/
setImage: function(image, rect, crossOrigin){
Expand Down
8 changes: 4 additions & 4 deletions docs/api-zh/symbols/Bitmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ <h3 style="display:inline;margin-right:10px;">方法概览</h3>

</td>
<td class="fixedFont">
<div><b><a href="../symbols/Bitmap.html#setImage">setImage</a></b>(image:Image|String, rect:Array, 是否设置:Boolean):Bitmap
<div><b><a href="../symbols/Bitmap.html#setImage">setImage</a></b>(image:Image|String, rect:Array, crossOrigin:Boolean):Bitmap
</div>
<div class="description">

Expand Down Expand Up @@ -1100,7 +1100,7 @@ <h3 style="margin-bottom:15px;">构造函数</h3>
<div class="member-box">
<div class="member-header">

<b>setImage</b>(image:Image|String, rect:Array, 是否设置:Boolean):<span class="light"><a href="../symbols/Bitmap.html">Bitmap</a></span>
<b>setImage</b>(image:Image|String, rect:Array, crossOrigin:Boolean):<span class="light"><a href="../symbols/Bitmap.html">Bitmap</a></span>
</div>
<div class="description">设置位图的图片。</div>

Expand All @@ -1121,8 +1121,8 @@ <h3 style="margin-bottom:15px;">构造函数</h3>
</dt>

<dt style="margin-left:20px;font-weight:normal;">
<b>是否设置</b>:<span>Boolean</span>
— crossOrigin,默认否。
<b>crossOrigin</b>:<span>Boolean</span>
是否设置 crossOrigin,默认否。
</dt>

</dl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<span class='line'> 49</span> * 设置位图的图片。
<span class='line'> 50</span> * @param {Image|String} image 图片对象或地址。
<span class='line'> 51</span> * @param {Array} rect 指定位图在图片image的矩形区域。可选。
<span class='line'> 52</span> * @param {Boolean} 是否设置 crossOrigin,默认否。
<span class='line'> 52</span> * @param {Boolean} crossOrigin 是否设置 crossOrigin,默认否。
<span class='line'> 53</span> * @returns {Bitmap} 位图本身。
<span class='line'> 54</span> */</span><span class="WHIT">
<span class='line'> 55</span> </span><span class="WHIT"> </span><span class="NAME">setImage</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">image</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rect</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">crossOrigin</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
Expand Down
4 changes: 2 additions & 2 deletions src/view/Bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
* set the image。
* @param {Image|String} Image Object or URL.
* @param {Array} rect the range of bitmap in the image, option.
* @param {Boolean} Whether cross-domain is needed, default is false.
* @param {Boolean} crossOrigin Whether cross-domain is needed, default is false.
* @returns {Bitmap} self。
*/
/**
* @language=zh
* 设置位图的图片。
* @param {Image|String} image 图片对象或地址。
* @param {Array} rect 指定位图在图片image的矩形区域。可选。
* @param {Boolean} 是否设置 crossOrigin,默认否。
* @param {Boolean} crossOrigin 是否设置 crossOrigin,默认否。
* @returns {Bitmap} 位图本身。
*/
setImage: function(image, rect, crossOrigin){
Expand Down

0 comments on commit 491c8d6

Please sign in to comment.