wibbitz-lottie-web
Advanced tools
Comparing version
{ | ||
"name": "wibbitz-lottie-web", | ||
"version": "5.6.1-6", | ||
"version": "5.6.1-7", | ||
"description": "After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "./build/player/lottie.js", |
@@ -33,2 +33,3 @@ function SVGTextElement(data,globalData,comp){ | ||
SVGTextElement.prototype.buildNewText = function(){ | ||
var isReadOnly = this.data.nm === '.calculatedData'; | ||
var i, len; | ||
@@ -68,2 +69,5 @@ | ||
var trackingOffset = documentData.tr/1000*documentData.finalSize; | ||
if (isReadOnly) return; | ||
if(singleShape && !usesGlyphs && !documentData.sz) { | ||
@@ -70,0 +74,0 @@ var tElement = this.textContainer; |
@@ -8,3 +8,3 @@ function ITextElement(){ | ||
this.initBaseData(data, globalData, comp); | ||
this.textProperty = new TextProperty(this, data.t, this.dynamicProperties); | ||
this.textProperty = new TextProperty(this, data.t, data.nm === '.calculatedData'); // calculatedData is a layer used for DF to take data from lottie calculations | ||
this.textAnimator = new TextAnimatorProperty(data.t, this.renderType, this); | ||
@@ -11,0 +11,0 @@ this.initTransform(data, globalData, comp); |
@@ -1,3 +0,3 @@ | ||
function TextProperty(elem, data){ | ||
this._frameId = initialDefaultFrame; | ||
function TextProperty(elem, data, isReadOnly){ | ||
this._frameId = initialDefaultFrame; | ||
this.pv = ''; | ||
@@ -22,2 +22,3 @@ this.v = ''; | ||
fc: '', | ||
isReadOnly: isReadOnly, | ||
j: '', | ||
@@ -46,3 +47,4 @@ justifyOffset: '', | ||
}; | ||
}; | ||
this.copyData(this.currentData, this.data.d.k[0].s); | ||
@@ -169,2 +171,3 @@ | ||
TextProperty.prototype.completeTextData = function(documentData) { | ||
if (documentData.isReadOnly) return; | ||
documentData.__complete = true; | ||
@@ -171,0 +174,0 @@ var fontManager = this.elem.globalData.fontManager; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
29502452
0.01%123310
0.03%