ours: наш оверлей к апстриму 1.5.1 (дельта для переноса в 1.6.0)
10 изменённых файлов + 2 новых (engineering/gost_titleblock.py, _fonts/isocpeur.ttf). Ветка-донор для трёхстороннего переноса в ours-1.6.
This commit is contained in:
@@ -615,11 +615,14 @@ class PremiumContract(ABC):
|
||||
style: DimStyle = "chain",
|
||||
offset: float = 10.0,
|
||||
layer: str | None = None,
|
||||
layout: str | None = None,
|
||||
) -> list[EntityInfo]:
|
||||
"""Generate ISO 129 dimensions across `handles` in the chosen style
|
||||
(chain | baseline | ordinate). `offset` is the dimension-line
|
||||
distance from the reference geometry (mm). `layer` defaults to the
|
||||
active layer set's dimension layer (DIM, or M-DIMEN-T-N for iso13567)."""
|
||||
active layer set's dimension layer (DIM, or M-DIMEN-T-N for iso13567).
|
||||
`layout` puts the dimensions on a named paper-space sheet instead of the
|
||||
current space, so a sheet's dimensions live in paper millimetres."""
|
||||
if not handles:
|
||||
return []
|
||||
dim_layer = layer or self._role_layer("dim")
|
||||
@@ -661,6 +664,7 @@ class PremiumContract(ABC):
|
||||
my + ny * off,
|
||||
rotation=math.degrees(math.atan2(dy, dx)),
|
||||
layer=dim_layer,
|
||||
layout=layout,
|
||||
)
|
||||
results.append(dim)
|
||||
|
||||
@@ -682,6 +686,7 @@ class PremiumContract(ABC):
|
||||
# baseline, not horizontal.
|
||||
rotation=base_rot,
|
||||
layer=dim_layer,
|
||||
layout=layout,
|
||||
)
|
||||
results.append(dim)
|
||||
|
||||
@@ -697,6 +702,7 @@ class PremiumContract(ABC):
|
||||
sx + (ex - sx) / 2.0,
|
||||
max(sy, ey) + rung,
|
||||
layer=dim_layer,
|
||||
layout=layout,
|
||||
)
|
||||
results.append(dim)
|
||||
if abs(ey - sy) > 1e-9:
|
||||
@@ -709,6 +715,7 @@ class PremiumContract(ABC):
|
||||
(sy + ey) / 2.0,
|
||||
rotation=90.0,
|
||||
layer=dim_layer,
|
||||
layout=layout,
|
||||
)
|
||||
results.append(dim)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user