Platform
Resources
Pricing
Sign in
Get started
Sylvain Lesage
Software engineer at Hugging Face. Prototyping here with JS, d3, three.js.
Workspace
Fork
Published
Support / bugs
By
Sylvain Lesage
Edited
May 17, 2020
1
Support / bugs
uuid and nanoid
Iframe and Load Event
WebMWriter bug
Boom
Problem with recursion and memoization
d3-drag and d3-zoom: 'x' and 'y' fields?
Insert cell
Insert cell
keyframeStartIndex
=
webP
.
indexOf
(
'VP8 '
)
Insert cell
webP
=
window
.
atob
(
canvas
.
toDataURL
(
'image/webp'
,
1
)
.
substring
(
"data:image\/webp;base64,"
.
length
)
)
Insert cell
canvas
=
{
const
canvas
=
DOM
.
canvas
(
image
.
naturalWidth
,
image
.
naturalHeight
,
1
)
;
canvas
.
getContext
(
'2d'
)
.
drawImage
(
image
,
0
,
0
)
;
return
canvas
;
}
Insert cell
image
=
FileAttachment
(
"tmpCanvas.png"
)
.
image
(
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
keyframeStartIndex
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
webP
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
canvas
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML