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: "L", type: "Free", pos: [ 0.0, -4.0, 0.8 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "S", type: "Free", pos: [ 0.0, -0.0, 4.0 ], color: [ 1.0, 0.0, 0.0 ], labeled: true }, 
		{ name: "a", type: "Join", color: [ 0.0, 0.0, 0.0 ], args: [ "S", "L" ], dashtype: "dashdot" }, 
		{ name: "C0", type: "CircleMP", color: [ 1.0, 1.0, 1.0 ], args: [ "S", "L" ], size: 0, printname: "$C_{0}$" }, 
		{ name: "F", type: "OtherIntersectionCL", color: [ 1.0, 0.0, 0.0 ], args: [ "C0", "a", "L" ], labeled: true }, 
		{ name: "b", type: "Orthogonal", color: [ 0.0, 0.0, 1.0 ], args: [ "a", "L" ], size: 2, dashtype: "dashed" }, 
		{ name: "X", type: "PointOnLine", pos: [ 4.0, -3.7313432835820883, 0.7462686567164177 ], color: [ 1.0, 0.0, 0.0 ], args: [ "b" ], labeled: true }, 
		{ name: "c", type: "Join", color: [ 0.0, 0.0, 0.0 ], args: [ "F", "X" ], size: 2, clip: "inci" }, 
		{ name: "M", type: "Mid", color: [ 1.0, 0.0, 0.0 ], args: [ "F", "X" ], labeled: true }, 
		{ name: "d", type: "Orthogonal", color: [ 0.098039225, 0.61960787, 0.30588236 ], args: [ "c", "M" ], size: 2 }, 
		{ name: "e", type: "Orthogonal", color: [ 0.0, 0.0, 1.0 ], args: [ "b", "X" ], size: 2 }, 
		{ name: "P", type: "Meet", color: [ 1.0, 0.0, 0.0 ], args: [ "d", "e" ], labeled: true }, 
		{ name: "C1", type: "ConicParabolaPL", color: [ 0.7568628, 0.0, 0.0 ], args: [ "F", "b" ], size: 2, printname: "$C_{1}$" } ], 
	ports: [ 
		{ id: "CSCanvas", width: 540, height: 480, transform: [ { visibleRect: [ -9.06, 9.34, 12.62, -7.1 ] } ], background: "rgb(168,176,192)" } ], 
	cinderella: { build: 1835, version: [ 2, 9, 1835 ] } });
</script>