jspsych-tangram 0.0.1 → 0.0.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.
@@ -3434,11 +3434,11 @@ function constructFromSpec(sideLens, angles, firstEdgeUnits) {
3434
3434
  return pts;
3435
3435
  }
3436
3436
  const FIRST_EDGES_UNITS = {
3437
- small_triangle: [P(0, 0), P(0.5, 0.5)],
3438
- parallelogram: [P(0, 0), P(0.5, 0)],
3439
- large_triangle: [P(0, 0), P(0.5, -0.5)],
3440
- med_triangle: [P(0, 0), P(0.5, 0)],
3441
- square: [P(0, 0), P(0.5, 0)]
3437
+ "small-triangle": [P(0, 0), P(0.5, 0.5)],
3438
+ "parallelogram": [P(0, 0), P(0.5, 0)],
3439
+ "large-triangle": [P(0, 0), P(0.5, -0.5)],
3440
+ "med-triangle": [P(0, 0), P(0.5, 0)],
3441
+ "square": [P(0, 0), P(0.5, 0)]
3442
3442
  };
3443
3443
  const PRIMITIVE_BLUEPRINTS_CACHE = (() => {
3444
3444
  const specs = [
@@ -3451,7 +3451,7 @@ const PRIMITIVE_BLUEPRINTS_CACHE = (() => {
3451
3451
  },
3452
3452
  {
3453
3453
  id: "prim:small",
3454
- kind: "small_triangle",
3454
+ kind: "small-triangle",
3455
3455
  sideLens: [HALFDIAGONAL, HALFDIAGONAL, HALFUNIT, HALFUNIT, HALFUNIT, HALFUNIT],
3456
3456
  angles: [180, 45, 180, 90, 180, 45],
3457
3457
  color: "#f59e0b"
@@ -3465,14 +3465,14 @@ const PRIMITIVE_BLUEPRINTS_CACHE = (() => {
3465
3465
  },
3466
3466
  {
3467
3467
  id: "prim:med",
3468
- kind: "med_triangle",
3468
+ kind: "med-triangle",
3469
3469
  sideLens: [HALFUNIT, HALFUNIT, HALFUNIT, HALFUNIT, HALFDIAGONAL, HALFDIAGONAL, HALFDIAGONAL, HALFDIAGONAL],
3470
3470
  angles: [180, 180, 180, 45, 180, 90, 180, 45],
3471
3471
  color: "#3b82f6"
3472
3472
  },
3473
3473
  {
3474
3474
  id: "prim:large",
3475
- kind: "large_triangle",
3475
+ kind: "large-triangle",
3476
3476
  sideLens: [
3477
3477
  HALFDIAGONAL,
3478
3478
  HALFDIAGONAL,