From bfae5c3d0b77af6664ba72c423eb10a527e6a4fe Mon Sep 17 00:00:00 2001 From: fuzhenn Date: Sun, 22 Oct 2017 11:26:53 +0800 Subject: [PATCH] 0.4.1 --- dist/maptalks.odline.es.js | 10 +++++----- dist/maptalks.odline.js | 10 +++++----- dist/maptalks.odline.min.js | 4 ++-- package.json | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/maptalks.odline.es.js b/dist/maptalks.odline.es.js index 84ac33f..74dcf36 100644 --- a/dist/maptalks.odline.es.js +++ b/dist/maptalks.odline.es.js @@ -1,5 +1,5 @@ /*! - * maptalks.odline v0.4.0 + * maptalks.odline v0.4.1 * LICENSE : MIT * (c) 2016-2017 maptalks.org */ @@ -22,11 +22,11 @@ function quadraticAt(p0, p1, p2, t) { } var options = { - 'animation': true, + 'animation': false, 'animationOnce': false, - 'animatinDuration': 6000, + 'animationDuration': 6000, 'animationRandom': false, - 'curveness': 0.2, + 'curveness': 0, 'trail': 20, 'globalCompositeOperation': 'lighter' }; @@ -275,4 +275,4 @@ ODLineLayer.registerJSONType('ODLineLayer'); export { ODLineLayer }; -typeof console !== 'undefined' && console.log('maptalks.odline v0.4.0, requires maptalks@>=0.32.0.'); +typeof console !== 'undefined' && console.log('maptalks.odline v0.4.1, requires maptalks@>=0.32.0.'); diff --git a/dist/maptalks.odline.js b/dist/maptalks.odline.js index 8425628..6dc8b69 100644 --- a/dist/maptalks.odline.js +++ b/dist/maptalks.odline.js @@ -1,5 +1,5 @@ /*! - * maptalks.odline v0.4.0 + * maptalks.odline v0.4.1 * LICENSE : MIT * (c) 2016-2017 maptalks.org */ @@ -26,11 +26,11 @@ function quadraticAt(p0, p1, p2, t) { } var options = { - 'animation': true, + 'animation': false, 'animationOnce': false, - 'animatinDuration': 6000, + 'animationDuration': 6000, 'animationRandom': false, - 'curveness': 0.2, + 'curveness': 0, 'trail': 20, 'globalCompositeOperation': 'lighter' }; @@ -281,6 +281,6 @@ exports.ODLineLayer = ODLineLayer; Object.defineProperty(exports, '__esModule', { value: true }); -typeof console !== 'undefined' && console.log('maptalks.odline v0.4.0, requires maptalks@>=0.32.0.'); +typeof console !== 'undefined' && console.log('maptalks.odline v0.4.1, requires maptalks@>=0.32.0.'); }))); diff --git a/dist/maptalks.odline.min.js b/dist/maptalks.odline.min.js index 4029596..7c16201 100644 --- a/dist/maptalks.odline.min.js +++ b/dist/maptalks.odline.min.js @@ -1,9 +1,9 @@ /*! - * maptalks.odline v0.4.0 + * maptalks.odline v0.4.1 * LICENSE : MIT * (c) 2016-2017 maptalks.org */ /*! * requires maptalks@>=0.32.0 */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("maptalks")):"function"==typeof define&&define.amd?define(["exports","maptalks"],e):e(t.maptalks=t.maptalks||{},t.maptalks)}(this,function(t,e){"use strict";function i(t,e){for(var i=Object.getOwnPropertyNames(e),o=0;oa)return this._endEventFired||(this._endEventFired=!0,this.fire("animateend")),[];for(var p=this.options.symbol||s,d=n%a/a,l=[],h=void 0,u=void 0,c=void 0,f=void 0,y=void 0,m=void 0,_=void 0,v=0,g=this._dataToDraw.length;v0&&(h=this._dataToDraw[v].points,f=this._data[v].symbol||p,y=h[0],m=h[1],h[2]?(_=h[2],u=r(y.x,_.x,m.x,d),c=r(y.y,_.y,m.y,d)):(u=y.x+d*(m.x-y.x),c=y.y+d*(m.y-y.y)),l.push({point:i._pointToContainerPoint(new e.Point(u,c)._multi(1/o)),r:(f.lineWidth||3)/2,color:f.lineColor}));return l},i.prototype.draw=function(e){return this._dataToDraw||this._prepareData(),this.options.animation?t.prototype.draw.apply(this,arguments):(this._drawLines(e),this)},i.prototype.onConfig=function(){this._getRenderer()&&this._getRenderer().render()},i.prototype.onRemove=function(){delete this._dataToDraw},i.prototype.toJSON=function(t){t||(t={});var i={type:this.getJSONType(),id:this.getId(),options:this.config()},o=this.getData();if(t.clipExtent){for(var n=new e.Extent(t.clipExtent),a=[],r=0,s=o.length;r=0.32.0.")}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("maptalks")):"function"==typeof define&&define.amd?define(["exports","maptalks"],e):e(t.maptalks=t.maptalks||{},t.maptalks)}(this,function(t,e){"use strict";function i(t,e){for(var i=Object.getOwnPropertyNames(e),o=0;oa)return this._endEventFired||(this._endEventFired=!0,this.fire("animateend")),[];for(var p=this.options.symbol||s,d=n%a/a,l=[],h=void 0,u=void 0,c=void 0,f=void 0,y=void 0,m=void 0,_=void 0,v=0,g=this._dataToDraw.length;v0&&(h=this._dataToDraw[v].points,f=this._data[v].symbol||p,y=h[0],m=h[1],h[2]?(_=h[2],u=r(y.x,_.x,m.x,d),c=r(y.y,_.y,m.y,d)):(u=y.x+d*(m.x-y.x),c=y.y+d*(m.y-y.y)),l.push({point:i._pointToContainerPoint(new e.Point(u,c)._multi(1/o)),r:(f.lineWidth||3)/2,color:f.lineColor}));return l},i.prototype.draw=function(e){return this._dataToDraw||this._prepareData(),this.options.animation?t.prototype.draw.apply(this,arguments):(this._drawLines(e),this)},i.prototype.onConfig=function(){this._getRenderer()&&this._getRenderer().render()},i.prototype.onRemove=function(){delete this._dataToDraw},i.prototype.toJSON=function(t){t||(t={});var i={type:this.getJSONType(),id:this.getId(),options:this.config()},o=this.getData();if(t.clipExtent){for(var n=new e.Extent(t.clipExtent),a=[],r=0,s=o.length;r=0.32.0.")}); \ No newline at end of file diff --git a/package.json b/package.json index 393d014..5dfc830 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "maptalks.odline", - "version": "0.4.0", + "version": "0.4.1", "description": "A maptalks Layer to draw ODLines.", "license": "MIT", "repository": { @@ -16,7 +16,7 @@ "version": "gulp minify && git add -A dist", "lint": "eslint index.js test/**/*.js", "test": "gulp test", - "tdd" : "gulp tdd", + "tdd": "gulp tdd", "pretest": "npm run lint", "prepublish": "npm run lint && gulp minify", "dev": "gulp watch",