@@ -24,7 +24,7 @@ import { isIE, isRaspbian, padLeft } from 'ks-util';
2424import { AppService } from './app.service' ;
2525import * as $ from 'jquery' ;
2626
27- const SVC_NAMESPACE = 'http://www.w3.org/2000/svg' ;
27+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg' ;
2828
2929const SECOND_HAND_ANIMATION_TIME = 200 ;
3030
@@ -131,7 +131,7 @@ export class Clock {
131131 for ( let i = 0 ; i < 360 ; i += 6 ) {
132132 const x1 = center + radius * Math . cos ( Math . PI * i / 180 ) ;
133133 const y1 = center + radius * Math . sin ( Math . PI * i / 180 ) ;
134- const tickMark = document . createElementNS ( SVC_NAMESPACE , 'circle' ) ;
134+ const tickMark = document . createElementNS ( SVG_NAMESPACE , 'circle' ) ;
135135
136136 tickMark . setAttributeNS ( null , 'cx' , x1 . toString ( ) ) ;
137137 tickMark . setAttributeNS ( null , 'cy' , y1 . toString ( ) ) ;
@@ -144,7 +144,7 @@ export class Clock {
144144 const h = ( i === 270 ? 12 : ( ( i + 90 ) % 360 ) / 30 ) ;
145145 const x2 = center + textRadius * Math . cos ( Math . PI * i / 180 ) ;
146146 const y2 = center + textRadius * Math . sin ( Math . PI * i / 180 ) ;
147- const text2 = document . createElementNS ( SVC_NAMESPACE , 'text' ) ;
147+ const text2 = document . createElementNS ( SVG_NAMESPACE , 'text' ) ;
148148
149149 text2 . setAttributeNS ( null , 'x' , x2 . toString ( ) ) ;
150150 text2 . setAttributeNS ( null , 'y' , y2 . toString ( ) ) ;
@@ -155,7 +155,7 @@ export class Clock {
155155
156156 const x3 = center + constellationRadius * Math . cos ( Math . PI * ( - i - 15 ) / 180 ) ;
157157 const y3 = center + constellationRadius * Math . sin ( Math . PI * ( - i - 15 ) / 180 ) ;
158- const text3 = document . createElementNS ( SVC_NAMESPACE , 'text' ) ;
158+ const text3 = document . createElementNS ( SVG_NAMESPACE , 'text' ) ;
159159
160160 text3 . setAttributeNS ( null , 'x' , x3 . toString ( ) ) ;
161161 text3 . setAttributeNS ( null , 'y' , y3 . toString ( ) ) ;
@@ -171,8 +171,8 @@ export class Clock {
171171 planetSymbols . forEach ( ( planet , index ) => {
172172 const x = center + 10 + index * 2 ;
173173 const dy = 0.75 + ( index % 2 ) * 2 ;
174- const rect = document . createElementNS ( SVC_NAMESPACE , 'rect' ) ;
175- const text = document . createElementNS ( SVC_NAMESPACE , 'text' ) ;
174+ const rect = document . createElementNS ( SVG_NAMESPACE , 'rect' ) ;
175+ const text = document . createElementNS ( SVG_NAMESPACE , 'text' ) ;
176176
177177 rect . setAttributeNS ( null , 'x' , ( x - 0.9 ) . toString ( ) ) ;
178178 rect . setAttributeNS ( null , 'y' , ( center + dy - 2 ) . toString ( ) ) ;
0 commit comments