Clean up
This commit is contained in:
		@ -187,7 +187,6 @@ export function createArtifactGraph({
 | 
			
		||||
      myMap.set(id, mergedArtifact)
 | 
			
		||||
    })
 | 
			
		||||
  })
 | 
			
		||||
  console.log('Solid3dGetExtrusionFaceInfo ag', myMap)
 | 
			
		||||
  return myMap
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -425,7 +424,6 @@ export function getArtifactsToUpdate({
 | 
			
		||||
    response?.type === 'modeling' &&
 | 
			
		||||
    response.data.modeling_response.type === 'solid3d_get_extrusion_face_info'
 | 
			
		||||
  ) {
 | 
			
		||||
    console.log('TS Solid3dGetExtrusionFaceInfo cmd response', cmd, response)
 | 
			
		||||
    let lastPath: PathArtifact
 | 
			
		||||
    response.data.modeling_response.data.faces.forEach(
 | 
			
		||||
      ({ curve_id, cap, face_id }) => {
 | 
			
		||||
 | 
			
		||||
@ -172,7 +172,6 @@ export async function getEventForSelectWithPoint({
 | 
			
		||||
  Models['OkModelingCmdResponse_type'],
 | 
			
		||||
  { type: 'select_with_point' }
 | 
			
		||||
>): Promise<ModelingMachineEvent | null> {
 | 
			
		||||
  console.log('Solid3dGetExtrusionFaceInfo getEventForSelectWithPoint', data)
 | 
			
		||||
  if (!data?.entity_id) {
 | 
			
		||||
    return {
 | 
			
		||||
      type: 'Set selection',
 | 
			
		||||
 | 
			
		||||
@ -1664,7 +1664,6 @@ export const modelingMachine = setup({
 | 
			
		||||
      }: {
 | 
			
		||||
        input: ModelingCommandSchema['Delete selection'] | undefined
 | 
			
		||||
      }) => {
 | 
			
		||||
        console.log('input', input)
 | 
			
		||||
        if (!input) {
 | 
			
		||||
          return new Error('No input provided')
 | 
			
		||||
        }
 | 
			
		||||
@ -2555,7 +2554,6 @@ export const modelingMachine = setup({
 | 
			
		||||
        src: 'deleteSelectionAstMod',
 | 
			
		||||
        id: 'deleteSelectionAstMod',
 | 
			
		||||
        input: ({ event, context }) => {
 | 
			
		||||
          console.log('event', event)
 | 
			
		||||
          if (event.type !== 'Delete selection') return undefined
 | 
			
		||||
          // TODO: there has to be a better way to pass `context` right?
 | 
			
		||||
          if (!context.selectionRanges) return undefined
 | 
			
		||||
 | 
			
		||||
@ -148,8 +148,6 @@ pub(crate) async fn do_post_extrude(
 | 
			
		||||
 | 
			
		||||
    // The "get extrusion face info" API call requires *any* edge on the sketch being extruded.
 | 
			
		||||
    // So, let's just use the first one.
 | 
			
		||||
    #[cfg(target_arch = "wasm32")]
 | 
			
		||||
    web_sys::console::log_1(&format!("Rust Solid3dGetExtrusionFaceInfo sketch={:?}", sketch).into());
 | 
			
		||||
    let Some(any_edge_id) = sketch.paths.first().map(|edge| edge.get_base().geo_meta.id) else {
 | 
			
		||||
        return Err(KclError::Type(KclErrorDetails {
 | 
			
		||||
            message: "Expected a non-empty sketch".to_string(),
 | 
			
		||||
@ -165,9 +163,6 @@ pub(crate) async fn do_post_extrude(
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let object_id = force_object_id.unwrap_or(sketch.id);
 | 
			
		||||
 | 
			
		||||
    #[cfg(target_arch = "wasm32")]
 | 
			
		||||
    web_sys::console::log_1(&format!("Rust Solid3dGetExtrusionFaceInfo cmd edge_id={:?} object_id={:?}", any_edge_id, object_id).into());
 | 
			
		||||
    let solid3d_info = args
 | 
			
		||||
        .send_modeling_cmd(
 | 
			
		||||
            exec_state.next_uuid(),
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user