Merge branch 'main' into achalmers/kw-fn-sketches
This commit is contained in:
		
							
								
								
									
										6
									
								
								src/wasm-lib/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								src/wasm-lib/Cargo.lock
									
									
									
										generated
									
									
									
								
							@ -1710,7 +1710,7 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "kcl-lib"
 | 
			
		||||
version = "0.2.30"
 | 
			
		||||
version = "0.2.31"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "anyhow",
 | 
			
		||||
 "approx 0.5.1",
 | 
			
		||||
@ -1844,9 +1844,9 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "kittycad-modeling-cmds"
 | 
			
		||||
version = "0.2.92"
 | 
			
		||||
version = "0.2.93"
 | 
			
		||||
source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
			
		||||
checksum = "c5fc91d0cdacd1c2ba906f564e58ce07c70a5c471f19b0f4c0b67e754077bfdc"
 | 
			
		||||
checksum = "67a993046541732e3c3ddd8a0364b55b7b138a9258beff353b6e7a043a41dce3"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "anyhow",
 | 
			
		||||
 "chrono",
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@ members = [
 | 
			
		||||
[workspace.dependencies]
 | 
			
		||||
http = "1"
 | 
			
		||||
kittycad = { version = "0.3.28", default-features = false, features = ["js", "requests"] }
 | 
			
		||||
kittycad-modeling-cmds = { version = "0.2.92", features = [
 | 
			
		||||
kittycad-modeling-cmds = { version = "0.2.93", features = [
 | 
			
		||||
  "ts-rs",
 | 
			
		||||
  "websocket",
 | 
			
		||||
] }
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "kcl-lib"
 | 
			
		||||
description = "KittyCAD Language implementation and tools"
 | 
			
		||||
version = "0.2.30"
 | 
			
		||||
version = "0.2.31"
 | 
			
		||||
edition = "2021"
 | 
			
		||||
license = "MIT"
 | 
			
		||||
repository = "https://github.com/KittyCAD/modeling-app"
 | 
			
		||||
 | 
			
		||||
@ -143,10 +143,8 @@ async fn inner_chamfer(
 | 
			
		||||
                radius: LengthUnit(data.length),
 | 
			
		||||
                tolerance: LengthUnit(DEFAULT_TOLERANCE), // We can let the user set this in the future.
 | 
			
		||||
                cut_type: CutType::Chamfer,
 | 
			
		||||
                // We pass in the command id as the face id.
 | 
			
		||||
                // So the resulting face of the fillet will be the same.
 | 
			
		||||
                // This is because that's how most other endpoints work.
 | 
			
		||||
                face_id: Some(id),
 | 
			
		||||
                // We make this a none so that we can remove it in the future.
 | 
			
		||||
                face_id: None,
 | 
			
		||||
            }),
 | 
			
		||||
        )
 | 
			
		||||
        .await?;
 | 
			
		||||
 | 
			
		||||
@ -152,10 +152,8 @@ async fn inner_fillet(
 | 
			
		||||
                radius: LengthUnit(data.radius),
 | 
			
		||||
                tolerance: LengthUnit(data.tolerance.unwrap_or(default_tolerance(&args.ctx.settings.units))),
 | 
			
		||||
                cut_type: CutType::Fillet,
 | 
			
		||||
                // We pass in the command id as the face id.
 | 
			
		||||
                // So the resulting face of the fillet will be the same.
 | 
			
		||||
                // This is because that's how most other endpoints work.
 | 
			
		||||
                face_id: Some(id),
 | 
			
		||||
                // We make this a none so that we can remove it in the future.
 | 
			
		||||
                face_id: None,
 | 
			
		||||
            }),
 | 
			
		||||
        )
 | 
			
		||||
        .await?;
 | 
			
		||||
 | 
			
		||||
@ -654,8 +654,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -671,8 +670,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -654,8 +654,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -671,8 +670,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -654,8 +654,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -654,8 +654,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -640,8 +640,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -657,8 +656,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 2.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -2487,8 +2487,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 1.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -2504,8 +2503,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 1.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -2521,8 +2519,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 1.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -2538,8 +2535,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 1.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
 | 
			
		||||
@ -782,8 +782,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 5.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -799,8 +798,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 5.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -1009,8 +1007,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 5.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -1026,8 +1023,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 5.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -675,8 +675,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 20.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -692,8 +691,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 50.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "chamfer",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "chamfer"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -709,8 +707,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 50.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "chamfer",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "chamfer"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
 | 
			
		||||
@ -675,8 +675,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 20.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -692,8 +691,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 50.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "chamfer",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "chamfer"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -709,8 +707,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 50.0,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "chamfer",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "chamfer"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
 | 
			
		||||
@ -766,8 +766,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 0.25,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -783,8 +782,7 @@ snapshot_kind: text
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "radius": 0.5707134902949093,
 | 
			
		||||
      "tolerance": 0.0000001,
 | 
			
		||||
      "cut_type": "fillet",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "cut_type": "fillet"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user