Coding Global Background
Coding Global
\n\n```"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-23T15:30:40.039Z","text":"here's another rosetta stone with the problem basically solved.\n```\n\n\n\n \n \n \n \n\n
\n\n\n\n```"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-23T15:30:59.849Z","text":"you can rotate a rectangle by pushing the button."},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-23T16:13:35.381Z","text":"Note 3. even inside html, svg does not support native drag and drop so a full solution would be an old-fashioned roll my own... grab mouse coordinates on mouse down, and watch the mouse until onmouseup","dateModified":"2025-07-23T16:14:03.344Z"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-23T16:14:40.077Z","text":"it **DOES** support onMouseDown='function(this)', et cetera"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-24T02:55:52.866Z","text":"another useful thing to know: dragging seems to work on circles but not text elements. I accidentally had circles to drag but when I didn't it was a problem"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-24T02:56:23.623Z","text":"as in, the element just stopped returning onmousedowns for non-circle elements, possibly because I disabled drag selection in css options"},{"@type":"Comment","author":{"@type":"Person","name":"Deleted User","url":"https://discord.com/users/456226577798135808","image":"https://cdn.discordapp.com/embed/avatars/3.png"},"datePublished":"2025-07-24T02:56:49.108Z","text":"oh buzz off, this place was no help :p"}]}

svg dragging

Archiviert 5 months ago
20 Nachrichten
3 Mitglieder
Erstellt 7 months ago
Aktualisiert 7 months ago
In Discord öffnen
A
amylynx
Copy Paster!
I am attempting to make a simple SVG where one <G> element is rotatable by dragging. Is this actually possible in SVG? Not a webpage with embedded SVG -- not an SVG empowered by 3 javascript libraries -- an SVG.

I am getting very unclear results from search engines. My needs are (I think) VERY simple and libraries would be superfluous unless SVG truly lacks everything needed.

A simple minimal example of one draggable element in SVG would be extremely helpful. I had one and lost it cannot find it again, google is getting more and more useless by the day.

Antworten (18)