Setel gaya html gaya stroke

    public setStrokeStyle(color: string, stroke: number = 1) {
        this.context.strokeStyle = color
        this.context.lineWidth = stroke
    }
Himanshu Jangid