luzpaz
5fa4482504
Draft: fix trailing whitespace
2023-01-22 20:26:40 +01:00
Roy-043
d81f1f015e
Draft: rotate.py: remove Placement.rotate() workaround ( #8230 )
2023-01-22 16:29:15 +01:00
Roy-043
e6eb208639
Draft: Fix and improve Draft_AnnotationStyleEditor ( #8207 )
...
* Draft: Fix and improve Draft_AnnotationStyleEditor
* Draft: Fix and improve Draft_AnnotationStyleEditor 2
2023-01-21 10:28:47 +01:00
Yorik van Havre
e49d30a327
Merge pull request #8081 from Roy-043/Draft-Fix-inconsistent-properties-of-Draft-annotations
...
Draft: Fix inconsistent properties of Draft annotations
2023-01-13 11:47:00 +01:00
jim
e88b2cbead
Make upgrades of type "draftify" return the new object (like the other
...
upgrade types do)
2022-12-26 13:32:26 -08:00
Roy-043
34f43a245c
Draft: Fix inconsistent properties of Draft annotations
2022-12-23 16:49:56 +01:00
Roy-043
3998f3af8d
Draft: fix move AngularDimension bug ( #8047 )
2022-12-15 12:04:12 +01:00
Chris Hennes
7b9acb012c
Draft: Remove py2 references
2022-11-09 14:08:54 +01:00
Roy-043
c9233ecdce
Draft: fix rectangle with face offset bug
2022-10-30 12:49:28 +01:00
Roy-043
7fe184dcc1
Draft: Fix alignment of angular dimension arrows in svg.py
2022-10-10 21:07:43 +02:00
Roy-043
7bb485e6b7
Update rotate.py
...
Workaround for `faulty` implementation of Base.Placement.rotate(center, axis, angle).
See: https://forum.freecadweb.org/viewtopic.php?p=613196#p613196
2022-07-28 13:46:26 +02:00
Roy-043
1188423beb
Draft: Fix handling of groups on move-copy and rotate-copy
2022-07-26 11:26:50 +02:00
Uwe
3a50f95be4
Mod: remove some superfluous Boolean checks ( #7213 )
...
* Mod: remove some superfluous Python Boolean checks
2022-07-19 01:35:12 +02:00
Roy-043
f4d4304e1b
Draft: Fix join.py
2022-07-08 10:52:05 +02:00
Matthijs Kooijman
be69ec5e00
Draft: Fix mixup of TextAlignment vs Justification for Labels
...
TextAlignment is the vertical alignment, while Justification is the
horizontal alignment. here, get_text was passed the vertical, while it
expected the horizontal. This caused the alignment of a Label to be
wrong in the resulting SVG (e.g. in a TechDraw draft view).
This seems to have been broken since SVG support for Labels was first
introduced in commit 3391a5ea4b (Initial work, only text (no lines)).
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
fd8475b1c6
Draft: Fix SVG generation for label objects
...
Label objects would produce invalid SVG XML, because the stroke-linecap
property was added as if it was a style (with : and ;), but it was
inserted in the XML tag directly, rather than inside the style attribute
value. The invalid SVG prevented for example a TechDraw draft view from
rendering when it contained a label.
This was added in commit d8c74c06fd (Draft: Using square endcaps for
lines in SVG output).
This stroke-linecap is supported both as a presentation attribute inside
the style or a XML attribute, so for consistency with the surrounding
attributes, it is made a normal attribute, rather than putting it inside
the style.
See also https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
2022-03-22 14:38:36 +01:00
Yorik van Havre
dd1b0e0a3d
Draft: Fixed error in SVG rendering of LinkedArrays - fixes #6516
2022-03-10 13:34:18 +01:00
Yorik van Havre
c9ea59df60
Merge pull request #6406 from marioalexis84/draft-drawing_techdraw
...
Draft: Replace Drawing functions with TechDraw functions
2022-02-21 11:10:36 +01:00
Roy
fae36b2da0
Draft: Housekeeping: call 'make' functions with new name (4)
2022-02-20 22:31:08 -06:00
marioalexis
3f67ee78f7
Draft: Replace Drawing functions with TechDraw functions
2022-02-20 16:34:29 -03:00
Roy
6b808987ad
Draft: Housekeeping: call 'make' functions with new name
2022-02-10 16:44:37 +01:00
Yorik van Havre
8492cfb9eb
Draft: Upgrade: make compound when unable to turn edges to wire - fixes #3483
2022-02-03 16:13:01 +01:00
Yorik van Havre
e6b7c0e5f9
Draft: fixed tstroke error in get_svg
2022-01-25 11:16:44 +01:00
Roy
c81ce5dea1
Draft: fix task panel related issues
...
This PR fixes several task panel related issues for Draft modifier commands.
2022-01-15 18:23:05 +01:00
Roy-043
e71c860985
Draft: fix scale.py copy_scaled_edge
...
The `copy_scaled_edge` function should return a wire, not an edge. The `join_wires` function, called in `copy_scaled_edges`, can only handle wires.
2022-01-06 17:38:41 +01:00
Yorik van Havre
568dbcea9e
Arch: Fixed display of axis bubbles and texts on DXF export and Techdraw pages
2021-12-16 15:55:58 +01:00
Roy
24bfc4f0a2
Draft: Fix Part_Line offset issue
2021-12-10 02:40:16 +01:00
luz paz
4bd77b3b35
Draft: fix doxygen typos
2021-12-07 22:53:54 -06:00
Yorik van Havre
a09ec0b403
Draft: Use BuildingParts as group in Draft SVG projections
2021-08-26 14:54:33 +02:00
Roy-043
ad39e5fbdd
Draft: Fixed units mismatch when moving Draft_Point objects
...
obj.X.Value instead of float(obj.X)
2021-08-01 13:13:35 +02:00
Roy-043
f47c33bd65
Draft: Fixed units mismatch when moving Draft_Point objects.
2021-08-01 13:13:35 +02:00
luz paz
5394c27683
Crowdin: fix Draft mirror code typo
...
ref: https://crowdin.com/translate/freecad/548/en-en?filter=basic&value=2#6587132
2021-05-20 16:02:34 -04:00
Yorik van Havre
72e249a106
Draft: Fixed last commit (stroke endcap -> stroke-linecap)
2021-05-06 18:49:55 +02:00
Yorik van Havre
d8c74c06fd
Draft: Using square endcaps for lines in SVG output
2021-05-06 18:38:32 +02:00
Yorik van Havre
43feb585ad
Draft: Fixed broken translations everywhere
2021-02-12 14:44:58 +01:00
Chris Hennes
fe7e45a7de
[DRAFT] Catch only Exception, not BaseException
2021-02-11 11:52:45 +01:00
Yorik van Havre
97dcb24c80
Merge pull request #4341 from hyarion/feature-error-handling-get_svg
...
[0.19] [Draft] Add better error message in get_svg for direction
2021-02-08 16:08:18 +01:00
luz paz
ccbc13ee82
Draft: fix LGTM 'Testing for None should use the 'is' operator' alerrts
...
https://lgtm.com/projects/g/FreeCAD/FreeCAD/alerts/?mode=tree&ruleFocus=7900090
2021-02-03 21:58:47 +01:00
Benjamin Nauck
d32631cc54
[Draft] Add better error message in get_svg for direction
...
An AttributeError is raised when `direction=Vector(0,0,0)` and obj is
an Arch::Space on line: bead9bb938/src/Mod/Draft/draftfunctions/svg.py (L799)
This patch checks if early on if the direction vector and raises a
ValueError with a description of what has gone wrong.
A caveat with this solution is that this new behaviour might break old
code which depends on that invalid directions can be used.
2021-01-31 20:24:59 +01:00
marioalexis
60dfd2552b
Draft: Replace Part.getSortedClusters by Part.sortEdges in draftify function
2020-12-29 23:21:33 -03:00
Yorik van Havre
e672aa26b4
Draft: Small layer improvements
...
- Added 'Print Line Color' property
- Added 'Add new layer' context menu action to layers group
2020-12-15 16:43:33 +01:00
Yorik van Havre
115963d79e
Merge pull request #4100 from marioalexis84/draft-upgrade
...
Draft: Improve makeWires in upgrade function
2020-12-14 11:59:21 +01:00
luz paz
2a8c1271d5
Draft: fix header uniformity + trailing whitespace
...
[skip ci]
2020-12-11 13:19:49 +01:00
marioalexis
c9d1d0c462
Draft: Improve makeWires in upgrade function
2020-12-09 15:21:33 -03:00
marioalexis
8e080f1dac
Draft: Some fixes in upgrade function. bug #0004460 , fixes #0004462 , #0004080
2020-11-24 22:08:06 -03:00
Yorik van Havre
c4d42a1f74
Draft: Fixed bug in SVG projection fill
2020-11-19 13:53:44 +01:00
Yorik van Havre
9a3fcfd8ca
Arch: fixed placement of Space label on TD pages
2020-10-26 10:35:40 +01:00
Yorik van Havre
1a2b75ab03
Draft: allow to scale imageplanes
2020-10-20 13:31:40 +02:00
vocx-fc
39744ce987
Draft: split svg.get_svg into subfunctions (2)
...
Define a subfunction to process Draft "Dimension" (v0.18)
or "LinearDimension" (v0.19) objects.
2020-10-19 13:23:04 +02:00
vocx-fc
8187cbee19
Draft: split svg.get_svg into subfunctions
...
Define a subfunction to process `Part.Shape` objects.
2020-10-19 13:23:04 +02:00