mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 06:08:12 +08:00
Rename vector components to match new terminology (#719)
* Renamed VectorAnchor, VectorShape and VectorControlPoint. Also fixed other naming inconsistencies. * Renamed messages relating to vector and updated naming in several tools * Renamed comments + caught a few areas I had missed. * Caught a few more incorrect names * Code review pass * Review changes * Fixed warning * Additional review feedback Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
51e0975d20
commit
e03ce4a991
@@ -10,7 +10,7 @@ use std::ops::{Deref, DerefMut};
|
||||
/// - Access data by providing Unique ID.
|
||||
/// - Maintain ordering among the elements.
|
||||
/// - Remove elements without changing Unique IDs.
|
||||
/// This data structure is somewhat similar to a linked list in terms of invarients.
|
||||
/// This data structure is somewhat similar to a linked list in terms of invariants.
|
||||
/// The downside is that currently it requires a lot of iteration.
|
||||
|
||||
type ElementId = u64;
|
||||
@@ -54,7 +54,7 @@ impl<T> IdBackedVec<T> {
|
||||
}
|
||||
|
||||
/// Push an element to the end of the vector
|
||||
/// Overriden from Vec, so adding values without creating an id cannot occur
|
||||
/// Overridden from Vec, so adding values without creating an id cannot occur
|
||||
pub fn push(&mut self, element: T) -> Option<ElementId> {
|
||||
self.push_end(element)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user