Comments (1)
currently we assume everything is in pixels. At the minimum we should support a svg viewBox=c(0,0,1,1) for a completely coordinate free representation. But the point layer has the point radius and coordinates in pixels. We need to be able to specify that the point matrix is in relative coodinates and adjust the rendering of the points accordingly. For example, as a special case, if viewBox is c(0,0,sWH), then the xy coord returned by ptr should be processed to become sWH, and the radius R of the point icon should be adjusted to become min(s*R).
In general, given a viewBox= c(s,t,u,v), a point p=c(x,y) returned from the ptr javascript, needs to be transformed into viewBox coords by viewBox(p)= (p/WH)c(u,v)+c(s,t) . The radius R to be transformed to become min( Rc(u,v)/WH).
While pt tranform is possible via pt preproc, currently there is no way to adjust the radius R of the point icons.
from pointr.
Related Issues (20)
- Need to add snippet viewer and editor HOT 1
- Need to submit to accept missing ptR data or even plain R HOT 1
- parser fails to recognize ~ HOT 1
- bookmarks in ace editor failing HOT 1
- warning
- current javascript extensions do not work well with shinytest HOT 1
- snippets
- newPage and ptRAce HOT 2
- slider input presentation
- mouse click selects next point rather than this point HOT 1
- should a .R file use ptR mode?
- external source change not notifying ace editor
- saving file to different extension does not change the ace mode HOT 2
- possibly inappropriate editor warning for onClick
- Help title replacing contents of electron-main titlebar
- need dnippet reload (usefull when writing dnippets)
- add ability to remove dnd snippets
- R files with no commit button cannot be saved
- backtic is not recognized by parser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pointr.