Comments (6)
Yeah, you are right, i did not specify rotationPoint
option, because it is an experimental option.
rotationPoint: [200, 200],
If you want set initial position you need to use staging version.
Please take a look to this example.
I will add it to stable version when it will be tested well.
Please let me know if you will have any troubles with lib usage.
from subjx.
Hi
I think defining the rotation point in a callback method could be useful.
I made a quick patch #57 that I tested in my very limited use case.
I am so far more of a jquery user than a real es6 developer, but I am willing to learn so don't hesitate to tell me if I can help.
Thanks
from subjx.
Thanks for PR
Probably it is better to add new method called like setCenterPoint
, because reset
word could be confusing.
from subjx.
i prepared PR ^ with your proposed functionality, please take a look and let me know if you will have any thoughts
from subjx.
It looks excellent. I have my kids this week, but I try to test this as soon as possible
Thank you Santa Clauscarter
from subjx.
Sorry for the late feedback.
This is truly amazing.
I tried absolute positioning
this.setCenterPoint({x:10, y:20},true);
I tried relative positioning
this.setCenterPoint({dx:10, dy:20},false);
I tried it in inInit and onDrop.
It work very well.
Congratulations and 2022 thanks.
I'll try to make my svg puppet now and post you a link when done
from subjx.
Related Issues (20)
- As plugin for online text editor
- Really Great Plugin HOT 2
- Can you add delete icon in top right side corner.
- ForeignObject Support HOT 5
- TypeError: Argument not an object HOT 5
- Resize components HOT 4
- Limit drag, resize, etc to an element. HOT 1
- Multiple sjx-wrapper's HOT 2
- Rotating to 90deg disables rotating and resizing HOT 9
- mimic move for new elements HOT 2
- How to rotate, resize and drag multiple dom elements? HOT 2
- Double click to disable HOT 2
- resetCenterPoint(); inside onDrop event does not work on 0.3.9 HOT 3
- Only one is required. HOT 2
- When the container is scaled, it cannot drag properly HOT 1
- Great product, feature request - skew HOT 3
- Just a suggestion
- How can i destroy an created instance HOT 1
- setTransformOrigin && exeRotate HOT 6
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 subjx.