Skip to content

Commit

Permalink
version 5.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymovin committed Mar 29, 2020
1 parent 0655d1b commit e6ea3f1
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 31 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## V 5.6.7
- use original comp name as export name
- added default filter values for banner template
- added option to load local file as lottie player
- initialSegment set before animation configuration

## V 5.6.6
- reading file extension correctly when copying original assets
- fixed inlined json objects with carriage returns
Expand Down
6 changes: 6 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## V 5.6.7
- use original comp name as export name
- added default filter values for banner template
- added option to load local file as lottie player
- initialSegment set before animation configuration

## V 5.6.6
- reading file extension correctly when copying original assets
- fixed inlined json objects with carriage returns
Expand Down
Binary file modified build/extension/bodymovin.zxp
Binary file not shown.
4 changes: 2 additions & 2 deletions build/player/lottie.js
Original file line number Diff line number Diff line change
Expand Up @@ -11413,6 +11413,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -11430,7 +11431,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -14523,7 +14523,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -9208,6 +9208,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -9225,7 +9226,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -12318,7 +12318,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_canvas.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_canvas_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9130,6 +9130,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -9147,7 +9148,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -12328,7 +12328,7 @@ GroupEffect.prototype.init = function(data,element){
lottiejs.freeze = animationManager.freeze;
lottiejs.unfreeze = animationManager.unfreeze;
lottiejs.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottiejs.version = '5.6.6';
lottiejs.version = '5.6.7';

var renderer = '';
return lottiejs;
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_canvas_worker.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -10156,6 +10156,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -10173,7 +10174,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -13266,7 +13266,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_html.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_light.js
Original file line number Diff line number Diff line change
Expand Up @@ -9074,6 +9074,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -9091,7 +9092,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -9707,7 +9707,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_light.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_light_canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -9208,6 +9208,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -9225,7 +9226,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -9841,7 +9841,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_light_canvas.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_light_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -10156,6 +10156,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -10173,7 +10174,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -10789,7 +10789,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_light_html.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/player/lottie_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -9074,6 +9074,7 @@ AnimationItem.prototype.setParams = function(params) {
this.name = params.name ? params.name : '';
this.autoloadSegments = params.hasOwnProperty('autoloadSegments') ? params.autoloadSegments : true;
this.assetsPath = params.assetsPath;
this.initialSegment = params.initialSegment;
if (params.animationData) {
this.configAnimation(params.animationData);
} else if(params.path){
Expand All @@ -9091,7 +9092,6 @@ AnimationItem.prototype.setParams = function(params) {
}.bind(this));
}

this.initialSegment = params.initialSegment;
};

AnimationItem.prototype.setData = function (wrapper, animationData) {
Expand Down Expand Up @@ -12184,7 +12184,7 @@ lottie.freeze = animationManager.freeze;
lottie.unfreeze = animationManager.unfreeze;
lottie.getRegisteredAnimations = animationManager.getRegisteredAnimations;
lottie.__getFactory = getFactory;
lottie.version = '5.6.6';
lottie.version = '5.6.7';

function checkReady() {
if (document.readyState === "complete") {
Expand Down
2 changes: 1 addition & 1 deletion build/player/lottie_svg.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lottie-web",
"version": "5.6.6",
"version": "5.6.7",
"description": "After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript",
"main": "./build/player/lottie.js",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions player/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,22 @@
var animData = {
container: elem,
renderer: 'svg',
loop: false,
autoplay: false,
loop: true,
autoplay: true,
rendererSettings: {
progressiveLoad:true,
preserveAspectRatio: 'xMidYMid meet',
imagePreserveAspectRatio: 'xMidYMid meet',
title: 'TEST TITLE',
description: 'TEST DESCRIPTION',
filterSize: {
width: '800%',
height: '800%',
width: '300%',
height: '300%',
x: '-100%',
y: '-100%',
}
},
path: 'exports/render/data.json'
path: 'exports/render/data.json',
};
// lottie.setQuality('low');
anim = lottie.loadAnimation(animData);
Expand Down
2 changes: 1 addition & 1 deletion tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const cheerio = require('cheerio');
const UglifyJS = require("uglify-js");

const rootFolder = 'player/';
const bm_version = '5.6.6';
const bm_version = '5.6.7';
const buildReducedVersion = process.argv[2] === 'reduced'
const defaultBuilds = ['full','svg_light','svg','canvas','html', 'canvas_light', 'html_light', 'canvas_worker']

Expand Down

0 comments on commit e6ea3f1

Please sign in to comment.