Skip to content

Commit

Permalink
up version and add deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
NailxSharipov committed Nov 11, 2024
1 parent f8a88c1 commit 910d820
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 33 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "i_overlay"
version = "1.7.4"
version = "1.8.0"
authors = ["Nail Sharipov <[email protected]>"]
edition = "2021"
description = "Boolean Operations for 2D Polygons: Supports intersection, union, difference, xor, and self-intersections for all polygon varieties."
Expand All @@ -9,13 +9,13 @@ repository = "https://github.com/iShape-Rust/iOverlay"
readme = "README.md"

[dependencies]
#i_float = { version = "~1.3.0" }
#i_shape = { version = "~1.3.0" }
i_float = { version = "~1.4.0" }
i_shape = { version = "~1.4.0" }
i_tree = { version = "~0.8.3" }
i_key_sort = { version = "~0.2.0" }

i_float = { path = "../iFloat" }
i_shape = { path = "../iShape" }
#i_float = { path = "../iFloat" }
#i_shape = { path = "../iShape" }
#i_tree = { path = "../iTree" }
#i_key_sort = { path = "../iKeySort" }

Expand Down
4 changes: 0 additions & 4 deletions src/f32/clip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use crate::f32::line::F32Line;
use crate::f32::string::F32StringOverlay;
use crate::string::clip::ClipRule;

// #[deprecated(
// since = "1.8.0",
// note = "Use FloatClip<P, T> instead, which provides a more flexible and efficient API"
// )]
pub trait F32Clip {
/// Clips a single line according to the specified fill and clip rules.
/// - `line`: The line to be clipped, represented by two points.
Expand Down
8 changes: 4 additions & 4 deletions src/f32/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use crate::core::solver::Solver;
use crate::f32::graph::F32OverlayGraph;

/// This struct is essential for describing and uploading the geometry or shapes required to construct an `F32OverlayGraph`. It prepares the necessary data for boolean operations.
// #[deprecated(
// since = "1.8.0",
// note = "Use FloatOverlay<P, T> instead, which provides a more flexible and efficient API"
// )]
#[deprecated(
since = "1.8.0",
note = "Use FloatOverlay<P, T> instead, which provides a more flexible and efficient API"
)]
#[derive(Clone)]
pub struct F32Overlay {
pub(super) subj_paths: Vec<F32Path>,
Expand Down
8 changes: 4 additions & 4 deletions src/f32/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ use crate::f32::line::F32Line;
use crate::string::clip::ClipRule;
use crate::string::overlay::StringOverlay;

// #[deprecated(
// since = "1.8.0",
// note = "Use FloatStringOverlay<P, T> instead, which provides a more flexible and efficient API"
// )]
#[deprecated(
since = "1.8.0",
note = "Use FloatStringOverlay<P, T> instead, which provides a more flexible and efficient API"
)]
#[derive(Clone)]
pub struct F32StringOverlay {
shape_paths: Vec<F32Path>,
Expand Down
4 changes: 0 additions & 4 deletions src/f64/clip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use crate::f64::line::F64Line;
use crate::f64::string::F64StringOverlay;
use crate::string::clip::ClipRule;

// #[deprecated(
// since = "1.8.0",
// note = "Use FloatClip<P, T> instead, which provides a more flexible and efficient API"
// )]
pub trait F64Clip {
/// Clips a single line according to the specified fill and clip rules.
/// - `line`: The line to be clipped, represented by two points.
Expand Down
8 changes: 4 additions & 4 deletions src/f64/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use crate::core::solver::Solver;
use crate::f64::graph::F64OverlayGraph;


// #[deprecated(
// since = "1.8.0",
// note = "Use FloatOverlay<P, T> instead, which provides a more flexible and efficient API"
// )]
#[deprecated(
since = "1.8.0",
note = "Use FloatOverlay<P, T> instead, which provides a more flexible and efficient API"
)]
/// This struct is essential for describing and uploading the geometry or shapes required to construct an `F64OverlayGraph`. It prepares the necessary data for boolean operations.
#[derive(Clone)]
pub struct F64Overlay {
Expand Down
4 changes: 0 additions & 4 deletions src/f64/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use crate::f64::line::F64Line;
use crate::f64::string::F64StringOverlay;
use crate::string::rule::StringRule;

// #[deprecated(
// since = "1.8.0",
// note = "Use FloatSlice<P, T> instead, which provides a more flexible and efficient API"
// )]
pub trait F64Slice {
fn slice_by_line(&self, line: F64Line, fill_rule: FillRule) -> F64Shapes;
fn slice_by_lines(&self, lines: &[F64Line], fill_rule: FillRule) -> F64Shapes;
Expand Down
8 changes: 4 additions & 4 deletions src/f64/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use crate::f64::line::F64Line;
use crate::string::clip::ClipRule;
use crate::string::overlay::StringOverlay;

// #[deprecated(
// since = "1.8.0",
// note = "Use FloatStringOverlay<P, T> instead, which provides a more flexible and efficient API"
// )]
#[deprecated(
since = "1.8.0",
note = "Use FloatStringOverlay<P, T> instead, which provides a more flexible and efficient API"
)]
#[derive(Clone)]
pub struct F64StringOverlay {
shape_paths: Vec<F64Path>,
Expand Down

0 comments on commit 910d820

Please sign in to comment.