mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-24 10:38:11 +08:00
Checkpoint
This commit is contained in:
@@ -56,15 +56,15 @@ export default function drawSpatialImageRegl(regl) {
|
||||
a_position: [
|
||||
0,
|
||||
0,
|
||||
0 + 2000,
|
||||
0 + 1921,
|
||||
0,
|
||||
0,
|
||||
0 + 2000,
|
||||
0,
|
||||
0 + 2000,
|
||||
0 + 2000,
|
||||
0 + 1921,
|
||||
0,
|
||||
0 + 2000,
|
||||
0 + 1921,
|
||||
0 + 2000,
|
||||
],
|
||||
},
|
||||
@@ -73,7 +73,8 @@ export default function drawSpatialImageRegl(regl) {
|
||||
projView: regl.prop("projView"),
|
||||
u_image: regl.prop("spatialImageAsTexture"),
|
||||
color: [1, 0, 0, 1],
|
||||
u_resolution: [2000, 2000],
|
||||
u_resolution: [1921, 2000],
|
||||
// translate:
|
||||
},
|
||||
|
||||
count: 6,
|
||||
|
||||
@@ -122,6 +122,7 @@ class Graph extends React.Component {
|
||||
positions[2 * i] = p[0];
|
||||
positions[2 * i + 1] = p[1];
|
||||
}
|
||||
console.log({ transformed: positions });
|
||||
return positions;
|
||||
});
|
||||
|
||||
@@ -759,6 +760,7 @@ class Graph extends React.Component {
|
||||
const { positions, colors, flags, height, width } = asyncProps;
|
||||
this.cachedAsyncProps = asyncProps;
|
||||
const { pointBuffer, colorBuffer, flagBuffer } = this.state;
|
||||
console.log({ pos2: positions });
|
||||
let needToRenderCanvas = false;
|
||||
|
||||
if (height !== prevAsyncProps?.height || width !== prevAsyncProps?.width) {
|
||||
|
||||
Reference in New Issue
Block a user