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: "P", type: "Free", pos: [ 1.0769230769230769, -4.0, -0.9615384615384615 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "F", type: "Free", pos: [ 4.0, 0.5217391304347826, -0.6211180124223602 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "a", type: "Through", pos: [ 0.13333333333333333, -4.0, -2.5013333333333336 ], color: [ 0.4666667, 0.0, 0.7176471 ], args: [ "F" ], size: 2 }, 
		{ name: "b", type: "Parallel", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "P" ] }, 
		{ name: "P'", type: "PointOnLine", pos: [ -3.360659614059978, -4.0, -0.9262971758730942 ], color: [ 1.0, 0.0, 0.0 ], args: [ "b" ], labeled: true }, 
		{ name: "B", type: "Free", pos: [ -0.22346368715083803, -4.0, -0.5586592178770949 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "C", type: "Free", pos: [ 1.6999999999999997, -4.0, 1.2499999999999998 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "A", type: "Free", pos: [ 4.0, 1.117117117117117, 0.9009009009009008 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "e", type: "Parallel", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "B" ] }, 
		{ name: "f", type: "Parallel", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "A" ] }, 
		{ name: "g", type: "Parallel", color: [ 0.5019608, 0.5019608, 0.5019608 ], args: [ "a", "C" ] }, 
		{ name: "Poly0", type: "Poly", color: [ 0.0, 0.0, 0.0 ], args: [ "A", "B", "C" ] }, 
		{ name: "p", type: "Segment", color: [ 1.0, 0.0, 0.0 ], args: [ "P", "P'" ], size: 2, arrowshape: "jet", arrowsides: "==>", arrowsize: 1.6, arrowposition: 1.0 }, 
		{ name: "c", type: "Join", color: [ 0.0, 0.0, 1.0 ], args: [ "A", "P" ] }, 
		{ name: "d", type: "Join", color: [ 0.0, 1.0, 1.0 ],...