Comments (5)
Greetings.
Change the Scale function to the one below.
In astroshart.js, it starts with line 999.
` function libra( x, y ){
// center symbol
var xShift = 0; //px
var yShift = 0; //px
x = Math.round(x + (xShift * astrology.SYMBOL_SCALE));
y = Math.round(y + (yShift * astrology.SYMBOL_SCALE));
console.log(x,y);
var wrapper = document.createElementNS(context.root.namespaceURI, "g");
wrapper.setAttribute("transform", "translate(" + ( -x * (astrology.SYMBOL_SCALE - 1)) + "," + (-y * (astrology.SYMBOL_SCALE - 1)) + ") scale(" + astrology.SYMBOL_SCALE + ")");
var node = document.createElementNS( context.root.namespaceURI, "path");
node.setAttribute("d", "m " + x+", " +y+ " 0 0c0-.271.01-.802.031-1.594 1.292-.583 1.938-1.562 1.938-2.937 0-.896-.312-1.635-.937-2.219-.604-.604-1.344-.906-2.219-.906-.896 0-1.635.302-2.219.906-.625.604-.937 1.354-.937 2.25 0 1.333.656 2.292 1.969 2.875l0 1.625-7.719 0 0-1.531c.875 0 2.625-.01 5.25-.031-.687-1-1.031-1.979-1.031-2.937 0-1.312.458-2.427 1.375-3.344s2.021-1.375 3.312-1.375c1.313 0 2.427.458 3.344 1.375.896 .917 1.344 2.031 1.344 3.344 0 .979-.333 1.969-1 2.969l5.25 0 0 1.531-7.75 0zm-10.094 4 0-1.562 17.844 0 0 1.563-17.844 0z");
node.setAttribute("stroke", astrology.SIGNS_COLOR);
node.setAttribute("stroke-width", astrology.SIGNS_STROKE);
node.setAttribute("fill", "none");
wrapper.appendChild(node);
return wrapper;
};
`
from astrochart.
Greetings
Thank you so much for the help. Actually, I had figured it out for some time, and I should have posted here the code for others to use it. My bad, and I'm sorry.
Kind regards
from astrochart.
Greetings. What have you improved, if not a secret, so as not to do double work?
from astrochart.
Done.
from astrochart.
hey, how are you can you please tell me how to add apollon symbol because its getting too big
from astrochart.
Related Issues (20)
- Libra symbol is confused with North Node symbol HOT 5
- Synastry Chart Support HOT 1
- Multiple charts on a single page HOT 4
- What does mean points of interest? HOT 1
- Wrong order on planets position HOT 10
- License HOT 2
- Remove the transit cusps/houses HOT 1
- Missing ids for sign and houses
- Add topic Hacktoberfest to repo
- Provide better click-area for signs HOT 3
- Why houses are path and not text? HOT 1
- Can't change the background color of signs. HOT 1
- I don't understand ? HOT 2
- Allow transit chart to not show cusps HOT 1
- Fix custom symbol sign settings
- Design update method
- New symbol - simple help HOT 5
- Vertex HOT 1
- Data description HOT 1
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 astrochart.