File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 10
10
selector, regardless of which selector they came from. Previously, this
11
11
reordering only applied to pseudo-selectors in the second selector.
12
12
13
+ ### JS API
14
+
15
+ * Fix ` SassColor.interpolate() ` to allow an undefined ` options ` parameter, as
16
+ the types indicate.
17
+
13
18
### Embedded Sass
14
19
15
20
* Properly pass missing color channel values to and from custom functions.
Original file line number Diff line number Diff line change @@ -307,11 +307,11 @@ final JSClass colorClass = () {
307
307
308
308
return changedColor.toSpace (self.space);
309
309
},
310
- 'interpolate' :
311
- ( SassColor self, SassColor color2, _InterpolationOptions options) {
310
+ 'interpolate' : ( SassColor self, SassColor color2,
311
+ [ _InterpolationOptions ? options] ) {
312
312
InterpolationMethod interpolationMethod;
313
313
314
- if (options.method case var method? ) {
314
+ if (options? .method case var method? ) {
315
315
var hue = HueInterpolationMethod .values.byName (method);
316
316
interpolationMethod = InterpolationMethod (self.space, hue);
317
317
} else if (! self.space.isPolar) {
@@ -322,7 +322,7 @@ final JSClass colorClass = () {
322
322
}
323
323
324
324
return self.interpolate (color2, interpolationMethod,
325
- weight: options.weight);
325
+ weight: options? .weight);
326
326
}
327
327
});
328
328
You can’t perform that action at this time.
0 commit comments