You can just declare a variable in your TS file based on the window ?
export class MyComponent { diameter = window.clientWidth / 10; }