Move axes to std constants; move helix, revolve, and mirror2d to be declared in KCL (#6105)
Move axes to std constants; move helix, revolve, and mirror2d to be declated in KCL Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
		@ -1084,8 +1084,8 @@ openSketch = startSketchOn(XY)
 | 
			
		||||
  }) => {
 | 
			
		||||
    // One dumb hardcoded screen pixel value
 | 
			
		||||
    const testPoint = { x: 620, y: 257 }
 | 
			
		||||
    const expectedOutput = `helix001 = helix(  axis = 'X',  radius = 5,  length = 5,  revolutions = 1,  angleStart = 360,  ccw = false,)`
 | 
			
		||||
    const expectedLine = `axis='X',`
 | 
			
		||||
    const expectedOutput = `helix001 = helix(  axis = X,  radius = 5,  length = 5,  revolutions = 1,  angleStart = 360,  ccw = false,)`
 | 
			
		||||
    const expectedLine = `axis=X,`
 | 
			
		||||
 | 
			
		||||
    await homePage.goToModelingScene()
 | 
			
		||||
 | 
			
		||||
@ -1217,7 +1217,7 @@ openSketch = startSketchOn(XY)
 | 
			
		||||
        cmdBar,
 | 
			
		||||
      }) => {
 | 
			
		||||
        page.on('console', console.log)
 | 
			
		||||
        const initialCode = `sketch001 = startSketchOn('XZ')
 | 
			
		||||
        const initialCode = `sketch001 = startSketchOn(XZ)
 | 
			
		||||
  profile001 = startProfileAt([0, 0], sketch001)
 | 
			
		||||
    |> yLine(length = 100)
 | 
			
		||||
    |> line(endAbsolute = [100, 0])
 | 
			
		||||
@ -3474,7 +3474,7 @@ segAng(rectangleSegmentA002),
 | 
			
		||||
      await cmdBar.progressCmdBar()
 | 
			
		||||
      await cmdBar.progressCmdBar()
 | 
			
		||||
 | 
			
		||||
      const newCodeToFind = `revolve001 = revolve(sketch002, angle = 360, axis = 'X')`
 | 
			
		||||
      const newCodeToFind = `revolve001 = revolve(sketch002, angle = 360, axis = X)`
 | 
			
		||||
      expect(editor.expectEditor.toContain(newCodeToFind)).toBeTruthy()
 | 
			
		||||
 | 
			
		||||
      // Edit flow
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user