@teachinglab/omd 0.7.23 → 0.7.24

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/omd.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.7.23",
3
+ "version": "0.7.24",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/src/omd.js CHANGED
@@ -28,6 +28,7 @@ import { omdRectangle } from "./omdShapes.js";
28
28
  import { omdEllipse } from "./omdShapes.js";
29
29
  import { omdCircle } from "./omdShapes.js";
30
30
  import { omdRegularPolygon } from "./omdShapes.js";
31
+ import { omdLabel } from "./omdLabel.js";
31
32
  import { jsvgContainer } from "@teachinglab/jsvg";
32
33
 
33
34
  export class omd extends jsvgContainer
@@ -172,6 +173,9 @@ export class omd extends jsvgContainer
172
173
  case "regularPolygon":
173
174
  N = new omdRegularPolygon();
174
175
  break;
176
+ case "label":
177
+ N = new omdLabel();
178
+ break;
175
179
  default:
176
180
  console.error(`Unsupported OMD type: ${omdType}. Available types: number, variable, operator, term, expression, powerExpression, rationalExpression, function, equation, numberLine, balanceHanger, tapeDiagram, numberTile, ratioChart, coordinatePlane, spinner, table, tileEquation, rightTriangle, isoscelesTriangle, rectangle, ellipse, circle, regularPolygon`);
177
181
  return;