Release v2.10.3
This commit is contained in:
1 parent
30814f3f46
commit
3f4f57020a
60 files changed
+1075
-523
No files matched your search
@@ -227,7 +227,7 @@ function getRegionAnimationPhaseTimingMs(root, phase) {
|
||||
}
|
||||
|
||||
function getRegionAnimationPhaseTimings(root, phase) {
|
||||
if (!root || isThumbnailPreview()) {
|
||||
if (!root) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ function getRegionAnimationPhaseTimings(root, phase) {
|
||||
}
|
||||
|
||||
function playRegionAnimation(element, phase) {
|
||||
if (!element || isThumbnailPreview()) {
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ function playRegionAnimation(element, phase) {
|
||||
}
|
||||
|
||||
function playRegionAnimations(root, phase) {
|
||||
if (!root || isThumbnailPreview()) {
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -797,7 +797,7 @@ function buildBackdropStyle(backgroundColor, backgroundImagePath, backgroundGrad
|
||||
var gradient = '';
|
||||
try {
|
||||
var gradientData = typeof backgroundGradient === 'string' ? JSON.parse(backgroundGradient) : backgroundGradient;
|
||||
if (gradientData && gradientData.type === 'linear' && Array.isArray(gradientData.colors) && gradientData.colors.length >= 2) {
|
||||
if (gradientData && gradientData.type === 'linear' && ((Array.isArray(gradientData.stops) && gradientData.stops.length >= 2) || (Array.isArray(gradientData.colors) && gradientData.colors.length >= 2))) {
|
||||
var stops = Array.isArray(gradientData.stops) ? gradientData.stops : (gradientData.colors || []).map(function (color, index, colors) { return { color: color, position: colors.length > 1 ? Math.round(index * 100 / (colors.length - 1)) : 0 }; });
|
||||
stops = stops.filter(function (stop) { return stop && /^#[0-9a-fA-F]{3,8}$/.test(String(stop.color || '').trim()); }).slice(0, 12);
|
||||
if (stops.length >= 2) {
|
||||
@@ -975,7 +975,7 @@ function notifyVideoRegionSourceReady() {
|
||||
}
|
||||
slideMarkupCache = Object.create(null);
|
||||
if (typeof showCurrent === 'function' && slides && slides.length) {
|
||||
showCurrent();
|
||||
showCurrent({ skipFade: true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user