ttpg-darrell 1.0.21 → 1.0.23

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.
@@ -31,7 +31,9 @@ class SimpleToContainerHandler {
31
31
  if (!container) {
32
32
  return false;
33
33
  }
34
- container.addObjects([obj]);
34
+ const index = 0;
35
+ const showAnimation = true;
36
+ container.addObjects([obj], index, showAnimation);
35
37
  return true;
36
38
  }
37
39
  _getContainer(obj) {
@@ -38,7 +38,7 @@ class SimpleToSnapPointHandler {
38
38
  if (otherObj && otherObj.getSnappedToPoint() === snapPoint) {
39
39
  return false;
40
40
  }
41
- obj.setPosition(snapPoint.getGlobalPosition().add([0, 0, 10]));
41
+ obj.setPosition(snapPoint.getGlobalPosition().add([0, 0, 10]), 1);
42
42
  obj.snapToGround(); // get in range
43
43
  obj.snap();
44
44
  return true;
@@ -1,5 +1,7 @@
1
1
  export * from "./garbage/garbage-container";
2
2
  export * from "./garbage/simple-card-garbage-handler";
3
+ export * from "./garbage/simple-to-container-handler";
4
+ export * from "./garbage/simple-to-snap-point-handler";
3
5
  export * from "./global/abstract-global";
4
6
  export * from "./global/content-menu/leave-seat";
5
7
  export * from "./locale/locale";
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./garbage/garbage-container"), exports);
18
18
  __exportStar(require("./garbage/simple-card-garbage-handler"), exports);
19
+ __exportStar(require("./garbage/simple-to-container-handler"), exports);
20
+ __exportStar(require("./garbage/simple-to-snap-point-handler"), exports);
19
21
  __exportStar(require("./global/abstract-global"), exports);
20
22
  __exportStar(require("./global/content-menu/leave-seat"), exports);
21
23
  __exportStar(require("./locale/locale"), exports);
@@ -28,7 +28,9 @@ export class SimpleToContainerHandler {
28
28
  if (!container) {
29
29
  return false;
30
30
  }
31
- container.addObjects([obj]);
31
+ const index = 0;
32
+ const showAnimation = true;
33
+ container.addObjects([obj], index, showAnimation);
32
34
  return true;
33
35
  }
34
36
  _getContainer(obj) {
@@ -35,7 +35,7 @@ export class SimpleToSnapPointHandler {
35
35
  if (otherObj && otherObj.getSnappedToPoint() === snapPoint) {
36
36
  return false;
37
37
  }
38
- obj.setPosition(snapPoint.getGlobalPosition().add([0, 0, 10]));
38
+ obj.setPosition(snapPoint.getGlobalPosition().add([0, 0, 10]), 1);
39
39
  obj.snapToGround(); // get in range
40
40
  obj.snap();
41
41
  return true;
@@ -1,5 +1,7 @@
1
1
  export * from "./garbage/garbage-container";
2
2
  export * from "./garbage/simple-card-garbage-handler";
3
+ export * from "./garbage/simple-to-container-handler";
4
+ export * from "./garbage/simple-to-snap-point-handler";
3
5
  export * from "./global/abstract-global";
4
6
  export * from "./global/content-menu/leave-seat";
5
7
  export * from "./locale/locale";
@@ -1,5 +1,7 @@
1
1
  export * from "./garbage/garbage-container";
2
2
  export * from "./garbage/simple-card-garbage-handler";
3
+ export * from "./garbage/simple-to-container-handler";
4
+ export * from "./garbage/simple-to-snap-point-handler";
3
5
  export * from "./global/abstract-global";
4
6
  export * from "./global/content-menu/leave-seat";
5
7
  export * from "./locale/locale";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttpg-darrell",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "TTPG TypeScript library",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",