Skip to content

Commit

Permalink
update drawing add-on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Jan 4, 2024
1 parent f77f14a commit ed10508
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/source/addons/drawing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ HatchPolicy
.. autoclass:: ezdxf.addons.drawing.config.HatchPolicy
ImagePolicy
-----------
.. autoclass:: ezdxf.addons.drawing.config.ImagePolicy
LinePolicy
----------
Expand Down
1 change: 0 additions & 1 deletion docs/source/math/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Utility Functions
ellipse_param_span
has_matrix_2d_stretching
has_matrix_3d_stretching
linspace
open_uniform_knot_vector
required_knot_values
uniform_knot_vector
Expand Down
12 changes: 9 additions & 3 deletions src/ezdxf/addons/drawing/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2023, Matthew Broadway
# Copyright (c) 2021-2024, Matthew Broadway
# License: MIT License
from __future__ import annotations
from typing import Optional
Expand All @@ -13,15 +13,21 @@


class LinePolicy(Enum):
"""
"""This enum is used to define how to render linetypes.
.. note::
Text and shapes in linetypes are not supported.
Attributes:
SOLID: draw all lines as solid regardless of the linetype style
ACCURATE: render styled lines as accurately as possible
APPROXIMATE: ignored since v0.18.1 - uses always ACCURATE by default
"""

SOLID = auto()
APPROXIMATE = auto() # ignored since v0.18.1 => ACCURATE
APPROXIMATE = auto() # ignored since v0.18.1
ACCURATE = auto()


Expand Down

0 comments on commit ed10508

Please sign in to comment.