~/talk

Making SVG and Canvas Graphics in Angular

Talkat NG-BE 2016 · 2016-12-08..12-09· [angular, web-platform]
slides:none on file

Explains concrete rules for using SVG in Angular — use the SVG namespace, bind attributes via setAttribute not DOM properties, and prefer attribute selectors for components — and when canvas is better: drawing 50,000 points performs fine on canvas but would overload SVG. Shows canvas components that draw on lifecycle hooks and run a frame loop with requestAnimationFrame outside NgZone. Mentions CSS/ng-animate limits for SVG morphs and using GreenSock as a pragmatic JS fallback.

AI-written summary · about

  1. 0:00Intro
  2. 2:17SVG: Markup For Shapes
  3. 5:23SVG & Data Binding
  4. 6:58Extracting SVG Components
  5. 7:50Rethinking Component Selectors
  6. 9:08Canvas: Imperative Pixel Drawing
  7. 9:30Canvas: Immediate Mode
  8. 11:32Canvas Components
  9. 12:20Drawing Changing Data
  10. 13:45Animating SVG With SMIL
  11. 14:18Animating SVG with CSS
  12. 14:45CSS Animations
  13. 15:58Angular Animations
  14. 16:21Shape Morphing
  15. 18:18Checklist: SVG Animations
  16. 19:25requestAnimation Frame Loop
  17. 20:28Canvas Animation
  18. 22:28Escape From The Angular Zone
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.