dchart-core
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -1,1 +0,1 @@ | ||
function FloatTag(t,i,a){this.reset(),this.options={shape:"",content:"",customShape:null,pos:null},this.init(t,i,a),this._valid()}var _=require("../util"),Com=require("./index"),d3=require("d3");FloatTag=Com.extend(FloatTag,{_valid:function(){},renderSeries:function(){var t=this.options;this.el=this.el.append("g").attr({"class":"float-tag",opacity:0,transform:"translate("+t.pos[0]+", "+t.pos[1]+")"}),"function"==typeof t.customShape&&this.el.html(t.customShape.apply(this))},update:function(t,i){this.init(null,i),t&&this.data(t),this._valid(),this.valid||this.emit("error",{msg:this.msg}),i.customShape&&this.el.html(opt.customShape.apply(this)),this.updateSeries()},updateSeries:function(){this.options},show:function(t){var i=this.options,a=this.alloptions,s=this;this.el.attr({opacity:.1,transform:"translate("+i.pos[0]+", "+(i.pos[1]+10)+")"}).transition().duration(a.animatedTiming).ease(a.animatedEasing).attr({opacity:1,transform:"translate("+i.pos[0]+", "+i.pos[1]+")"}),t&&setTimeout(function(){t.call(s)},a.animatedTiming)},hide:function(t){var i=this.options,a=this.alloptions,s=this;this.el.attr({opacity:1,transform:"translate("+i.pos[0]+", "+i.pos[1]+")"}).transition().duration(a.animatedTiming).ease(a.animatedEasing).attr({opacity:0,transform:"translate("+i.pos[0]+", "+(i.pos[1]+10)+")"}),t&&setTimeout(function(){t.call(s)},a.animatedTiming)}}),module.exports=FloatTag; | ||
function FloatTag(t,i,a){this.reset(),this.options={shape:"",content:"",customShape:null,pos:null},this.init(t,i,a),this._valid()}var _=require("../util"),Com=require("./index"),d3=require("d3");FloatTag=Com.extend(FloatTag,{_valid:function(){},renderSeries:function(){var t=this.options;this.el=this.el.append("g").attr({"class":"float-tag",opacity:0,transform:"translate("+t.pos[0]+", "+t.pos[1]+")"}),"function"==typeof t.customShape&&this.el.html(t.customShape.apply(this))},update:function(t,i){this.init(null,i),t&&this.data(t),this._valid(),this.valid||this.emit("error",{msg:this.msg});var a=this.options;"function"==typeof i.customShape&&this.el.html(a.customShape.apply(this)),this.updateSeries()},updateSeries:function(){},show:function(t){var i=this.options,a=this.alloptions,s=this;this.el.attr({opacity:.1,transform:"translate("+i.pos[0]+", "+(i.pos[1]+10)+")"}).transition().duration(a.animatedTiming).ease(a.animatedEasing).attr({opacity:1,transform:"translate("+i.pos[0]+", "+i.pos[1]+")"}),t&&setTimeout(function(){t.call(s)},a.animatedTiming)},hide:function(t){var i=this.options,a=this.alloptions,s=this;this.el.attr({opacity:1,transform:"translate("+i.pos[0]+", "+i.pos[1]+")"}).transition().duration(a.animatedTiming).ease(a.animatedEasing).attr({opacity:0,transform:"translate("+i.pos[0]+", "+(i.pos[1]+10)+")"}),t&&setTimeout(function(){t.call(s)},a.animatedTiming)}}),module.exports=FloatTag; |
{ | ||
"name": "dchart-core", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
81753