Public
Edited
Feb 5, 2022
Importers
4 stars
Insert cell
Insert cell
pintora = function (...values) {
const src = String.raw(values[0]);

const id = "pintora" + Math.round(Math.random() * 10000);
const div = document.createElement('div')
div.id = id
const diagramContainer = div

const config = values[1]
try {
const result = PINTORA.default.renderTo(src, { container: diagramContainer, config });
return diagramContainer
} catch (ex) {
console.error(ex);
throw ex;
}
}
Insert cell
PINTORA = import("https://cdn.skypack.dev/@pintora/standalone")

Insert cell
## Some simple tests
Insert cell
pintora`
mindmap
@param layoutDirection TB
* Pintora diagrams
** UML Diagrams
*** Sequence Diagram
*** Activity Diagram
*** Component Diagram
** Non-UML Diagrams
*** Entity Relationship Diagram
*** Mind Map

${{
themeConfig: {
theme: 'dark'
}
}}
`
Insert cell
pintora`
activityDiagram
start
partition Init {
:Read config;
group #88bbf4 "Inner Process" {
:Init themes;
:Init symbols;
}
}
end
`
Insert cell
pintora`
mindmap
@config({
"core": {
"defaultFontFamily": "Serif"
}
})
* Pintora diagrams
** UML Diagrams
*** Sequence Diagram
*** Activity Diagram
`
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more