bg2e-js 2.2.0 → 2.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bg2e-js",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "a graphics engine for productivity applications",
5
5
  "main": "./dist/bg2e-js.js",
6
6
  "types": "./src/index.ts",
@@ -102,7 +102,10 @@ export const vectorTypeLoader: TypeLoader = {
102
102
  return null;
103
103
  }
104
104
 
105
- if (obj instanceof Vec) {
105
+ if (Array.isArray(obj)) {
106
+ return new Vec(obj);
107
+ }
108
+ else if (obj instanceof Vec) {
106
109
  return obj;
107
110
  }
108
111
  else {