@idetik/core 0.10.1 → 0.11.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.
package/dist/index.d.ts CHANGED
@@ -866,29 +866,36 @@ type VolumeLayerProps = {
866
866
  source: ChunkSource;
867
867
  sliceCoords: SliceCoordinates;
868
868
  policy: ImageSourcePolicy;
869
+ channelProps?: ChannelProps[];
869
870
  };
870
- declare class VolumeLayer extends Layer {
871
+ declare class VolumeLayer extends Layer implements ChannelsEnabled {
871
872
  readonly type = "VolumeLayer";
872
873
  private readonly source_;
873
874
  private readonly sliceCoords_;
874
875
  private readonly currentChunks_;
875
876
  private readonly pool_;
877
+ private readonly initialChannelProps_?;
878
+ private readonly channelChangeCallbacks_;
876
879
  private sourcePolicy_;
877
880
  private chunkStoreView_?;
881
+ private channelProps_?;
878
882
  private lastLoadedTime_;
879
883
  private interactiveStepSizeScale_;
880
884
  private debugShowWireframes_;
881
885
  debugShowDegenerateRays: boolean;
882
- color: vec3;
883
886
  relativeStepSize: number;
884
- maxIntensity: number;
885
887
  opacityMultiplier: number;
886
888
  earlyTerminationAlpha: number;
887
889
  get debugShowWireframes(): boolean;
888
890
  set debugShowWireframes(value: boolean);
889
891
  set sourcePolicy(newPolicy: ImageSourcePolicy);
892
+ setChannelProps(channelProps: ChannelProps[]): void;
893
+ get channelProps(): ChannelProps[] | undefined;
894
+ resetChannelProps(): void;
895
+ addChannelChangeCallback(callback: () => void): void;
896
+ removeChannelChangeCallback(callback: () => void): void;
890
897
  private createVolume;
891
- constructor({ source, sliceCoords, policy }: VolumeLayerProps);
898
+ constructor({ source, sliceCoords, policy, channelProps }: VolumeLayerProps);
892
899
  private getVolumeForChunk;
893
900
  onAttached(context: IdetikContext): Promise<void>;
894
901
  onDetached(_context: IdetikContext): void;