Skip to content

Commit 693cbb6

Browse files
Release v.1.2.1 (#669)
* Update * Fix for broken linking when starting drawing edge from target port (#666) * Fix for broken linking when starting drawing edge from target port * Changelog update * Add Templates section with Org Chart starter kit (#667) * Add Templates section with Org Chart starter kit * update changelog * undo readme changes * Update readme * Prepare to release 1.2.1 (#668) --------- Co-authored-by: Łukasz Jaźwa <lukasz.jazwa@synergycodes.com> Co-authored-by: lukasz-jazwa <70771062+lukasz-jazwa@users.noreply.github.com>
2 parents 65a2ca1 + 3ce53a5 commit 693cbb6

19 files changed

Lines changed: 159 additions & 68 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.2.1] - 2026-04-21
11+
12+
### Added
13+
14+
- New [Templates](/docs/templates/) section — we're excited to introduce a dedicated space for production-grade starter kits curated and built by the ngDiagram team. Kicking it off with an interactive [Org Chart](https://github.com/synergycodes/ng-diagram-orgchart) starter kit featuring drag-and-drop reordering, expand/collapse subtrees, sidebar node editing, dynamic layouts, dark/light theme, minimap, and automatic tree layout powered by ELK.js. Clone it, explore the code, and use it as a launchpad for your own app! 🚀 ([#667](https://github.com/synergycodes/ng-diagram/pull/667))
15+
16+
### Fixed
17+
18+
- Fixed linking state not being cleared when edge drawing fails before creating a temporary edge (e.g., starting from a target port), which permanently blocked all subsequent edge drawing ([#666](https://github.com/synergycodes/ng-diagram/pull/666))
19+
1020
## [1.2.0] - 2026-04-20
1121

1222
### Added
@@ -216,7 +226,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
216226

217227
Initial tagged release.
218228

219-
[unreleased]: https://github.com/synergycodes/ng-diagram/compare/v1.2.0...HEAD
229+
[unreleased]: https://github.com/synergycodes/ng-diagram/compare/v1.2.1...HEAD
230+
[1.2.1]: https://github.com/synergycodes/ng-diagram/compare/v1.2.0...v1.2.1
220231
[1.2.0]: https://github.com/synergycodes/ng-diagram/compare/v1.1.2...v1.2.0
221232
[1.1.2]: https://github.com/synergycodes/ng-diagram/compare/v1.1.1...v1.1.2
222233
[1.1.1]: https://github.com/synergycodes/ng-diagram/compare/v1.1.0...v1.1.1

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2025 Synergia Pro Sp. z o.o.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,20 @@ With ng-diagram, you can create:
3030
- **Circuit Diagrams**: Electronic schematics and technical drawings
3131
- **Custom Visualizations**: Any diagram type with custom node and edge templates
3232

33+
See our [Templates](#-templates) for production-ready examples you can fork and customize.
34+
3335
## 🎮 Try the Demo
3436

3537
See ng-diagram in action: **[Live Demo](https://synergycodes.github.io/ng-diagram-demo/)** | **[Source Code](https://github.com/synergycodes/ng-diagram-demo)**
3638

39+
## 🧩 Templates
40+
41+
Production-ready starter kits built with ng-diagram. Fork, customize, ship.
42+
43+
| Template | Description | Demo | Source |
44+
| ------------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------- |
45+
| **Org Chart** | Interactive organizational chart with drag-and-drop reordering, expand/collapse, ELK.js layout, dark/light theme, minimap | [Live Demo](https://synergycodes.github.io/ng-diagram-orgchart/) | [Source](https://github.com/synergycodes/ng-diagram-orgchart) |
46+
3747
## 🚀 Quick Start
3848

3949
### Installation
@@ -226,6 +236,7 @@ This project is licensed under the Apache 2.0 License - see the [LICENSE](https:
226236
- **Documentation**: [https://www.ngdiagram.dev/docs](https://www.ngdiagram.dev/docs)
227237
- **GitHub**: [https://github.com/synergycodes/ng-diagram](https://github.com/synergycodes/ng-diagram)
228238
- **NPM**: [https://www.npmjs.com/package/ng-diagram](https://www.npmjs.com/package/ng-diagram)
239+
- **MCP Server**: [@ng-diagram/mcp](https://www.npmjs.com/package/@ng-diagram/mcp) - let AI assistants search ng-diagram docs and API
229240
- **Website**: [https://www.ngdiagram.dev](https://www.ngdiagram.dev)
230241

231242
## 🆘 Support

apps/docs/astro.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import starlightAutoSidebar from 'starlight-auto-sidebar';
55
import starlightTypeDoc from 'starlight-typedoc';
66

77
import angular from '@analogjs/astro-angular';
8-
import umami from '@yeskunall/astro-umami';
98
import tailwindcss from '@tailwindcss/vite';
9+
import umami from '@yeskunall/astro-umami';
1010

1111
const UMAMI_WEBSITE_ID = process.env.UMAMI_WEBSITE_ID || '';
1212

@@ -80,11 +80,11 @@ export default defineConfig({
8080
autogenerate: { directory: 'examples' },
8181
collapsed: true,
8282
},
83-
// TODO: Enable this section after deploying yjs demo app
84-
// {
85-
// label: 'Demos',
86-
// link: '/demos/',
87-
// },
83+
{
84+
label: 'Templates',
85+
link: '/templates/',
86+
badge: { text: 'New', variant: 'tip' },
87+
},
8888
{
8989
label: 'API',
9090
collapsed: true,
-83 KB
Binary file not shown.
191 KB
Loading

apps/docs/src/components/content-tile/content-tile.astro

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,32 @@ export type Props = {
77
image: string;
88
imageAlt?: string;
99
openInNewTab?: boolean;
10+
codeHref?: string;
1011
}
1112
1213
export type ContentTile = Omit<Props, 'openInNewTab' | 'navigationTitle'>;
1314
14-
const { title, description, href, navigationTitle, image, imageAlt = title, openInNewTab = false } = Astro.props;
15+
const { title, description, href, navigationTitle, image, imageAlt = title, openInNewTab = false, codeHref } = Astro.props;
1516
const targetAttr = openInNewTab ? '_blank' : undefined;
1617
const relAttr = openInNewTab ? 'noopener noreferrer' : undefined;
1718
---
1819

19-
<a href={href} class="content-tile" target={targetAttr} rel={relAttr}>
20+
<article class="content-tile">
2021
<div class="content-tile-image">
2122
<img src={image} alt={imageAlt} />
2223
</div>
2324
<div class="content-tile-content">
2425
<h4>{title}</h4>
2526
<p class="content-tile-description">{description}</p>
26-
<span class="content-tile-link">
27-
{`${navigationTitle} →`}
28-
</span>
27+
<div class="content-tile-actions">
28+
<a href={href} class="content-tile-link" target={targetAttr} rel={relAttr}>
29+
{`${navigationTitle} →`}
30+
</a>
31+
{codeHref && (
32+
<a href={codeHref} class="content-tile-link" target={targetAttr} rel={relAttr}>
33+
View code →
34+
</a>
35+
)}
36+
</div>
2937
</div>
30-
</a>
38+
</article>

apps/docs/src/content/docs/changelog.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
## [Unreleased]
1414

15+
## [1.2.1] - 2026-04-21
16+
17+
### Added
18+
19+
- New [Templates](/docs/templates/) section — we're excited to introduce a dedicated space for production-grade starter kits curated and built by the ngDiagram team. Kicking it off with an interactive [Org Chart](https://github.com/synergycodes/ng-diagram-orgchart) starter kit featuring drag-and-drop reordering, expand/collapse subtrees, sidebar node editing, dynamic layouts, dark/light theme, minimap, and automatic tree layout powered by ELK.js. Clone it, explore the code, and use it as a launchpad for your own app! 🚀 ([#667](https://github.com/synergycodes/ng-diagram/pull/667))
20+
21+
### Fixed
22+
23+
- Fixed linking state not being cleared when edge drawing fails before creating a temporary edge (e.g., starting from a target port), which permanently blocked all subsequent edge drawing ([#666](https://github.com/synergycodes/ng-diagram/pull/666))
24+
1525
## [1.2.0] - 2026-04-20
1626

1727
### Added
@@ -221,7 +231,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
221231

222232
Initial tagged release.
223233

224-
[unreleased]: https://github.com/synergycodes/ng-diagram/compare/v1.2.0...HEAD
234+
[unreleased]: https://github.com/synergycodes/ng-diagram/compare/v1.2.1...HEAD
235+
[1.2.1]: https://github.com/synergycodes/ng-diagram/compare/v1.2.0...v1.2.1
225236
[1.2.0]: https://github.com/synergycodes/ng-diagram/compare/v1.1.2...v1.2.0
226237
[1.1.2]: https://github.com/synergycodes/ng-diagram/compare/v1.1.1...v1.1.2
227238
[1.1.1]: https://github.com/synergycodes/ng-diagram/compare/v1.1.0...v1.1.1

apps/docs/src/content/docs/demos/demos.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/docs/src/content/docs/demos/index.mdx

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)