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