Skip to content

Commit

Permalink
Add dasharray for continuous features
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDelConte committed Dec 11, 2024
1 parent b3656be commit 60c4d70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-features-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-features-viewer",
"version": "0.1.16",
"version": "0.1.17",
"license": "MIT",
"author": {
"name": "Damiano Clementel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface Continuous extends BaseFeature {
max?: number;
"stroke-width"?: number;
"stroke-color"?: string;
"stroke-dasharray"?: string;
curveType?: 'curveStep' | 'curveBasis' | 'curveLinear';
showArea?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ export class DrawService {
'fill-opacity' : feature.opacity || 1,
};

appendElementWithAttributes(container, 'path', pathAttributes);
const line = appendElementWithAttributes(container, 'path', pathAttributes);
line.style('stroke-dasharray', feature["stroke-dasharray"] || '');
}

if (feature.type === 'pin') {
Expand Down

0 comments on commit 60c4d70

Please sign in to comment.