@kitware/vtk.js 34.15.5 → 34.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,16 +45,8 @@ function vtkDataSetAttributes(publicAPI, model) {
45
45
  vtkWarningMacro(`Cannot set attribute ${attType}. Incorrect number of components.`);
46
46
  return -1;
47
47
  }
48
- let currentAttribute = model[`active${attType}`];
49
- if (currentAttribute >= 0 && currentAttribute < model.arrays.length) {
50
- if (model.arrays[currentAttribute] === arr) {
51
- return currentAttribute;
52
- }
53
- // FIXME setting an array actually changes its index
54
- publicAPI.removeArrayByIndex(currentAttribute);
55
- }
56
48
  if (arr) {
57
- currentAttribute = publicAPI.addArray(arr);
49
+ const currentAttribute = publicAPI.addArray(arr);
58
50
  model[`active${attType}`] = currentAttribute;
59
51
  } else {
60
52
  model[`active${attType}`] = -1;
@@ -595,6 +595,197 @@ var vtkColorMaps = [
595
595
  1
596
596
  ]
597
597
  },
598
+ {
599
+ ColorSpace: "RGB",
600
+ Name: "Grayscale-DICOM-sigmoid",
601
+ Notes: "This is a 16 point sample of a sigmoid grayscale colormap described in the DICOM standard. See equation C.11-1 in section C.11.2",
602
+ NanColor: [
603
+ 1,
604
+ 0,
605
+ 0
606
+ ],
607
+ BelowRangeColor: [
608
+ 0,
609
+ 0,
610
+ 0
611
+ ],
612
+ AboveRangeColor: [
613
+ 1,
614
+ 1,
615
+ 1
616
+ ],
617
+ RGBPoints: [
618
+ -1,
619
+ 0.01798620996209156,
620
+ 0.01798620996209156,
621
+ 0.01798620996209156,
622
+ -0.8666666666666667,
623
+ 0.030275691986950463,
624
+ 0.030275691986950463,
625
+ 0.030275691986950463,
626
+ -0.7333333333333334,
627
+ 0.05053016223541345,
628
+ 0.05053016223541345,
629
+ 0.05053016223541345,
630
+ -0.6,
631
+ 0.08317269649392238,
632
+ 0.08317269649392238,
633
+ 0.08317269649392238,
634
+ -0.4666666666666667,
635
+ 0.13392788832407365,
636
+ 0.13392788832407365,
637
+ 0.13392788832407365,
638
+ -0.33333333333333337,
639
+ 0.2086085273260449,
640
+ 0.2086085273260449,
641
+ 0.2086085273260449,
642
+ -0.19999999999999996,
643
+ 0.31002551887238755,
644
+ 0.31002551887238755,
645
+ 0.31002551887238755,
646
+ -0.06666666666666665,
647
+ 0.4337256058045608,
648
+ 0.4337256058045608,
649
+ 0.4337256058045608,
650
+ 0.06666666666666665,
651
+ 0.5662743941954392,
652
+ 0.5662743941954392,
653
+ 0.5662743941954392,
654
+ 0.19999999999999996,
655
+ 0.6899744811276125,
656
+ 0.6899744811276125,
657
+ 0.6899744811276125,
658
+ 0.33333333333333326,
659
+ 0.791391472673955,
660
+ 0.791391472673955,
661
+ 0.791391472673955,
662
+ 0.46666666666666656,
663
+ 0.8660721116759263,
664
+ 0.8660721116759263,
665
+ 0.8660721116759263,
666
+ 0.6000000000000001,
667
+ 0.9168273035060777,
668
+ 0.9168273035060777,
669
+ 0.9168273035060777,
670
+ 0.7333333333333334,
671
+ 0.9494698377645865,
672
+ 0.9494698377645865,
673
+ 0.9494698377645865,
674
+ 0.8666666666666667,
675
+ 0.9697243080130495,
676
+ 0.9697243080130495,
677
+ 0.9697243080130495,
678
+ 1,
679
+ 0.9820137900379085,
680
+ 0.9820137900379085,
681
+ 0.9820137900379085
682
+ ]
683
+ },
684
+ {
685
+ ColorSpace: "RGB",
686
+ Name: "Inverted-Grayscale",
687
+ NanColor: [
688
+ 1,
689
+ 0,
690
+ 0
691
+ ],
692
+ RGBPoints: [
693
+ 0,
694
+ 1,
695
+ 1,
696
+ 1,
697
+ 1,
698
+ 0,
699
+ 0,
700
+ 0
701
+ ]
702
+ },
703
+ {
704
+ ColorSpace: "RGB",
705
+ Name: "Inverted-Grayscale-DICOM-sigmoid",
706
+ Notes: "This is a 16 point sample of a sigmoid inverted-grayscale colormap described in the DICOM standard. See equation C.11-1 in section C.11.2",
707
+ BelowRangeColor: [
708
+ 1,
709
+ 1,
710
+ 1
711
+ ],
712
+ AboveRangeColor: [
713
+ 0,
714
+ 0,
715
+ 0
716
+ ],
717
+ NanColor: [
718
+ 1,
719
+ 0,
720
+ 0
721
+ ],
722
+ RGBPoints: [
723
+ -1,
724
+ 0.9820137900379085,
725
+ 0.9820137900379085,
726
+ 0.9820137900379085,
727
+ -0.8666666666666667,
728
+ 0.9697243080130495,
729
+ 0.9697243080130495,
730
+ 0.9697243080130495,
731
+ -0.7333333333333334,
732
+ 0.9494698377645866,
733
+ 0.9494698377645866,
734
+ 0.9494698377645866,
735
+ -0.6,
736
+ 0.9168273035060777,
737
+ 0.9168273035060777,
738
+ 0.9168273035060777,
739
+ -0.4666666666666667,
740
+ 0.8660721116759263,
741
+ 0.8660721116759263,
742
+ 0.8660721116759263,
743
+ -0.33333333333333337,
744
+ 0.791391472673955,
745
+ 0.791391472673955,
746
+ 0.791391472673955,
747
+ -0.19999999999999996,
748
+ 0.6899744811276125,
749
+ 0.6899744811276125,
750
+ 0.6899744811276125,
751
+ -0.06666666666666665,
752
+ 0.5662743941954391,
753
+ 0.5662743941954391,
754
+ 0.5662743941954391,
755
+ 0.06666666666666665,
756
+ 0.43372560580456077,
757
+ 0.43372560580456077,
758
+ 0.43372560580456077,
759
+ 0.19999999999999996,
760
+ 0.3100255188723875,
761
+ 0.3100255188723875,
762
+ 0.3100255188723875,
763
+ 0.33333333333333326,
764
+ 0.20860852732604496,
765
+ 0.20860852732604496,
766
+ 0.20860852732604496,
767
+ 0.46666666666666656,
768
+ 0.13392788832407365,
769
+ 0.13392788832407365,
770
+ 0.13392788832407365,
771
+ 0.6000000000000001,
772
+ 0.08317269649392234,
773
+ 0.08317269649392234,
774
+ 0.08317269649392234,
775
+ 0.7333333333333334,
776
+ 0.05053016223541351,
777
+ 0.05053016223541351,
778
+ 0.05053016223541351,
779
+ 0.8666666666666667,
780
+ 0.03027569198695046,
781
+ 0.03027569198695046,
782
+ 0.03027569198695046,
783
+ 1,
784
+ 0.01798620996209155,
785
+ 0.01798620996209155,
786
+ 0.01798620996209155
787
+ ]
788
+ },
598
789
  {
599
790
  ColorSpace: "RGB",
600
791
  Name: "BkRd",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "34.15.5",
3
+ "version": "34.16.1",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",