Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kpe/tw5-jsxgraph-widget
JSXGraph Widget for TiddlyWiki5
https://github.com/kpe/tw5-jsxgraph-widget
Last synced: 7 days ago
JSON representation
JSXGraph Widget for TiddlyWiki5
- Host: GitHub
- URL: https://github.com/kpe/tw5-jsxgraph-widget
- Owner: kpe
- License: mit
- Created: 2014-06-02T11:41:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-05T11:58:09.000Z (over 10 years ago)
- Last Synced: 2023-08-01T02:52:59.133Z (over 1 year ago)
- Language: JavaScript
- Size: 957 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#[tw5-jsxgraph-widget](https://kpe.github.io/tw5-jsxgraph-widget/)
A [JSXGraph](http://jsxgraph.uni-bayreuth.de/) Widget for [TiddlyWiki5](tiddlywiki.com).
#[Usage](https://kpe.github.io/tw5-jsxgraph-widget/)
In your tiddler use the ```jsxgraph``` widget like this:
```
<$jsxgraph width="600px" height="400px">
var brd = JXG.JSXGraph.initBoard('ignored',
{axis:true,originX: 250, originY: 250, unitX: 50, unitY: 25});
...
$jsxgraph>
```Note that the first argument to ```initBoard()``` will be ignored (and set internally by the widget).
Check the demo at [$:/plugins/kpe/jsxgraph/jsxgraph.demo.tid](https://kpe.github.io/tw5-jsxgraph-widget/).
## Dev notes
When updating [jsxgraphcore.js](https://raw.githubusercontent.com/jsxgraph/jsxgraph/master/distrib/jsxgraphcore.js)
consider, that the distribution of [JSXGraph](https://github.com/jsxgraph/jsxgraph) uses
requirejs through almond, and it somehow does not load properly in node's CommonJS.
As a workaround replace the```js
require("../build/core.deps.js")}();
```
at the end of the last line with:```js
module.exports = require("../build/core.deps.js")}();
```