MCPcopy Index your code
hub / github.com/clips/pattern / script

Method script

pattern/graph/__init__.py:1292–1297  ·  view source on GitHub ↗

Yields a string of canvas.js code. A setup() function loads the nodes and edges into variable g (Graph), A draw() function starts the animation and updates the layout of g.

(self)

Source from the content-addressed store, hash-verified

1290
1291 @property
1292 def script(self):
1293 """ Yields a string of canvas.js code.
1294 A setup() function loads the nodes and edges into variable g (Graph),
1295 A draw() function starts the animation and updates the layout of g.
1296 """
1297 return "".join(self._script())
1298
1299 def _script(self):
1300 s = [];

Callers 1

includeFunction · 0.80

Calls 1

_scriptMethod · 0.95

Tested by

no test coverage detected