platine as component
This commit is contained in:
@@ -50,7 +50,7 @@ type DiscProgress = {
|
||||
progress: number
|
||||
}
|
||||
class Disc {
|
||||
public el: HTMLDivElement
|
||||
public el: HTMLElement
|
||||
|
||||
private _playbackSpeed = 1
|
||||
private _duration = 0
|
||||
@@ -92,7 +92,7 @@ class Disc {
|
||||
onLoop: (params: DiscProgress) => {}
|
||||
}
|
||||
|
||||
constructor(el: HTMLDivElement) {
|
||||
constructor(el: HTMLElement) {
|
||||
this.el = el
|
||||
|
||||
this._center = getElementCenter(this.el)
|
||||
|
||||
Reference in New Issue
Block a user