Previously, `xLine`, `xLineTo`, `yLine` and `yLineTo` used positional arguments. Now: - `xLineTo` and `yLineTo` have been removed - `xLine` and `yLine` both use keyword arguments: - `length`, optional (i.e. a relative distance along the X or Y axis) - `endAbsolute` optional (i.e. an absolute point along the X or Y axis) - `tag` optional - Exactly one of `length` or `endAbsolute` must be given. Not both, not neither. For example: ``` // Old way |> xLine(6.04, %) |> yLineTo(20, %, $base) // New way |> xLine(length = 6.04) |> yLine(endAbsolute = 20, tag = $base) ``` This also improves some of the general-purpose keyword arguments code in modeling app's TS codebase.
		
			
				
	
	
		
			111 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			111 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Variables in memory after executing 3d-boaty.kcl
 | 
						|
---
 | 
						|
{
 | 
						|
  "armRest": {
 | 
						|
    "type": "Function",
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          3671,
 | 
						|
          3861,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "backSlats": {
 | 
						|
    "type": "Function",
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          2993,
 | 
						|
          3084,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "benchLength": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 56.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Mm"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          440,
 | 
						|
          442,
 | 
						|
          0
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "connector": {
 | 
						|
    "type": "Function",
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          1889,
 | 
						|
          2052,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "divider": {
 | 
						|
    "type": "Function",
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          1331,
 | 
						|
          1606,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "dividerThickness": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 4.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Mm"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          290,
 | 
						|
          291,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "seatSlats": {
 | 
						|
    "type": "Function",
 | 
						|
    "__meta": [
 | 
						|
      {
 | 
						|
        "sourceRange": [
 | 
						|
          2474,
 | 
						|
          2560,
 | 
						|
          3
 | 
						|
        ]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  }
 | 
						|
}
 |