Skip to content

Commit

Permalink
Linked Time: Removed old customVisTemplate that is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHollyer committed Oct 25, 2022
1 parent d8b7a9d commit b08e2f8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
[useDarkMode]="useDarkMode"
(onViewBoxOverridden)="isViewBoxOverridden = $event"
(viewBoxChanged)="onLineChartZoom.emit($event)"
[customVisTemplate]="lineChartCustomVis"
[customChartOverlayTemplate]="lineChartCustomXAxisVis"
></line-chart>
<ng-template
Expand Down Expand Up @@ -182,45 +181,6 @@
</scalar-card-data-table>
</div>
</ng-container>
<ng-template
#lineChartCustomVis
let-viewExtent="viewExtent"
let-domDim="domDimension"
let-xScale="xScale"
>
<ng-container *ngIf="stepOrLinkedTimeSelection">
<div
[ngClass]="{
'out-of-selected-time': true,
start: true,
range: !!stepOrLinkedTimeSelection.end?.step
}"
[style.right]="
xScale.forward(
viewExtent.x,
[domDim.width, 0],
stepOrLinkedTimeSelection.start.step
) + 'px'
"
></div>
<div
*ngIf="stepOrLinkedTimeSelection.end?.step"
[ngClass]="{
'out-of-selected-time': true,
end: true,
range: true
}"
[style.left]="
xScale.forward(
viewExtent.x,
[0, domDim.width],
stepOrLinkedTimeSelection.end?.step
) + 'px'
"
></div>
</ng-container>
</ng-template>

<ng-template
#lineChartCustomXAxisVis
let-viewExtent="viewExtent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@
(onViewExtentChange)="onViewBoxChanged($event)"
(onViewExtentReset)="viewBoxReset()"
></line-chart-interactive-view>
<div *ngIf="customVisTemplate" class="custom-vis">
<ng-container
[ngTemplateOutlet]="customVisTemplate"
[ngTemplateOutletContext]="{
xScale: xScale,
yScale: yScale,
domDimension: domDimensions.main,
viewExtent: viewBox
}"
></ng-container>
</div>
</div>
<div class="y-axis" #yAxis>
<line-chart-axis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ export class LineChartComponent
@ViewChild('chartEl', {static: false, read: ElementRef})
private chartEl?: ElementRef<HTMLCanvasElement | SVGElement>;

/**
* Optional ngTemplate that renders on top of line chart (not axis). This
* template is rendered on top of interactive layer and can mask other
* contents. Do note that this component may not intercept pointer-events.
*/
@Input()
customVisTemplate?: TemplateRef<TemplateContext>;

@Input()
customChartOverlayTemplate?: TemplateRef<
TemplateContext & {formatter: Formatter}
Expand Down

0 comments on commit b08e2f8

Please sign in to comment.