initial code

This commit is contained in:
Preet Shihn
2020-05-26 17:04:38 -07:00
parent a2e4cd3a5d
commit 6cec7bf0e7
9 changed files with 535 additions and 0 deletions

14
src/keyframes.ts Normal file
View File

@@ -0,0 +1,14 @@
export function ensureKeyframes() {
if (!(window as any).__rough_notation_keyframe_styles) {
const style = (window as any).__rough_notation_keyframe_styles = document.createElement('style');
style.textContent = `
@keyframes rough-notation-dash {
to {
stroke-dashoffset: 0;
}
}
`;
console.log('keyframe added');
document.head.appendChild(style);
}
}