Skip to content

Auto generate tracers #203

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

Merged
merged 21 commits into from
Jul 6, 2016

Conversation

nadr0
Copy link
Contributor

@nadr0 nadr0 commented Jul 5, 2016

finally got a working version with array1D/2D tracers.

When clicking generate at the top a new div pops up and you can create array 1d/2d tracers. The user can click inside each element in the matrix and edit it to any numeric value then press the generate JS and the code will appear in the tracer below. After this the user can copy and paste the code into the data.js file or the scratch pad.

what I like

  • I got to use similar code for 1d/2d array creation
  • a div overlay that just pops up for you can create these in any algorithm example and close it and it brings you back to the example

what I don't like

  • the visuals for the input fields and buttons
    • needs to look cleaner
  • createHTML() function in js/create/index.js (it works though)

todos:

  • add chart tracer
  • add graph tracer
Kevin Nadro added 21 commits June 27, 2016 19:10
- replace the code with html for people can click buttons and fill out
fields! they won’t need to see any data/code.js files!
figuring out how all of this stuff works, still very confused on where
to include javascript files and how to access the code through all the
modules
creates a 2dmatrix tracer with input values on it.
got the logger to print the javascript code now
- renaming of files
- highlighting of the text
- clear modules so it doesn’t make more than the 2
a way to make sure the sandbox container shows up when inside the
sandbox tracers and when you aren’t in it
- making more files and renaming things
- working prototype
- need to fix the vertical split bar to have the divider between
workspace and sandbox container work together
- removed the sandbox tab its not an algorithm now
- the overlay can be opened by pressing “generate” button at the top
menu bar
- creates overlayed divs that have the functionality to generate a
tracer and the code
- (x) button to close and return to the algorithm
- changed the save/load of the algorithm for it correctly returns to
the example after closing the generate overlay
everything should be fine
@nadr0 nadr0 mentioned this pull request Jul 5, 2016
@64json 64json merged commit 0136803 into algorithm-visualizer:master Jul 6, 2016
@64json
Copy link
Member

64json commented Jul 6, 2016

I have tested this on Chrome, Safari, and Firefox, but it doesn't work on any of those.
It is unable to change columns and rows, create matrices, or generate Javascript.
Could you check it again?

@nadr0
Copy link
Contributor Author

nadr0 commented Jul 6, 2016

Interesting, its working for me on the website. Is there any console errors?

note: the change columns/rows isn't live reload, so you would have to click create matrices each time after changing the size and it would reset the values inside the matrix.

(another note: you have to be in the tracer view tab for it to show up, I probably should auto click that tab when clicking the "generate" button.)

@64json
Copy link
Member

64json commented Jul 6, 2016

I don't see any errors in console.

On Thu, Jul 7, 2016, 1:55 AM Kevin Nadro notifications@github.com wrote:

Interesting, its working for me on the website. Is there any console
errors?


You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/parkjs814/AlgorithmVisualizer/pull/203#issuecomment-230835890,
or mute the thread
https://github.com/notifications/unsubscribe/ABizLPBqHRjEyj-g-bo2X6VL1G8EGy5jks5qS94RgaJpZM4JEuKd
.

@nadr0
Copy link
Contributor Author

nadr0 commented Jul 7, 2016

Since you merged it to master its up on the site, I don't see any issues with it. I have tried on my computer and several other and it works fine, I have been testing in Chrome. Maybe some screen shots or video of the issues you are having?

64json added a commit that referenced this pull request Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants