Fix spelling in several code comments (#1860)
Signed-off-by: renshuncui <renshun@111.com>
This commit is contained in:
parent
e1df23c28e
commit
9712f9b037
|
|
@ -1083,7 +1083,7 @@ fn selective_color_node(
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.fold((0., 0., 0.), |acc, (color_parameter_group, (c, m, y, k))| {
|
.fold((0., 0., 0.), |acc, (color_parameter_group, (c, m, y, k))| {
|
||||||
// Skip this color parameter group...
|
// Skip this color parameter group...
|
||||||
// ...if it's unchanged from the default of zero offset on all CMYK paramters, or...
|
// ...if it's unchanged from the default of zero offset on all CMYK parameters, or...
|
||||||
// ...if this pixel's color isn't in the range affected by this color parameter group
|
// ...if this pixel's color isn't in the range affected by this color parameter group
|
||||||
if (c < f32::EPSILON && m < f32::EPSILON && y < f32::EPSILON && k < f32::EPSILON) || (!pixel_color_range(color_parameter_group)) {
|
if (c < f32::EPSILON && m < f32::EPSILON && y < f32::EPSILON && k < f32::EPSILON) || (!pixel_color_range(color_parameter_group)) {
|
||||||
return acc;
|
return acc;
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ pub struct Footprint {
|
||||||
pub resolution: glam::UVec2,
|
pub resolution: glam::UVec2,
|
||||||
/// Quality of the render, this may be used by caching nodes to decide if the cached render is sufficient
|
/// Quality of the render, this may be used by caching nodes to decide if the cached render is sufficient
|
||||||
pub quality: RenderQuality,
|
pub quality: RenderQuality,
|
||||||
/// When the transform is set downstream, all upsream modifications have to be ignored
|
/// When the transform is set downstream, all upstream modifications have to be ignored
|
||||||
pub ignore_modifications: bool,
|
pub ignore_modifications: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,7 @@ impl super::VectorData {
|
||||||
.filter_map(to_bezier)
|
.filter_map(to_bezier)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Construct a [`bezier_rs::Bezier`] curve from an iterator of segments with (handles, start point, end point). Returns None if any ids are invalid or if the semgents are not continuous.
|
/// Construct a [`bezier_rs::Bezier`] curve from an iterator of segments with (handles, start point, end point). Returns None if any ids are invalid or if the segments are not continuous.
|
||||||
fn subpath_from_segments(&self, segments: impl Iterator<Item = (bezier_rs::BezierHandles, PointId, PointId)>) -> Option<bezier_rs::Subpath<PointId>> {
|
fn subpath_from_segments(&self, segments: impl Iterator<Item = (bezier_rs::BezierHandles, PointId, PointId)>) -> Option<bezier_rs::Subpath<PointId>> {
|
||||||
let mut first_point = None;
|
let mut first_point = None;
|
||||||
let mut groups = Vec::new();
|
let mut groups = Vec::new();
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,7 @@ async fn morph(footprint: Footprint, source: impl Node<Footprint, Output = Vecto
|
||||||
let mut source_paths = source.stroke_bezier_paths();
|
let mut source_paths = source.stroke_bezier_paths();
|
||||||
let mut target_paths = target.stroke_bezier_paths();
|
let mut target_paths = target.stroke_bezier_paths();
|
||||||
for (mut source_path, mut target_path) in (&mut source_paths).zip(&mut target_paths) {
|
for (mut source_path, mut target_path) in (&mut source_paths).zip(&mut target_paths) {
|
||||||
// Deal with mistmatched transforms
|
// Deal with mismatched transforms
|
||||||
source_path.apply_transform(source.transform);
|
source_path.apply_transform(source.transform);
|
||||||
target_path.apply_transform(target.transform);
|
target_path.apply_transform(target.transform);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue