wibbitz-lottie-web
Advanced tools
Comparing version
{ | ||
"name": "wibbitz-lottie-web", | ||
"version": "5.6.1-10", | ||
"version": "5.6.1-11", | ||
"description": "After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "./build/player/lottie.js", |
@@ -5,3 +5,2 @@ function SVGTextElement(data,globalData,comp){ | ||
this.initElement(data,globalData,comp); | ||
this._readOnly = readOnlyLayers.includes(data.nm); | ||
} | ||
@@ -34,11 +33,6 @@ | ||
SVGTextElement.prototype.buildNewText = function(isReadOnly){ | ||
SVGTextElement.prototype.buildNewText = function(){ | ||
var i, len; | ||
var documentData = this.textProperty.currentData; | ||
if(isReadOnly) { | ||
this.layerElement.setAttribute('read-only-data', documentData.t); | ||
return; | ||
} | ||
this.renderedLetters = createSizedArray(documentData ? documentData.l.length : 0); | ||
@@ -45,0 +39,0 @@ if(documentData.fc) { |
@@ -26,3 +26,3 @@ function ITextElement(){ | ||
if(this.textProperty._mdf || this.textProperty._isFirstFrame) { | ||
this.buildNewText(this._readOnly); | ||
this.buildNewText(); | ||
this.textProperty._isFirstFrame = false; | ||
@@ -29,0 +29,0 @@ this.textProperty._mdf = false; |
@@ -6,3 +6,1 @@ var svgNS = "http://www.w3.org/2000/svg"; | ||
var initialDefaultFrame = -999999; | ||
var readOnlyLayers = ['.calculatedData', 'inAnimCustomBezier', 'outAnimCustomBezier']; |
function TextProperty(elem, data){ | ||
this._frameId = initialDefaultFrame; | ||
this._readOnly = readOnlyLayers.includes(elem.data.nm); | ||
this._frameId = initialDefaultFrame; | ||
this.pv = ''; | ||
@@ -50,3 +49,3 @@ this.v = ''; | ||
if(!this.searchProperty()) { | ||
this.completeTextData(this.currentData, this._readOnly); | ||
this.completeTextData(this.currentData); | ||
} | ||
@@ -68,3 +67,3 @@ } | ||
if(!data.__complete) { | ||
this.completeTextData(data, this._readOnly); | ||
this.completeTextData(data); | ||
} | ||
@@ -169,5 +168,4 @@ this.currentData = data; | ||
TextProperty.prototype.completeTextData = function(documentData, autoComplete) { | ||
TextProperty.prototype.completeTextData = function(documentData) { | ||
documentData.__complete = true; | ||
if (autoComplete) return; | ||
var fontManager = this.elem.globalData.fontManager; | ||
@@ -174,0 +172,0 @@ var data = this.data; |
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
29499394
-0.02%123271
-0.05%