Coder Social home page Coder Social logo

Comments (1)

mslegrand avatar mslegrand commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.