Skip to content

Commit

Permalink
Merge pull request #36 from mpds-io/projections
Browse files Browse the repository at this point in the history
fix cube
  • Loading branch information
blokhin authored Sep 1, 2024
2 parents bdb6bcc + 3796bb3 commit 08de208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot/cube/cube.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace $.$$ {
@ $mol_mem
heatmap_diif() {
const jsons = this.multi_jsons() as typeof $mpds_visavis_plot_cube_json.Value[]
if( jsons.length == 2 ) {
if( jsons?.length == 2 ) {
return jsons.every( json => json.payload.points.v.some(val => Math.floor(val) !== val) )
}
return false
Expand Down Expand Up @@ -247,7 +247,7 @@ namespace $.$$ {
let scatter = intersects

if( indexes.length == 1 ) {

const index = indexes[ 0 ]
scatter = no_intersects.get( index ) ?? new_scatter( this.marker( index ) )
no_intersects.set( index, scatter )
Expand Down

0 comments on commit 08de208

Please sign in to comment.