Commit e950aba2 authored by Matus Talcik's avatar Matus Talcik
Browse files

Finish branch

parent 8c8d9fb8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -154,7 +154,6 @@ export function ChromatinViewport(props: {
    useEffect(() => {
        if (!viewport.canvas) return;

        console.log('ChromatinViewport::Rebuild');
        viewport.clearChromatin();

        for (const [configurationDatumIndex, configurationDatum] of configuration.data.entries()) {
@@ -504,7 +503,7 @@ export function ChromatinViewport(props: {
        }
        */

        setColors(newColors);
        setColors(() => newColors);
    }, [viewport, globalSelections.selections, configuration.data, configuration.sasa, data.data, configuration.chromosomes, configuration.density]);

    //~ Propagate selections to labelLayoutGenerator
+2 −1
Original line number Diff line number Diff line
@@ -402,7 +402,8 @@ export class ContinuousTube implements HighLevelStructure {
        }

        if (colors.length != 2 * (this._points.length - 1)) {
            throw new Error(`Number of colors must be '2 * (points - 1)'. Number of colors provided is ${colors.length}, expected ${(this._points.length - 1) * 2}`);
            return;
            // throw new Error(`Number of colors must be '2 * (points - 1)'. Number of colors provided is ${colors.length}, expected ${(this._points.length - 1) * 2}`);
        }

        const u8view = this.buffer.u8view;