JSFiddle - React, Tailwind, and code Playground

by WernerSalomon

HTML

<script src="https://cindyjs.org/dist/v0.8.7/Cindy.js"></script>
<div id="CSCanvas"></div>

<script>
  CindyJS({ 
	scripts: "cs*", 
	defaultAppearance: { fontFamily: "sans-serif", lineSize: 1, pointSize: 5.0, textsize: 12.0 }, 
	angleUnit: "°", 
	geometry: [ 
		{ name: "A", type: "Free", pos: [ 2.866085170780696, -4.0, 0.6845273010252063 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "B", type: "Free", pos: [ 4.0, -0.13696535321349784, 0.43115668674623553 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "C", type: "Free", pos: [ 4.0, 1.2313667143271734, 0.38902722206365026 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "D", type: "Free", pos: [ -0.36254753329425876, -4.0, -1.3493873477916805 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "Ma", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "A", "B" ], labeled: true }, 
		{ name: "Mb", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "B", "C" ], labeled: true }, 
		{ name: "Mc", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "C", "D" ], labeled: true }, 
		{ name: "Md", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "D", "A" ], labeled: true }, 
		{ name: "Poly0", type: "Poly", color: [ 0.0, 0.0, 0.0 ], args: [ "A", "B", "C", "D" ] }, 
		{ name: "f", type: "Join", color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "D", "B" ], size: 2 }, 
		{ name: "e", type: "Join", color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "A", "C" ], size: 2 }, 
		{ name: "mac", type: "Join", color: [ 0.7568628, 0.0, 0.0 ], args: [ "Mc", "Ma" ], size: 2, dashtype: "tightdash" }, 
		{ name: "mbd", type: "Join", color: [ 0.7568628, 0.0, 0.0 ], args: [ "Md", "Mb" ], size: 2, dashtype: "tightdash" }, 
		{ name: "M", type: "Meet", color: [ 1.0, 0.0, 0.0 ], args: [ "mac", "mbd" ], labeled: true, size: 6.0 }, 
		{ name: "S", type: "Meet", color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "f", "e" ], labeled: true, size: 6.0 }, 
		{ name: "E", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "D", "B" ], size: 2.0 }, 
		{...