Skip to content


Browse files Browse the repository at this point in the history
feat(still-image): uses the color of the color property for the line …
…color if a color property for the region exists (#580)
  • Loading branch information
mdelez committed Nov 10, 2021
1 parent d19e353 commit 7680353
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -13,10 +13,11 @@ import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
import {
Constants, CreateColorValue, CreateGeomValue, CreateLinkValue,
CreateResource, CreateTextValueAsString, KnoraApiConnection,
Point2D, ReadFileValue,
Point2D, ReadColorValue, ReadFileValue,
} from '@dasch-swiss/dsp-js';
import { DspApiConnectionToken } from 'src/app/main/declarations/dsp-api-tokens';
Expand Down Expand Up @@ -269,6 +270,14 @@ export class StillImageComponent implements OnChanges, OnDestroy {
for (const geom of geometries) {

const geometry = geom.geometry;

const colorValues: ReadColorValue[] =[Constants.KnoraApiV2 + Constants.HashDelimiter + 'hasColor'] as ReadColorValue[];

// if the geometry has a color property, use that value as the color for the line
if(colorValues && colorValues.length){
geometry.lineColor = colorValues[0].color;

this._createSVGOverlay(, geometry, aspectRatio, imageXOffset, geom.region.label);

Expand Down

0 comments on commit 7680353

Please sign in to comment.