File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
394394 double ? sourceHeight,
395395 ImageRepeatEnum ? imageRepeat,
396396 String ? id,
397+ bool forceSourceSize = false ,
397398 }) =>
398399 PaintModel (
399400 id: id ?? this .id,
@@ -413,8 +414,10 @@ class PaintModel with EquatableMixin, SerializableMixin {
413414 alignment: alignment ?? this .alignment,
414415 scaleX: scaleX ?? this .scaleX,
415416 scaleY: scaleY ?? this .scaleY,
416- sourceWidth: sourceWidth ?? this .sourceWidth,
417- sourceHeight: sourceHeight ?? this .sourceHeight,
417+ sourceWidth:
418+ forceSourceSize ? sourceWidth : sourceWidth ?? this .sourceWidth,
419+ sourceHeight:
420+ forceSourceSize ? sourceHeight : sourceHeight ?? this .sourceHeight,
418421 cropData: clearCropData ? null : cropData ?? this .cropData,
419422 croppedImageURL:
420423 clearCropData ? null : croppedImageURL ?? this .croppedImageURL,
You can’t perform that action at this time.
0 commit comments