mslegrand / pointr Goto Github PK
View Code? Open in Web Editor NEWA shiny-based IDE for creating SVG by using R and the svgR package.
License: Other
A shiny-based IDE for creating SVG by using R and the svgR package.
License: Other
shinyFiles requires a button, but pointR uses menu. One approach would be to modify the shinyFiles and integrate the resulting javascript/R directly into pointR.
Currently .R files are internally using .ptR mode. This results in parsing as .ptR, which produces undesirable effects:
for example when creating a custom control, we might have
tagList( singleton(tags$head(tags$script(src = "widgetCntrl.js"))), div( id=inputId, newWidgetCntrl(WH=wh, inputId=inputId, theta_0), "data-theta"=theta_0, class="widgetCntrl" ) )
But a warning is issued that src is not an attribute of tags$script
.
To fix either
use the usual R parser as in shinyAce or
fix the ptR-ace parser to ignore this.
Additionally, the dnippets bar appears, with options not appropriate to an plain R file
The issue is to be able to select a tagged set, and then drag the points (one at a time) in that set. Currently, points picks the highest index at a given location, value does too. This is because we allow tag selection using point and click. Only the drag screen disables the point and click tag selection. So the best approach is to modify the drag screen to drag either a group or a single point.
ace editor: warning onClick is not an attribute of Path. How should this be handled?
when the mouse click is used to select a point, it selects the next point rather than the point that was just clicked. This is counterintuitive, especially when trying to insert an intermediate point in a polyline.
Tabs to wrong location
for tribble we label our columns using ~foo, but the parser flags this as invalid syntax.
Most needed attributes should come first.
One approach
There appears to be an issue with incorporating shinyFiles into pointR. The problem seems to originate within the svg plots. I can only speculate at this time, but this is probably a symptom of a serious issue, yet to be discovered.
R files with no commit button cannot be saved
This issue arises because a file is flagged as modified only after a change has been committed.
Consequently, any changed to an app.R, or any *.js cannot be detected because of a lack of commit button.
To solve this we can either introduce more buttons (yuk) or notify the server when ever a notSaved status changes. A notSaved status would be sent whenever the value of undoStack.length>0 changes.
This is a design issue. Will need to rework how code is updated after point/transformation edition.
We should have the window resize accordingly.
What this would entail is:
The current implementation uses file.choose, which looks good for opening, but not for saving. In particular, the button is open, not save. There must be a better widget to do this.
snippets has been disabled. Need to reinsert snippet capabilites
load R file and submit should not reject (and undo) just because of a missing svgR or ptR.
If svgR is return, should graph it.
If no ptR, then do not provide editor selection of points, but still should graph (assume no error)
If plain R, just output the console out.
currently all new pages go through ptRACE
slider input not very readable
numbers at bottom are clipped
background should be white to improve visability
Proposed changes to tagging frequency
Note Requirement 3, appears simpler, but actually creates a new case. Formerly, both manual and periodic
inserts and deletes were handled identically (except for the addition of a tag when necessary). Now they are not.
Implementation changes required for the above
When save file source changes no notification of update occurs
backtic is not recognized by parser
Warning in stri_match_first_regex(string, pattern, opts_regex = opts(pattern)) :
argument is not an atomic vector; coercing
No clue where in the code this is coming from.
Translate doesn't seem to do anything
Rotate causes crash
Currently user must view/edit snippets with another application (text editor). To make snippets more usable, we need to intergate a snippet editlr
pointR is already using the script element, so if a user creates a script element, we need to intercept that and merge it's content with the pointR script element. Also when doing this, one needs to handle any potential conflict in variables and or functions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.