File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1306
1306
1307
1307
/*jshint esversion: 11, bitwise: false*/
1308
1308
1309
- var morphicVersion = '2024-February-12 ' ;
1309
+ var morphicVersion = '2024-March-01 ' ;
1310
1310
var modules = { } ; // keep track of additional loaded modules
1311
1311
var useBlurredShadows = true ;
1312
1312
@@ -2130,7 +2130,9 @@ Color.prototype.toRGBstring = function () {
2130
2130
2131
2131
Color . fromString = function ( aString ) {
2132
2132
// I parse rgb/rgba strings into a Color object
2133
- var channels = aString . split ( / [ \( ) , ] / ) . slice ( 0 , 4 ) ;
2133
+ var components = aString . split ( / [ \( ) , ] / ) ,
2134
+ channels = aString . startsWith ( 'rgba' ) ?
2135
+ components . slice ( 1 , 5 ) : components . slice ( 0 , 4 ) ;
2134
2136
return new Color ( + channels [ 0 ] , + channels [ 1 ] , + channels [ 2 ] , + channels [ 3 ] ) ;
2135
2137
} ;
2136
2138
You can’t perform that action at this time.
0 commit comments