resetting dash after applying it
diff --git a/player/index.html b/player/index.html
index 0bdd32c..4d3a054 100644
--- a/player/index.html
+++ b/player/index.html
@@ -193,16 +193,16 @@
var animData = {
container: elem,
renderer: 'svg',
- loop: false,
- autoplay: true,
+ loop: true,
+ autoplay: false,
rendererSettings: {
progressiveLoad:false,
imagePreserveAspectRatio: 'xMidYMid meet'
},
- path: 'exports/render/data.json'
+ path: 'https://storage.googleapis.com/skia-cdn/misc/dna.json'
};
anim = lottie.loadAnimation(animData);
- anim.setSubframe(false);
+ // anim.setSubframe(false);
</script>
</body>
diff --git a/player/js/elements/canvasElements/CVShapeElement.js b/player/js/elements/canvasElements/CVShapeElement.js
index 91cb8d1..d2e5e59 100644
--- a/player/js/elements/canvasElements/CVShapeElement.js
+++ b/player/js/elements/canvasElements/CVShapeElement.js
@@ -259,10 +259,6 @@
if(currentStyle.da){
ctx.setLineDash(currentStyle.da);
ctx.lineDashOffset = currentStyle.do;
- this.globalData.isDashed = true;
- }else if(this.globalData.isDashed){
- ctx.setLineDash(this.dashResetter);
- this.globalData.isDashed = false;
}
}
nodes = elems[j].trNodes;
@@ -279,6 +275,9 @@
}
if(type === 'st' || type === 'gs'){
ctx.stroke();
+ if(currentStyle.da){
+ ctx.setLineDash(this.dashResetter);
+ }
}
}
if(type !== 'st' && type !== 'gs'){