forked from 1b-agent/opencadstudio-upstream
Cargo: codec eaa6d79, kernel bb355ca, graph 9c17779
- Gradient stops keep their DWG color book name and book; RGB wins over ACI in a DXF gradient block in either tag order. - MTEXT decimal tab stops keep their alignment character. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d1a14bef91
commit
1070361c0a
11 files changed
+23
-14
No files matched your search
@@ -97,6 +97,7 @@ fn set_hatch_graphic_attribute(
|
||||
g: channel(visible_color[1]),
|
||||
b: channel(visible_color[2]),
|
||||
},
|
||||
..Default::default()
|
||||
},
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 1.0,
|
||||
@@ -105,6 +106,7 @@ fn set_hatch_graphic_attribute(
|
||||
g: 46,
|
||||
b: 46,
|
||||
},
|
||||
..Default::default()
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -688,10 +690,12 @@ impl OpenCADStudio {
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 0.0,
|
||||
color: state.color_1,
|
||||
..Default::default()
|
||||
},
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 1.0,
|
||||
color: state.color_2,
|
||||
..Default::default()
|
||||
},
|
||||
];
|
||||
hatch.pattern_angle = angle;
|
||||
|
||||
@@ -8142,6 +8142,7 @@ impl OpenCADStudio {
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value,
|
||||
color: codec::types::Color::Index(7),
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -676,7 +676,7 @@ pub fn adapt_mtext_paragraphs(
|
||||
ATab::Left(_) => TabKind::Left,
|
||||
ATab::Center(_) => TabKind::Center,
|
||||
ATab::Right(_) => TabKind::Right,
|
||||
ATab::Decimal(_) => TabKind::Decimal,
|
||||
ATab::Decimal(..) => TabKind::Decimal,
|
||||
};
|
||||
TabStop {
|
||||
position: ts.position() as f32 * entity_height,
|
||||
|
||||
@@ -3176,10 +3176,12 @@ impl Scene {
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 0.0,
|
||||
color: to_color(c0),
|
||||
..Default::default()
|
||||
},
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 1.0,
|
||||
color: to_color(c1),
|
||||
..Default::default()
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,10 +17,12 @@ fn gradient_stops_keep_entity_transparency() {
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 0.0,
|
||||
color: codec::types::Color::Rgb { r: 255, g: 0, b: 0 },
|
||||
..Default::default()
|
||||
},
|
||||
codec::entities::hatch::GradientColorEntry {
|
||||
value: 1.0,
|
||||
color: codec::types::Color::Rgb { r: 0, g: 0, b: 255 },
|
||||
..Default::default()
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user