Skip to content

Commit

Permalink
replaced Color class with string (microsoft#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 authored Aug 22, 2023
1 parent 1480895 commit b83b33a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { IDataset, IVisionListItem } from "@responsible-ai/core-ui";
import { localization } from "@responsible-ai/localization";
import { CanvasTools } from "vott-ct";
import { Editor } from "vott-ct/lib/js/CanvasTools/CanvasTools.Editor";
import { Color } from "vott-ct/lib/js/CanvasTools/Core/Colors/Color";
import { RegionData } from "vott-ct/lib/js/CanvasTools/Core/RegionData";

export interface IFlyoutProps {
Expand Down Expand Up @@ -83,7 +82,7 @@ export function drawBox(
);

// Initializing bounding box tag
const predTag = new CanvasTools.Core.Tag(annotation, new Color(colorCode));
const predTag = new CanvasTools.Core.Tag(annotation, colorCode);
const predTagDesc = new CanvasTools.Core.TagsDescriptor([predTag]);

// Drawing bounding box with vott
Expand Down

0 comments on commit b83b33a

Please sign in to comment.