Comments (11)
I agree.
Original comment by [email protected]
on 27 Aug 2010 at 8:40
from jqueryrotate.
On a TODO list (but not trival one unfortunatelly)
Original comment by [email protected]
on 27 Aug 2010 at 8:59
from jqueryrotate.
Original comment by [email protected]
on 25 Jan 2011 at 11:39
- Changed title: Add a Rotation Center Point (need research, quite challenging on a CSS solution)
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from jqueryrotate.
A temporary solution for me would be to reposition the image until this feature
is completed. I'm still trying to figure out how to do this though.
Original comment by [email protected]
on 14 Jun 2011 at 11:54
from jqueryrotate.
Repositioning image is obvoiusly the way to go here, however it gives alot of
problems when positioning thats I mention that this is not trival o_O
Original comment by [email protected]
on 15 Jun 2011 at 6:19
from jqueryrotate.
Hi guys.
I am in the same boat as you all.
I have to have an arrow pointing like a fuel gauge dynamically showing how full
or empty the tank is.
One solution I can think of to have a center point is to re-size and position
the image where the center point is the same as the rotation point. This would
mean the image might have an empty bottom area, but if you are willing to use a
transparent .png file this might not be a big problem.
I also thought of repositioning the image, but this means for every degree in
rotation you might have to reposition the image. (Sounds like WAY too much work
for me).
Hope this idea might help someone.
Original comment by [email protected]
on 8 Sep 2011 at 9:44
from jqueryrotate.
[deleted comment]
from jqueryrotate.
so, I actually managed to do this for a client.
My solution was quite simple (not for IE8 though).
I made a new element <div> in which I made the image as background and
positioned it, so that the rotate point is exactly in the middle of that div.
Now when you rotate the div (with the image as background), you get the exact
center point where you wanted it to rotate.
I small example is here:
http://true-web.ch/map18/ (click on image, there on a number, then press on/off
to show the scale which you can rotate).
Original comment by [email protected]
on 12 Dec 2011 at 4:12
from jqueryrotate.
I had to rotate some drawing(lines and circle drawn on image ) with respect to
image .One way is to use use raphael library.
Raphael library's rotate function allows to mention center of rotation.Below
is the code section .
var angle = $("#angle" + selectedImgId).val();
var cx = $('#' + selectedImgId).width() / 2;
var cy = $('#' + selectedImgId).height() / 2;
elt.rotate(angle, cx, cy);
if (flipClickedCounter[selectedImgId-1] % 2 != 0) {
elt.scale(-1, 1,cx,cy);
}
if (i == collection[j].length - 1) {
var element = paperArray[selectedImgId - 1].circle(point2[0], point2[1], 3).attr({ fill: "#119" }).attr("stroke", "#119");
element.rotate(angle, cx, cy);
if (flipClickedCounter[selectedImgId-1] % 2 != 0) {
element.scale(-1, 1,cx,cy);
}
}
}
hope this helps someone
Original comment by [email protected]
on 2 Jun 2012 at 5:54
from jqueryrotate.
Original comment by [email protected]
on 26 Nov 2012 at 9:00
- Changed title: Add a Rotation Center Point
from jqueryrotate.
Finally added in jQueryRotate2. Let me know of any issues.
Original comment by [email protected]
on 11 Jul 2013 at 2:37
- Changed state: Fixed
from jqueryrotate.
Related Issues (20)
- callback does not behave as expected HOT 3
- Rotating from (eg) 350degrees to 10degrees goes backwards HOT 4
- Not Working IN IE8 HOT 6
- SCRIPT5007: Error HOT 45
- jQuery Conflict in WP. HOT 4
- using jqueryrotate with canvas not working as expected HOT 2
- Patch for /trunk/jQueryRotate.js HOT 1
- Throws error when page contains no 'HEAD' element HOT 4
- Issue on IE8 - not working properly in sequence of animation, after being called after first HOT 3
- "rotate" function doesn't allow string for angle parameter HOT 1
- Bower integration
- JQueryRotate not working when used within a jquery UI Dialog HOT 1
- Patch for /trunk/jQueryRotate3.js HOT 2
- Callback not working! HOT 1
- Using center with angle: 0 does not center the image at the specified coordinate HOT 3
- Not working in IE8 on a div HOT 1
- (supportedCSSOrigin[0] == "T") supportedCSSOrigin[0]="t" isn't useful
- Patch for /trunk/jQueryRotateExample.html
- http://visichattt.blogspot.com/ HOT 1
- JQueryUI 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 jqueryrotate.