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: [ -1.0169491525423728, -4.0, 1.6949152542372883 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "B", type: "Free", pos: [ 4.0, -1.0, 0.641025641025641 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "a", type: "Segment", color: [ 0.0, 0.0, 1.0 ], args: [ "A", "B" ], labeled: true, size: 2, arrowshape: "jet", arrowsides: "==>", arrowsize: 1.6, arrowposition: 1.0 }, 
		{ name: "C", type: "Free", pos: [ 4.0, 3.52112676056338, 0.704225352112676 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "b", type: "Segment", color: [ 0.0, 0.0, 1.0 ], args: [ "B", "C" ], labeled: true, size: 2, arrowshape: "jet", arrowsides: "==>", arrowsize: 1.6, arrowposition: 1.0 }, 
		{ name: "D", type: "Free", pos: [ -0.6171428571428572, -4.0, -0.5714285714285714 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "c", type: "Segment", color: [ 0.0, 0.0, 1.0 ], args: [ "C", "D" ], labeled: true, size: 2, arrowshape: "jet", arrowsides: "==>", arrowsize: 1.6, arrowposition: 1.0 }, 
		{ name: "Ma", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "A", "B" ], labeled: true }, 
		{ name: "Mc", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "D", "C" ], labeled: true }, 
		{ name: "d", type: "Join", color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "A", "C" ], alpha: 0.5384615384615384, clip: "inci", dashtype: "dashed" }, 
		{ name: "e", type: "Join", color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "D", "B" ], alpha: 0.5384615384615384, clip: "inci", dashtype: "dashed" }, 
		{ name: "h", type: "Segment", color: [ 0.0, 0.0, 0.0 ], args: [ "A", "D" ], alpha: 0.2564102564102564 }, 
		{ name: "Md", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "D", "A" ], labeled: true }, 
		{ name: "Mb",...