Bug 147542 - Draw should let the user define an Anchor, to snap the object (see comment 11)
Summary: Draw should let the user define an Anchor, to snap the object (see comment 11)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Object-Selection-Alignment
  Show dependency treegraph
 
Reported: 2022-02-19 20:12 UTC by TorrAB
Modified: 2024-04-10 06:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TorrAB 2022-02-19 20:12:25 UTC
Description:
Draw should let the user define an Anchor (master point) for any shape s.he wants to move —the centre of a circle, one corner or the centre of a rectangle or a triangle, etc. Then, when the object is selected and dragged around, the Anchor would snap to a point or line. In particular, snapping to a line would help User to move the shape along that line.


Actual Results:
Object can be dragged anywhere

Expected Results:
Oject moved would snap to point or line


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL
Comment 1 Mike Kaganski 2022-02-19 21:35:42 UTC Comment hidden (noise)
Comment 2 TorrAB 2022-02-20 02:25:19 UTC
(In reply to Mike Kaganski from comment #1)
> Doesn't grouping provide the necessary functionality?

I am not trying to group anything. I want to move, say, a circle, with its centre snapping to a snap point or line.
Comment 3 Buovjaga 2023-06-15 16:46:14 UTC
(In reply to TorrAB from comment #0)
> Description:
> Draw should let the user define an Anchor (master point) for any shape s.he
> wants to move —the centre of a circle, one corner or the centre of a
> rectangle or a triangle, etc. Then, when the object is selected and dragged
> around, the Anchor would snap to a point or line. In particular, snapping to
> a line would help User to move the shape along that line.

I can understand the last sentence, like the geometry of a line acting as a guide. But do you have in mind some other software that would implement this? Also, about snapping to a point, I'm not sure I understand it. An illustration might help.
Comment 4 TorrAB 2023-06-20 12:42:18 UTC
(In reply to Buovjaga from comment #3)
> (In reply to TorrAB from comment #0)
> > Description:
> > Draw should let the user define an Anchor (master point) for any shape s.he
> > wants to move —the centre of a circle, one corner or the centre of a
> > rectangle or a triangle, etc. Then, when the object is selected and dragged
> > around, the Anchor would snap to a point or line. In particular, snapping to
> > a line would help User to move the shape along that line.
> 
> I can understand the last sentence, like the geometry of a line acting as a
> guide. But do you have in mind some other software that would implement
> this?
**SmartSketch, from Intergraph Corp. difficult to get.

 Also, about snapping to a point, I'm not sure I understand it. An
> illustration might help.

**Example: draw a circle centred at the intersection of 2 lines. Or at vertex of a triangle, then copy it to the other. Generally, a figure is made of parts snapped to one another.
Comment 5 Buovjaga 2023-06-20 15:32:27 UTC
(In reply to TorrAB from comment #4)
> (In reply to Buovjaga from comment #3)
> > (In reply to TorrAB from comment #0)
> > > Description:
> > > Draw should let the user define an Anchor (master point) for any shape s.he
> > > wants to move —the centre of a circle, one corner or the centre of a
> > > rectangle or a triangle, etc. Then, when the object is selected and dragged
> > > around, the Anchor would snap to a point or line. In particular, snapping to
> > > a line would help User to move the shape along that line.
> > 
> > I can understand the last sentence, like the geometry of a line acting as a
> > guide. But do you have in mind some other software that would implement
> > this?
> **SmartSketch, from Intergraph Corp. difficult to get.

I was hoping to see some user manual with screenshots. Some 3D software have the same functionality, particularly action center: element in Modo: https://youtu.be/OEdtAPlYHFc?t=193
Comment 6 Heiko Tietze 2023-06-21 09:44:02 UTC
Enable View > Snap Guides > Snap to Guides and pull a helpline from the horizontal/vertical ruler. Your object will snap to this line. Right click > Edit Snap Line... allows precise positioning. Does this solve your problem?
Comment 7 Buovjaga 2023-06-21 12:23:05 UTC
(In reply to Heiko Tietze from comment #6)
> Enable View > Snap Guides > Snap to Guides and pull a helpline from the
> horizontal/vertical ruler. Your object will snap to this line. Right click >
> Edit Snap Line... allows precise positioning. Does this solve your problem?

You can't freely rotate guide lines.
Comment 8 Heiko Tietze 2023-06-21 12:27:26 UTC
(In reply to Buovjaga from comment #7)
> You can't freely rotate guide lines.

Why would you need to rotate a snap point / line? Having the center anchored has been discussed recently in bug 154015.
Comment 9 Buovjaga 2023-06-21 12:32:54 UTC
(In reply to Heiko Tietze from comment #8)
> (In reply to Buovjaga from comment #7)
> > You can't freely rotate guide lines.
> 
> Why would you need to rotate a snap point / line? Having the center anchored
> has been discussed recently in bug 154015.

Because TorrAB said:
"In particular, snapping to a line would help User to move the shape along that line."

You can already move shapes straight along x or y axes by holding down Shift or use guide lines like you proposed. Thus, I assume TorrAB means lines that point to any direction and not just straight along x or y.
Comment 10 Heiko Tietze 2023-07-14 10:26:51 UTC
I don't see the benefit in a rotated grid line when it comes to anchor at a point. And I don't read TorrAB's request as such. I wonder if the gridline tip was helpful or what exactly is missing.
Comment 11 Buovjaga 2023-07-14 11:32:21 UTC
(In reply to Heiko Tietze from comment #10)
> I don't see the benefit in a rotated grid line when it comes to anchor at a
> point. And I don't read TorrAB's request as such. I wonder if the gridline
> tip was helpful or what exactly is missing.

It's not about a grid line or a snap line - it's about translating a shape along the edge of another shape.
Comment 12 V Stuart Foote 2023-07-14 14:16:58 UTC
@Armin, some guidance and statement of feasibility of implementing anchor "translation" along another objects line/polyline or even an arc?
Comment 13 Shu Zhang 2023-07-14 21:25:57 UTC
(In reply to TorrAB from comment #0)
> Description:
> Draw should let the user define an Anchor (master point) for any shape s.he
> wants to move —the centre of a circle, one corner or the centre of a
> rectangle or a triangle, etc. Then, when the object is selected and dragged
> around, the Anchor would snap to a point or line. In particular, snapping to
> a line would help User to move the shape along that line.
> 
> 
> Actual Results:
> Object can be dragged anywhere
> 
> Expected Results:
> Oject moved would snap to point or line
> 
> 
> Reproducible: Always
> 
> 
> User Profile Reset: No
> 
> 
> 
> Additional Info:
> Version: 7.2.5.2 (x64) / LibreOffice Community
> Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
> CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL:
> win
> Locale: en-CA (en_CA); UI: en-US
> Calc: CL

do you mean like if you trying to use adobe illustrator when you use the direct selection button you can drag the anchor from a shape to anywhere you want?
Comment 14 QA Administrators 2024-03-10 03:15:15 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2024-04-10 03:13:34 UTC Comment hidden (obsolete)
Comment 16 Buovjaga 2024-04-10 06:05:59 UTC
Needinfo status not really needed, so setting to unconfirmed.