-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Switch to ref directive to target canvas element - Use built-in rAF timing - Fix slow frametime rejection
- Loading branch information
Showing
2 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
sites/fast-website/src/app/components/background-design/background-design.template.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { html } from "@microsoft/fast-element"; | ||
import { html, ref } from "@microsoft/fast-element"; | ||
import { BackgroundDesign } from "./background-design"; | ||
|
||
export const BackgroundDesignTemplate = html<BackgroundDesign>` | ||
<template> | ||
<div class="background-image"> | ||
<canvas id="wave-canvas"></canvas> | ||
<canvas ${ref("canvas")}></canvas> | ||
</div> | ||
</template> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters