Skip to content

Commit

Permalink
fix doc error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangzhuang committed Jun 16, 2017
1 parent 9f9c50d commit 307aabf
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
* @constructor
* @param {HTMLElement} root 绘图容器
* @param {module:zrender/Storage} storage
* @param {Ojbect} opts
* @param {Object} opts
*/
var Painter = function (root, storage, opts) {
// In node environment using node-canvas
Expand Down
2 changes: 1 addition & 1 deletion src/core/PathProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ define(function (require) {
/**
* Rebuild path from current data
* Rebuild path will not consider javascript implemented line dash.
* @param {CanvasRenderingContext} ctx
* @param {CanvasRenderingContext2D} ctx
*/
rebuildPath: function (ctx) {
var d = this.data;
Expand Down
4 changes: 2 additions & 2 deletions src/core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ define(function(require) {
/**
* @param {*} target
* @param {*} source
* @param {boolen} [overlay=false]
* @param {boolean} [overlay=false]
* @memberOf module:zrender/core/util
*/
function defaults(target, source, overlay) {
Expand Down Expand Up @@ -312,7 +312,7 @@ define(function(require) {
if (!(obj && cb)) {
return;
}
if (obj.reduce && obj.reduce === nativeReduce) {
if (obj.reduce && obj.reduce === nativeReduce) {
return obj.reduce(cb, memo, context);
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/graphic/Displayable.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ define(function (require) {

/**
* 图形绘制方法
* @param {Canvas2DRenderingContext} ctx
* @param {CanvasRenderingContext2D} ctx
*/
// Interface
brush: function (ctx, prevEl) {},
Expand Down
2 changes: 1 addition & 1 deletion src/graphic/States.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ define(function (require) {
* @param {Object} state
* @param {string} subPropKey
* @param {string} key
* @param {string} transitionCfg
* @param {Object} transitionCfg
* @param {Function} done
* @private
*/
Expand Down
2 changes: 1 addition & 1 deletion src/graphic/mixin/RectText.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define(function (require) {

/**
* Draw text in a rect with specified position.
* @param {CanvasRenderingContext} ctx
* @param {CanvasRenderingContext2D} ctx
* @param {Object} rect Displayable rect
* @return {Object} textRect Alternative precalculated text bounding rect
*/
Expand Down
4 changes: 2 additions & 2 deletions src/mixin/Transformable.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ define(function (require) {

/**
* 将自己的transform应用到context上
* @param {Context2D} ctx
* @param {CanvasRenderingContext2D} ctx
*/
transformableProto.setTransform = function (ctx) {
transformableProto.setTransform = function (ctx) {
var m = this.transform;
var dpr = ctx.dpr || 1;
if (m) {
Expand Down
2 changes: 1 addition & 1 deletion src/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ define(function(require) {
* @constructor
* @alias module:zrender/ZRender
* @param {string} id
* @param {HTMLDomElement} dom
* @param {HTMLElement} dom
* @param {Object} opts
* @param {string} [opts.renderer='canvas'] 'canvas' or 'svg'
* @param {number} [opts.devicePixelRatio]
Expand Down

0 comments on commit 307aabf

Please sign in to comment.