ekms 9.6.3-beta.2 → 9.6.3-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -357,7 +357,7 @@
357
357
  },
358
358
  {
359
359
  "match": "({context, contextHierarchy}) => {\n if (!context.pullFromContext || !context.evaluate || !contextHierarchy.under('call') || context.notUnderCall) {\n return false\n }\n \n if (context.marker == 'point' || context.marker == 'ordinal') {\n return true\n }\n }",
360
- "apply": "async ({context, e, fragments, stm, toEValue, toArray, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {\n const evaluated = await e({...context, notUnderCall: true})\n const pointsContext = toEValue(evaluated)\n const pathComponents = toArray(pointsContext)\n\n const path = (await fragments('path')).contexts()[0]\n delete path.value\n path.points = pathComponents.reverse()\n await mentioned(path)\n resolveEvaluate(context, path)\n }"
360
+ "apply": "async ({context, e, fragments, stm, toEValue, toArray, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {\n const evaluated = await e({...context, notUnderCall: true})\n const pointsContext = toEValue(evaluated)\n const pathComponents = toArray(pointsContext)\n\n const path = (await fragments('path')).contexts()[0]\n delete path.value\n path.points = [...pathComponents]\n await mentioned(path)\n resolveEvaluate(context, path)\n }"
361
361
  },
362
362
  {
363
363
  "match": "({context}) => context.marker == 'thenTime'",
@@ -45297,6 +45297,24 @@
45297
45297
  0
45298
45298
  ]
45299
45299
  ],
45300
+ [
45301
+ [
45302
+ "is",
45303
+ 0
45304
+ ],
45305
+ [
45306
+ "list",
45307
+ 1
45308
+ ],
45309
+ [
45310
+ "point",
45311
+ 0
45312
+ ],
45313
+ [
45314
+ "unknown",
45315
+ 0
45316
+ ]
45317
+ ],
45300
45318
  [
45301
45319
  [
45302
45320
  "is",
@@ -85640,6 +85658,24 @@
85640
85658
  0
85641
85659
  ]
85642
85660
  ],
85661
+ [
85662
+ [
85663
+ "is",
85664
+ 0
85665
+ ],
85666
+ [
85667
+ "list",
85668
+ 1
85669
+ ],
85670
+ [
85671
+ "point",
85672
+ 0
85673
+ ],
85674
+ [
85675
+ "unknown",
85676
+ 0
85677
+ ]
85678
+ ],
85643
85679
  [
85644
85680
  [
85645
85681
  "is",
package/common/drone.js CHANGED
@@ -418,7 +418,10 @@ class API {
418
418
  if (pathComponent.marker == 'pause') {
419
419
  this.pause(pathComponent.pauseSeconds, { batched: true })
420
420
  } else {
421
- const destinationPoint = pathComponent.point
421
+ const points = this.args.toArray(pathComponent)
422
+ // const destinationPoint = pathComponent.point
423
+ const destinationPoint = points[0].point || points[0]
424
+ debugger
422
425
  if (currentPoint.x == destinationPoint.x && currentPoint.y == destinationPoint.y) {
423
426
  // already there
424
427
  } else {
@@ -1136,7 +1139,7 @@ const template = {
1136
1139
 
1137
1140
  const path = (await fragments('path')).contexts()[0]
1138
1141
  delete path.value
1139
- path.points = pathComponents.reverse()
1142
+ path.points = [...pathComponents]
1140
1143
  await mentioned(path)
1141
1144
  resolveEvaluate(context, path)
1142
1145
  },