Platform
Resources
Pricing
Sign in
Get started
Borgar
"The ultimate authority on absolutely everything."
Workspace
Fork
Public
Textbox library examples
By
Borgar
Edited
Sep 19, 2020
3 stars
1
Textbox library examples
Textbox features demo
Text within a doughnut
Rendering formatted text to a canvas
Axis label linebreaking study
Textbox LaTeX syntax support
HTML syntax support
Formatting long text on SVG and canvas
Insert cell
Insert cell
Insert cell
{
const
ctx
=
DOM
.
context2d
(
width
,
height
)
;
new
Textbox
(
{
width
,
height
,
font
,
parser
:
'html'
}
)
.
render
(
text
,
ctx
)
;
return
ctx
.
canvas
;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Textbox
=
require
(
"@borgar/textbox"
)
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
font
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
width
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
text
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Textbox
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML