Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another editor type which changes the AST without a code editor #33

Open
Jegp opened this issue Feb 25, 2016 · 0 comments
Open

Add another editor type which changes the AST without a code editor #33

Jegp opened this issue Feb 25, 2016 · 0 comments
Assignees

Comments

@Jegp
Copy link
Member

Jegp commented Feb 25, 2016

Instead of changing a drawing with a code editor, we should allow drawings to be parameterised and manipulated with graphical tools such as sliders, drag-n-drop or similar. This would be implemented as a different 'editor' - similar to the code editor - but with some customisations options.
For now the drawing can be hardcoded.

My idea would be for the user to embed everything in the JavaScript with a syntax like this:

var editorElement = document.getElementById("placeToInsertEditor");
var canvasElement = document.getElementById("canvasToDisplayDrawing");

var editor = new EditorApp("drawing", editorElement)
editor.addSlider("variableName");

var view = new CanvasView(canvasElement, editor);
var repoCad = RepoCad(view, editor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant