<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Canvas on Andy Bulka</title>
		<link>https://abulka.github.io/tags/canvas/</link>
		<description>Recent content in Canvas on Andy Bulka</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Wed, 18 Nov 2026 22:18:36 +1100</lastBuildDate>
		
			<atom:link href="https://abulka.github.io/tags/canvas/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>wxdiagram</title>
				<link>https://abulka.github.io/projects/libraries/wxdiagram/</link>
				<pubDate>Wed, 18 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://abulka.github.io/projects/libraries/wxdiagram/</guid>
				<description>&lt;h2 id=&#34;wxdiagram&#34;&gt;wxdiagram&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;A zoomable shape-and-connector canvas for wxPython.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;wxdiagram&lt;/code&gt; gives a wxPython application a modern diagram canvas without the&#xA;ceremony of &lt;code&gt;wx.lib.ogl&lt;/code&gt;: shapes, edges, selection, zoom/pan, layout hooks and&#xA;JSON persistence in a small MIT-licensed package.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://abulka.github.io/projects/libraries/images/wxdiagram-shapes-editor.png&#34; alt=&#34;The wxdiagram shape editor demo&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;The shape editor demo: properties panel, shape tools, connection dots, grouping and themes.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://pypi.org/project/wxdiagram/&#34;&gt;PyPI&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/abulka/wxdiagram&#34;&gt;GitHub repository&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://abulka.github.io/wxdiagram/&#34;&gt;Documentation&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://abulka.github.io/wxdiagram/migration-from-wx-lib-ogl/&#34;&gt;Migration guide from wx.lib.ogl&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-it-does&#34;&gt;What it does&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Canvas with real zoom/pan&lt;/strong&gt; — &lt;code&gt;ZoomIn&lt;/code&gt;, &lt;code&gt;ZoomOut&lt;/code&gt;, &lt;code&gt;ZoomTo&lt;/code&gt;, &lt;code&gt;ZoomReset&lt;/code&gt;,&#xA;&lt;code&gt;ZoomToFit&lt;/code&gt; and &lt;code&gt;CenterOn&lt;/code&gt;; Ctrl+wheel and macOS pinch zoom anchored at the&#xA;pointer; drag empty canvas to pan; the scrollable area tracks the diagram.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Selection and editing&lt;/strong&gt; — marquee select, Shift/Ctrl add, Esc clear,&#xA;arrow-key nudge, duplicate, z-order, undo/redo, resize handles, grid/snap and&#xA;magnetic alignment guides.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Connectors&lt;/strong&gt; — attached lines clipped to shape perimeters, so they follow&#xA;the shapes and meet the facing sides. Arrowheads, splines, dashed pens, bend&#xA;points, editable labels and per-edge routing modes (&lt;code&gt;straight&lt;/code&gt;, &lt;code&gt;auto&lt;/code&gt;,&#xA;&lt;code&gt;avoid&lt;/code&gt;, &lt;code&gt;curved&lt;/code&gt;, &lt;code&gt;orthogonal&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Shapes&lt;/strong&gt; — rectangles, ellipses, circles, polygons, points, lines,&#xA;resizable bitmaps, divided UML-style shapes, labelled blocks, composites with&#xA;layout constraints, text labels and captions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Layout and routing hooks&lt;/strong&gt; — an optional spring layout, crossing-aware&#xA;refinement, and injectable edge routers. Layout is pluggable, so an&#xA;application can run its own algorithm and hand positions to the canvas.&#xA;&lt;code&gt;wx.lib.ogl&lt;/code&gt; has nothing comparable.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Export and persistence&lt;/strong&gt; — render the diagram to PNG at any scale with&#xA;&lt;code&gt;ShapeCanvas.ExportPng&lt;/code&gt;, and save/load versioned JSON (no pickle).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Headless-friendly&lt;/strong&gt; — shapes and the diagram model work without showing a&#xA;window.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;quickstart&#34;&gt;Quickstart&lt;/h2&gt;&#xA;&lt;p&gt;Requires Python 3.10+ and wxPython 4.2+.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
