Kwargs: startProfileAt (#6424)
Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
This commit is contained in:
@ -3,7 +3,7 @@ import { expect, test } from '@e2e/playwright/zoo-test'
|
||||
/* eslint-disable jest/no-conditional-expect */
|
||||
|
||||
const file = `sketch001 = startSketchOn(XZ)
|
||||
profile001 = startProfileAt([57.81, 250.51], sketch001)
|
||||
profile001 = startProfile(sketch001, at = [57.81, 250.51])
|
||||
|> line(end = [121.13, 56.63], tag = $seg02)
|
||||
|> line(end = [83.37, -34.61], tag = $seg01)
|
||||
|> line(end = [19.66, -116.4])
|
||||
@ -12,7 +12,7 @@ profile001 = startProfileAt([57.81, 250.51], sketch001)
|
||||
|> close()
|
||||
extrude001 = extrude(profile001, length = 200)
|
||||
sketch002 = startSketchOn(XZ)
|
||||
|> startProfileAt([-114, 85.52], %)
|
||||
|> startProfile(at = [-114, 85.52])
|
||||
|> xLine(length = 265.36)
|
||||
|> line(end = [33.17, -261.22])
|
||||
|> xLine(length = -297.25)
|
||||
@ -20,7 +20,7 @@ sketch002 = startSketchOn(XZ)
|
||||
|> close()
|
||||
extrude002 = extrude(sketch002, length = 50)
|
||||
sketch003 = startSketchOn(XY)
|
||||
|> startProfileAt([52.92, 157.81], %)
|
||||
|> startProfile(at = [52.92, 157.81])
|
||||
|> angledLine(angle = 0, length = 176.4, tag = $rectangleSegmentA001)
|
||||
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 53.4, tag = $rectangleSegmentB001)
|
||||
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
|
||||
@ -82,7 +82,7 @@ test.describe('Prompt-to-edit tests', () => {
|
||||
await scene.expectPixelColor(yellow, body1CapCoords, 20)
|
||||
await editor.expectState({
|
||||
highlightedCode: '',
|
||||
activeLines: ['|>startProfileAt([-114,85.52],%)'],
|
||||
activeLines: ['|>startProfile(at=[-114,85.52])'],
|
||||
diagnostics: [],
|
||||
})
|
||||
})
|
||||
@ -170,7 +170,7 @@ test.describe('Prompt-to-edit tests', () => {
|
||||
|
||||
await editor.expectState({
|
||||
highlightedCode: '',
|
||||
activeLines: ['|>startProfileAt([-114,85.52],%)'],
|
||||
activeLines: ['|>startProfile(at=[-114,85.52])'],
|
||||
diagnostics: [],
|
||||
})
|
||||
})
|
||||
@ -293,7 +293,7 @@ test.describe('Prompt-to-edit tests', () => {
|
||||
// Hold shift and select second body
|
||||
await editor.expectState({
|
||||
highlightedCode: '',
|
||||
activeLines: ['|>startProfileAt([-114,85.52],%)'],
|
||||
activeLines: ['|>startProfile(at=[-114,85.52])'],
|
||||
diagnostics: [],
|
||||
})
|
||||
await page.keyboard.down('Shift')
|
||||
@ -304,7 +304,7 @@ test.describe('Prompt-to-edit tests', () => {
|
||||
'line(end=[121.13,56.63],tag=$seg02)extrude(profile001,length=200)',
|
||||
activeLines: [
|
||||
'|>line(end=[121.13,56.63],tag=$seg02)',
|
||||
'|>startProfileAt([-114,85.52],%)',
|
||||
'|>startProfile(at=[-114,85.52])',
|
||||
],
|
||||
diagnostics: [],
|
||||
})
|
||||
|
Reference in New Issue
Block a user