Constructors
constructor
- new RuntimeWatermark(game: RuntimeGame, authorUsernames: string[], authorIds: string[], watermarkData: WatermarkData): RuntimeWatermark
Parameters
authorUsernames: string[]
authorIds: string[]
watermarkData: WatermarkData
Methods
Private addWatermarkToGameContainer
- addWatermarkToGameContainer(container: HTMLElement): void
Private createDivContainer
- createDivContainer(): HTMLDivElement
Private createLinkElement
- createLinkElement(): HTMLAnchorElement
Returns HTMLAnchorElement
Private createMadeWithTextElement
- createMadeWithTextElement(): void
Private createUsernameTextElement
- createUsernameTextElement(): void
Private generateSVGLogo
- generateSVGLogo(height: number): void
Private onResizeGameContainer
- onResizeGameContainer(height: number): void
Private updateBackgroundHeight
- updateBackgroundHeight(height: number): void
Private updateElementMargins
- updateElementMargins(element: HTMLElement): void
Private updateFontSize
- updateFontSize(height: number): void
Private updateLogoSize
- updateLogoSize(height: number): void
Private updateMargin
- updateMargin(height: number): void