KCL: Angled line should use keyword args (#5803)

We continue migrating KCL stdlib functions to use keyword arguments. Next up is the `angledLine` family of functions (except `angledLineThatIntersects, which will be a quick follow-up).

Before vs. after:

`angledLine({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, length = 3, tag = $edge)`

`angledLineOfXLength({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, lengthX = 3, tag = $edge)`

`angledLineOfYLength({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, lengthY = 3, tag = $edge)`

`angledLineToX({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, endAbsoluteX = 3, tag = $edge)`

`angledLineToY({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, endAbsoluteY = 3, tag = $edge)`
This commit is contained in:
Adam Chalmers
2025-04-09 14:55:15 -05:00
committed by GitHub
parent b03ca30379
commit d275995dfe
288 changed files with 36142 additions and 40081 deletions

View File

@ -15,9 +15,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 344,
"end": 365,
"start": 344,
"commentStart": 362,
"end": 383,
"start": 362,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -28,9 +28,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 452,
"end": 473,
"start": 452,
"commentStart": 467,
"end": 488,
"start": 467,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
@ -41,9 +41,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 578,
"end": 599,
"start": 578,
"commentStart": 590,
"end": 611,
"start": 590,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
@ -54,9 +54,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 669,
"end": 690,
"start": 669,
"commentStart": 681,
"end": 702,
"start": 681,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
@ -77,9 +77,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 344,
"end": 365,
"start": 344,
"commentStart": 362,
"end": 383,
"start": 362,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -102,9 +102,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 452,
"end": 473,
"start": 452,
"commentStart": 467,
"end": 488,
"start": 467,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
@ -127,9 +127,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 578,
"end": 599,
"start": 578,
"commentStart": 590,
"end": 611,
"start": 590,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
@ -152,9 +152,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 669,
"end": 690,
"start": 669,
"commentStart": 681,
"end": 702,
"start": 681,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
@ -308,9 +308,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -321,9 +321,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -334,9 +334,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -347,9 +347,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -370,9 +370,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -395,9 +395,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -420,9 +420,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -445,9 +445,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -601,9 +601,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4061,
"end": 4082,
"start": 4061,
"commentStart": 4103,
"end": 4124,
"start": 4103,
"type": "TagDeclarator",
"value": "rectangleSegmentA003"
},
@ -614,9 +614,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4191,
"end": 4212,
"start": 4191,
"commentStart": 4230,
"end": 4251,
"start": 4230,
"type": "TagDeclarator",
"value": "rectangleSegmentB003"
},
@ -627,9 +627,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4317,
"end": 4338,
"start": 4317,
"commentStart": 4353,
"end": 4374,
"start": 4353,
"type": "TagDeclarator",
"value": "rectangleSegmentC003"
},
@ -640,9 +640,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 4408,
"end": 4429,
"start": 4408,
"commentStart": 4444,
"end": 4465,
"start": 4444,
"type": "TagDeclarator",
"value": "rectangleSegmentD003"
},
@ -663,9 +663,9 @@ description: Variables in memory after executing enclosure.kcl
3.0
],
"tag": {
"commentStart": 4061,
"end": 4082,
"start": 4061,
"commentStart": 4103,
"end": 4124,
"start": 4103,
"type": "TagDeclarator",
"value": "rectangleSegmentA003"
},
@ -688,9 +688,9 @@ description: Variables in memory after executing enclosure.kcl
3.0
],
"tag": {
"commentStart": 4191,
"end": 4212,
"start": 4191,
"commentStart": 4230,
"end": 4251,
"start": 4230,
"type": "TagDeclarator",
"value": "rectangleSegmentB003"
},
@ -713,9 +713,9 @@ description: Variables in memory after executing enclosure.kcl
172.0
],
"tag": {
"commentStart": 4317,
"end": 4338,
"start": 4317,
"commentStart": 4353,
"end": 4374,
"start": 4353,
"type": "TagDeclarator",
"value": "rectangleSegmentC003"
},
@ -738,9 +738,9 @@ description: Variables in memory after executing enclosure.kcl
172.0
],
"tag": {
"commentStart": 4408,
"end": 4429,
"start": 4408,
"commentStart": 4444,
"end": 4465,
"start": 4444,
"type": "TagDeclarator",
"value": "rectangleSegmentD003"
},
@ -803,9 +803,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -816,9 +816,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -829,9 +829,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -842,9 +842,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -865,9 +865,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -890,9 +890,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -915,9 +915,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -940,9 +940,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -1285,9 +1285,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 344,
"end": 365,
"start": 344,
"commentStart": 362,
"end": 383,
"start": 362,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -1310,9 +1310,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 452,
"end": 473,
"start": 452,
"commentStart": 467,
"end": 488,
"start": 467,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
@ -1335,9 +1335,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 578,
"end": 599,
"start": 578,
"commentStart": 590,
"end": 611,
"start": 590,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
@ -1360,9 +1360,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 669,
"end": 690,
"start": 669,
"commentStart": 681,
"end": 702,
"start": 681,
"type": "TagDeclarator",
"value": "rectangleSegmentD001"
},
@ -1483,9 +1483,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -1508,9 +1508,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -1533,9 +1533,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -1558,9 +1558,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -1681,9 +1681,9 @@ description: Variables in memory after executing enclosure.kcl
3.0
],
"tag": {
"commentStart": 4061,
"end": 4082,
"start": 4061,
"commentStart": 4103,
"end": 4124,
"start": 4103,
"type": "TagDeclarator",
"value": "rectangleSegmentA003"
},
@ -1706,9 +1706,9 @@ description: Variables in memory after executing enclosure.kcl
3.0
],
"tag": {
"commentStart": 4191,
"end": 4212,
"start": 4191,
"commentStart": 4230,
"end": 4251,
"start": 4230,
"type": "TagDeclarator",
"value": "rectangleSegmentB003"
},
@ -1731,9 +1731,9 @@ description: Variables in memory after executing enclosure.kcl
172.0
],
"tag": {
"commentStart": 4317,
"end": 4338,
"start": 4317,
"commentStart": 4353,
"end": 4374,
"start": 4353,
"type": "TagDeclarator",
"value": "rectangleSegmentC003"
},
@ -1756,9 +1756,9 @@ description: Variables in memory after executing enclosure.kcl
172.0
],
"tag": {
"commentStart": 4408,
"end": 4429,
"start": 4408,
"commentStart": 4444,
"end": 4465,
"start": 4444,
"type": "TagDeclarator",
"value": "rectangleSegmentD003"
},
@ -1821,9 +1821,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -1834,9 +1834,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -1847,9 +1847,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -1860,9 +1860,9 @@ description: Variables in memory after executing enclosure.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},
@ -1883,9 +1883,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2416,
"end": 2437,
"start": 2416,
"commentStart": 2446,
"end": 2467,
"start": 2446,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -1908,9 +1908,9 @@ description: Variables in memory after executing enclosure.kcl
0.0
],
"tag": {
"commentStart": 2524,
"end": 2545,
"start": 2524,
"commentStart": 2551,
"end": 2572,
"start": 2551,
"type": "TagDeclarator",
"value": "rectangleSegmentB002"
},
@ -1933,9 +1933,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2650,
"end": 2671,
"start": 2650,
"commentStart": 2674,
"end": 2695,
"start": 2674,
"type": "TagDeclarator",
"value": "rectangleSegmentC002"
},
@ -1958,9 +1958,9 @@ description: Variables in memory after executing enclosure.kcl
175.0
],
"tag": {
"commentStart": 2741,
"end": 2762,
"start": 2741,
"commentStart": 2765,
"end": 2786,
"start": 2765,
"type": "TagDeclarator",
"value": "rectangleSegmentD002"
},