gl-draw 0.9.13 → 0.9.15

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.
@@ -123,11 +123,12 @@ class pl {
123
123
  return R(this, arguments, function* (l, {
124
124
  create: Z
125
125
  } = {}) {
126
+ var W;
126
127
  const { objectType: b, objectOptions: G } = l, [, c] = b.split("#"), X = yield this.draw(c, J(y({}, G || {}), {
127
128
  create: Z,
128
129
  prefab: !1
129
130
  }));
130
- return X.setMaterialList("instantiate", "clone"), X.useMaterial("instantiate"), X;
131
+ return X.position.set(0, 0, 0), X.rotation.set(0, 0, 0), X.setMaterialList("instantiate", "clone"), X.useMaterial("instantiate"), (W = X.object3d) != null && W.userData.bloom && this.pencil.composerController.toggleBloomSelection(X.object3d), X;
131
132
  });
132
133
  }
133
134
  initGroup() {
@@ -229,7 +230,7 @@ class pl {
229
230
  showPrefab(l) {
230
231
  var Z;
231
232
  this.hide(), (Z = this.prefabGroup) == null || Z.show(), this.objects.forEach((d) => {
232
- d.prefab && (d.key === l ? d.show() : d.hide());
233
+ d.prefab && (l ? d.key === l ? d.show() : d.hide() : d.show());
233
234
  });
234
235
  }
235
236
  hidePrefab() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gl-draw",
3
- "version": "0.9.13",
3
+ "version": "0.9.15",
4
4
  "author": "gitplus <hstits@gmail.com>",
5
5
  "scripts": {
6
6
  "start": "bundler-dev",
@@ -60,7 +60,7 @@
60
60
  "copyfiles": "^2.4.1",
61
61
  "eslint-config-bundler": "^0.4.2",
62
62
  "events": "^3.3.0",
63
- "geojson-cn": "^0.1.21",
63
+ "geojson-cn": "^0.1.25",
64
64
  "lodash-es": "^4.17.21",
65
65
  "pinia": "^2.0.14",
66
66
  "prettier-config-bundler": "^0.4.3",