FIX: Set the color of the refe range to be the next from the active ranges
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
10a9d36f3d
commit
9805d0c518
@@ -17,6 +17,7 @@ import {
|
|||||||
headerTextColor,
|
headerTextColor,
|
||||||
outlineColor,
|
outlineColor,
|
||||||
} from "./constants";
|
} from "./constants";
|
||||||
|
import { getColor } from "../editor/util";
|
||||||
|
|
||||||
export interface CanvasSettings {
|
export interface CanvasSettings {
|
||||||
model: Model;
|
model: Model;
|
||||||
@@ -1281,7 +1282,7 @@ export default class WorksheetCanvas {
|
|||||||
activeRanges = activeRanges.concat([
|
activeRanges = activeRanges.concat([
|
||||||
{
|
{
|
||||||
...referencedRange.range,
|
...referencedRange.range,
|
||||||
color: "#343423",
|
color: getColor(activeRanges.length),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user