@builder.io/react
Advanced tools
Comparing version 0.1.63-2 to 0.1.63-3
@@ -29,2 +29,3 @@ "use strict"; | ||
var builder_block_decorator_1 = require("../decorators/builder-block.decorator"); | ||
var DEFAULT_ASPECT_RATIO = 0.7004048582995948; | ||
var Image = /** @class */ (function (_super) { | ||
@@ -82,2 +83,3 @@ __extends(Image, _super); | ||
onChange: function (options) { | ||
var DEFAULT_ASPECT_RATIO = 0.7004048582995948; | ||
function loadImage(url, timeout) { | ||
@@ -107,3 +109,3 @@ if (timeout === void 0) { timeout = 60000; } | ||
var aspectRatio = options.get('aspectRatio'); | ||
if (value && !aspectRatio) { | ||
if (value && (!aspectRatio || aspectRatio === DEFAULT_ASPECT_RATIO)) { | ||
return loadImage(value).then(function (img) { | ||
@@ -154,3 +156,4 @@ if (options.get('image') === value && !options.get('aspectRatio')) { | ||
type: 'number', | ||
hideFromUI: true | ||
hideFromUI: true, | ||
defaultValue: DEFAULT_ASPECT_RATIO, | ||
}, | ||
@@ -157,0 +160,0 @@ { |
{ | ||
"name": "@builder.io/react", | ||
"version": "0.1.63-2", | ||
"version": "0.1.63-3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5542762
40568