2017-07-07 19:54:49 +03:00
|
|
|
<div class="svg-container">
|
|
|
|
|
<svg #svgRoot xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
|
|
|
|
|
[attr.viewBox]="styles.viewBox" preserveAspectRatio="xMinYMin meet" (mousedown)="mouseDown($event)">
|
|
|
|
|
<defs>
|
2017-06-22 12:07:42 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
<filter id="blurFilter" x="0" y="0" width="100%" height="100%">
|
|
|
|
|
<feGaussianBlur in="SourceGraphic" [attr.stdDeviation]="styles.blurRadius" />
|
|
|
|
|
<feComponentTransfer>
|
|
|
|
|
<feFuncA type="discrete" tableValues="1 1"/>
|
|
|
|
|
</feComponentTransfer>
|
|
|
|
|
</filter>
|
2017-06-22 12:07:42 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
<clipPath id="sliderClip">
|
|
|
|
|
<path [attr.d]="styles.clipPathStr"></path>
|
|
|
|
|
</clipPath>
|
2017-06-22 12:07:42 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
</defs>
|
|
|
|
|
<g [attr.transform]="styles.arcTranslateStr">
|
2017-06-22 12:07:42 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
<g class="toClip" clip-path="url(#sliderClip)">
|
|
|
|
|
<g class="toFilter" filter="url(#blurFilter)">
|
|
|
|
|
<path [attr.d]="arc.d" [attr.fill]="arc.color" *ngFor="let arc of styles.gradArcs"></path>
|
|
|
|
|
</g>
|
|
|
|
|
<path [attr.d]="styles.nonSelectedArc.d" [attr.fill]="styles.nonSelectedArc.color"></path>
|
2017-06-22 12:07:42 +03:00
|
|
|
</g>
|
2017-07-07 19:54:49 +03:00
|
|
|
|
|
|
|
|
<circle [attr.cx]="styles.knobPosition.x" [attr.cy]="styles.knobPosition.y" [attr.r]="pinRadius"
|
|
|
|
|
[attr.stroke-width]="1 / scaleFactor" fill="#FFFFFF" stroke="#666666"></circle>
|
2017-06-22 12:07:42 +03:00
|
|
|
</g>
|
2017-07-07 19:54:49 +03:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="temperature-bg">
|
|
|
|
|
<ng-content></ng-content>
|
|
|
|
|
</div>
|
2017-06-22 12:07:42 +03:00
|
|
|
|
2017-07-07 19:54:49 +03:00
|
|
|
<div class="power-bg" [ngClass]="{'off': off}" (click)="switchPower()">
|
|
|
|
|
<i class="ion-power"></i>
|
|
|
|
|
</div>
|