Code Monkey home page Code Monkey logo

Comments (5)

Kibo avatar Kibo commented on September 27, 2024

Hi
there are some symbols in:
https://github.com/Kibo/AstroChart/tree/master/assets

I used Inscape for edit.

See for example:
https://github.com/Kibo/AstroChart/blob/master/project/src/svg.js#L293

You have to center the symbol. You can use calibration fot it:
https://github.com/Kibo/AstroChart/tree/master/project/examples/debug

Regards

from astrochart.

cptolemy avatar cptolemy commented on September 27, 2024

Hi

Thanks for the reply. Those are good examples. Can you just please tell me, in Inkspace, if you were to create another symbol, in pixels let's say, would you use as origin (0,0) and what would be the width and height of the object - in pixels (or mm..)?

I've created a sample symbol, but it's either too big or goes out of the place.

My problem is actually there in Inkspace.

Sorry for the trouble.

Kind regards

from astrochart.

Kibo avatar Kibo commented on September 27, 2024

Hi

there is XML editor in Inkscape. You can see and edit SVG markup in it.
The size of symbol you need estimate according to other symbol.

Sometimes there is scale wraper (or atribute) in SVG markup in Inkscape. You have to remove it, to see the real size of symbol.

Regards

from astrochart.

Kibo avatar Kibo commented on September 27, 2024

The origin of symbol set as you need in Inkscape. Then you align in code:

For example
https://github.com/Kibo/AstroChart/blob/master/project/src/svg.js#L416

// center symbol
var xShift = -5; //px						
var yShift = -7; //px	

from astrochart.

cptolemy avatar cptolemy commented on September 27, 2024

Hi Kibo

Thanks for the help :) Take care.

Kind regards

Ptolemy

from astrochart.

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.