
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@webwriter/flowchart
Advanced tools
Create programming flowcharts with interactive tasks. Use standardized Elements such as loops and Branchings.
@webwriter/flowchart@2.0.9)License: MIT | Version: 2.0.9
Create programming flowcharts with interactive tasks. Use standardized Elements such as loops and Branchings.
Snippets are examples and templates using the package's widgets.
| Name | Import Path |
|---|---|
| Erklaerung | @webwriter/flowchart/snippets/Erklaerung.html |
| For Schleife | @webwriter/flowchart/snippets/For-Schleife.html |
| If Else | @webwriter/flowchart/snippets/If-Else.html |
| Switch | @webwriter/flowchart/snippets/Switch.html |
| Kontextbeispiel | @webwriter/flowchart/snippets/Kontextbeispiel.html |
FlowchartWidget (<webwriter-flowchart>)Use with a CDN (e.g. jsdelivr):
<link href="https://cdn.jsdelivr.net/npm/@webwriter/flowchart/widgets/webwriter-flowchart.css" rel="stylesheet">
<script type="module" src="https://cdn.jsdelivr.net/npm/@webwriter/flowchart/widgets/webwriter-flowchart.js"></script>
<webwriter-flowchart></webwriter-flowchart>
Or use with a bundler (e.g. Vite):
npm install @webwriter/flowchart
<link href="@webwriter/flowchart/widgets/webwriter-flowchart.css" rel="stylesheet">
<script type="module" src="@webwriter/flowchart/widgets/webwriter-flowchart.js"></script>
<webwriter-flowchart></webwriter-flowchart>
| Name (Attribute Name) | Type | Description | Default | Reflects |
|---|---|---|---|---|
localize | - | - | LOCALIZE | âś— |
graphNodes (graphNodes) | GraphNode[] | Current list of graph nodes (programmatic API). | [] | âś“ |
arrows (arrows) | Arrow[] | Current list of arrows between nodes (programmatic API). | [] | âś— |
getGraphNodes | - | Get the current nodes. | - | âś— |
getArrows | - | Get the current arrows. | - | âś— |
taskList (taskList) | ItemList[] | Tasks shown in the task menu. | [] | âś“ |
helpList (helpList) | ItemList[] | Hints shown in the help menu. | [] | âś“ |
height (height) | number | Canvas height (px). | 400 | âś“ |
zoomLevel (zoomLevel) | number | Current zoom percentage (50–200). | 100 | ✓ |
canvasOffsetX (canvasOffsetX) | number | Horizontal pan offset (world units). | 0 | âś“ |
canvasOffsetY (canvasOffsetY) | number | Vertical pan offset (world units). | 0 | âś“ |
allowStudentEdit (allowStudentEdit) | boolean | Allow interactive editing (adding/dragging/deleting). | false | âś“ |
allowStudentPan (allowStudentPan) | boolean | Allow panning/zooming interactions. | false | âś“ |
font (font) | string | Font family used for labels. | 'Courier New' | âś“ |
fontSize (fontSize) | number | Font size used for labels. | 16 | âś“ |
theme (theme) | string | Color theme name. | 'standard' | âś“ |
fullscreen (fullscreen) | boolean | Whether the widget is currently in fullscreen mode. | false | âś— |
getSelectedSequence | - | Get the currently selected path sequence. | - | âś— |
getActiveSequenceButton | - | Get the active sequence button. | - | âś— |
setActiveSequenceButton | - | Set the active sequence button. | - | âś— |
isSelectingSequence | - | Set path-selection mode. | - | âś— |
solutionMessage (solutionMessage) | string | Message shown in the solution prompt. | '' | âś— |
showSolution (showSolution) | boolean | Whether the solution prompt is visible. | false | âś— |
setSelectedSequence | - | Programmatically set the selected path sequence. Overwrites the internal selectedSequence with the provided ordered descriptors. | - | âś— |
Fields including properties and attributes define the current state of the widget and offer customization options.
| Name | Description | Parameters |
|---|---|---|
isEditable | Returns whether the widget is currently in an editable state based on the contenteditable attribute. | - |
selectSequence | Toggle path-selection mode for solution checking. When turning off the mode, clears the current selected sequence and any selected node/arrow/rectangle, then triggers a redraw. Also toggles the active class onthe #select-button element (if present). | - |
checkSolution | Compare the currently selected path sequence with a task's expected sequence. If length and element-wise id/type match, shows a success message; otherwise shows a failure message. Uses showSolutionWithMessage() to display the result. | task: ItemList |
Methods allow programmatic access to the widget.
| Name | Description |
|---|---|
| --scaled-grid-size | Spacing between grid dots (derived from zoom). |
| --scaled-grid-dot-size | Dot radius for the background grid (derived from zoom). |
| --offset-x | Internal canvas left offset (managed by the widget). |
| --offset-y | Internal canvas top offset (managed by the widget). |
| --widget-height | Workspace height in pixels. |
Custom CSS properties offer defined customization of the widget's style.
| Name | Description |
|---|---|
| options | Styles the settings sidebar (tool menu). |
CSS parts allow freely styling internals of the widget with CSS.
| Name | Value |
|---|
The editing config defines how explorable authoring tools such as WebWriter treat the widget.
No public slots, or events.
Generated with @webwriter/build@1.9.0
FAQs
Create programming flowcharts with interactive tasks. Use standardized Elements such as loops and Branchings.
We found that @webwriter/flowchart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.