File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -517,6 +517,7 @@ var Poline = class {
517517 * getColorAt(1) // Returns color at the very end
518518 */
519519 getColorAt ( t ) {
520+ var _a ;
520521 if ( t < 0 || t > 1 ) {
521522 throw new Error ( "Position must be between 0 and 1" ) ;
522523 }
@@ -533,7 +534,7 @@ var Poline = class {
533534 const pair = this . _anchorPairs [ actualSegmentIndex ] ;
534535 if ( ! pair || pair . length < 2 || ! pair [ 0 ] || ! pair [ 1 ] ) {
535536 return new ColorPoint ( {
536- color : this . anchorPoints [ 0 ] ? .color || [ 0 , 0 , 0 ] ,
537+ color : ( ( _a = this . anchorPoints [ 0 ] ) == null ? void 0 : _a . color ) || [ 0 , 0 , 0 ] ,
537538 invertedLightness : this . _invertedLightness
538539 } ) ;
539540 }
@@ -584,3 +585,4 @@ export {
584585 randomHSLPair ,
585586 randomHSLTriple
586587} ;
588+ //# sourceMappingURL=index.mjs.map
You can’t perform that action at this time.
0 commit comments