Comments (4)
Ok... So I'm running into some issues related to this rotation on the center of the element. I'd like move a rectangular object from the top left corner of my card (0,0) to the top right (562,0), rotated 90 degrees...
So to do that I need to calculate the center coordinates of the element, convert that to the new center position, then calculate the new x,y based on the new center? Am I reasoning this correctly? Is there a better way?
from cardmaker.
Will the rectangle size change or are you concerned it might? To determine the x,y of the element you would need to rotate the point 562,0 around the center of your image in the desired rotated position (-90 degrees so you get the element position). That does not sounds like fun... I am guessing that manually adjusting the element to appear where you expect is a bit less precise than you would like...
from cardmaker.
The rectangle size will be unchanged in most cases I think. I'm planning to print these on real cards, so I'd like it to be precise. I'll just use this as an excuse to shake off my programming rust and write a python script to convert the xml. This is good for me. :)
Also, thanks for all your work on CardMaker. It's allowed me to make some very cool projects.
from cardmaker.
Closing out old bugs/issues.
from cardmaker.
Related Issues (20)
- Graphic element color HOT 1
- Formatted Text Image Color HOT 2
- FormattedText Shape Tag HOT 2
- FormattedText bold tag and word spacing issues HOT 6
- Add basic math operations for the Incept translator HOT 1
- Custom page size only works for first page HOT 2
- [enhancement] image tint/coloring HOT 2
- Row counter HOT 1
- Detect formatting in Google sheets cells
- Add the ability to mirror an image (and maybe elements in general) HOT 1
- Version 1.2.0 Not working with Mono for Mac HOT 2
- Investigate additional shapes HOT 1
- Add em dash support HOT 2
- Color Picker - allow selecting the color from the app or the rest of screen HOT 1
- [Wiki] Not very clear on where the app would be looking for global defines on Google Spreadsheets HOT 1
- Add in y-range margin values for FormattedText HOT 2
- FormattedText Margins Updates HOT 1
- [BUG] Excel Reference files produce errors when containing certain functions HOT 2
- Emojis in element variables HOT 1
- Multiple cases in switch statement HOT 3
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 cardmaker.