Skip to content

Commit ddc55b1

Browse files
committed
Set colormap ts side
1 parent 55a2603 commit ddc55b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/widget.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,21 +508,26 @@ class IsoColorModel extends EffectModel {
508508
return this.get('max');
509509
}
510510

511+
get colormap () : string {
512+
return this.get('colormap');
513+
}
514+
511515
get input () {
512516
const input = this.get('input');
513517

514518
return typeof input == 'string' ? input : [input];
515519
}
516520

517521
createBlock () {
518-
return new IsoColor(this.parent.block, this.input, this.min, this.max);
522+
return new IsoColor(this.parent.block, this.input, this.min, this.max, this.colormap);
519523
}
520524

521525
initEventListeners () : void {
522526
super.initEventListeners();
523527

524528
this.on('change:min', () => { this.block.min = this.min; });
525529
this.on('change:max', () => { this.block.max = this.max; });
530+
this.on('change:colormap', () => { this.block.colorMap = this.colormap; });
526531
}
527532

528533
block: IsoColor;

0 commit comments

Comments
 (0)