@vived/app 4.24.0 → 4.26.0

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 (184) hide show
  1. package/lib/Components/App/Controller/index.d.ts +1 -0
  2. package/lib/Components/App/Controller/index.js +1 -0
  3. package/lib/Components/App/Controller/updateContentSize.d.ts +2 -0
  4. package/lib/Components/App/Controller/updateContentSize.js +13 -0
  5. package/lib/Components/App/Entity/BaseAppState.d.ts +2 -0
  6. package/lib/Components/App/Entity/BaseAppState.js +7 -0
  7. package/lib/Components/App/Mocks/MockUpdateContentSizeUC.d.ts +9 -0
  8. package/lib/Components/App/Mocks/MockUpdateContentSizeUC.js +15 -0
  9. package/lib/Components/App/Mocks/index.d.ts +1 -0
  10. package/lib/Components/App/Mocks/index.js +1 -0
  11. package/lib/Components/App/UC/SerializeBaseAppState.d.ts +17 -0
  12. package/lib/Components/App/UC/SerializeBaseAppState.js +59 -0
  13. package/lib/Components/App/UC/UpdateContentSizeUC.d.ts +7 -0
  14. package/lib/Components/App/UC/UpdateContentSizeUC.js +33 -0
  15. package/lib/Components/App/UC/index.d.ts +2 -0
  16. package/lib/Components/App/UC/index.js +2 -0
  17. package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.d.ts +3 -0
  18. package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.js +23 -0
  19. package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.d.ts +3 -0
  20. package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.js +23 -0
  21. package/lib/Components/Challenge/Adapters/index.d.ts +3 -0
  22. package/lib/Components/Challenge/Adapters/index.js +15 -0
  23. package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.d.ts +3 -0
  24. package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.js +29 -0
  25. package/lib/Components/Challenge/Controller/clickTryChallengeAgain.d.ts +2 -0
  26. package/lib/Components/Challenge/Controller/clickTryChallengeAgain.js +13 -0
  27. package/lib/Components/Challenge/Controller/index.d.ts +1 -0
  28. package/lib/Components/Challenge/Controller/index.js +1 -0
  29. package/lib/Components/Challenge/Mocks/TryChallengeAgainUcMock.d.ts +8 -0
  30. package/lib/Components/Challenge/Mocks/TryChallengeAgainUcMock.js +15 -0
  31. package/lib/Components/Challenge/Mocks/index.d.ts +1 -0
  32. package/lib/Components/Challenge/Mocks/index.js +1 -0
  33. package/lib/Components/Challenge/UCs/TryChallengeAgainUC.d.ts +6 -0
  34. package/lib/Components/Challenge/UCs/TryChallengeAgainUC.js +11 -0
  35. package/lib/Components/Challenge/UCs/index.d.ts +1 -0
  36. package/lib/Components/Challenge/UCs/index.js +1 -0
  37. package/lib/Components/Challenge/index.d.ts +1 -1
  38. package/lib/Components/Challenge/index.js +1 -1
  39. package/lib/Components/ChannelModel/Adapters/index.d.ts +1 -0
  40. package/lib/Components/ChannelModel/Adapters/index.js +1 -0
  41. package/lib/Components/ChannelModel/Adapters/modelHasLandmarksAdapter.d.ts +2 -0
  42. package/lib/Components/ChannelModel/Adapters/modelHasLandmarksAdapter.js +27 -0
  43. package/lib/Components/ChannelModel/Mocks/ModelHasLandmarksPmMock.d.ts +7 -0
  44. package/lib/Components/ChannelModel/Mocks/ModelHasLandmarksPmMock.js +11 -0
  45. package/lib/Components/ChannelModel/Mocks/index.d.ts +1 -0
  46. package/lib/Components/ChannelModel/Mocks/index.js +1 -0
  47. package/lib/Components/ChannelModel/PMs/ModelHasLandmarksPM.d.ts +6 -0
  48. package/lib/Components/ChannelModel/PMs/ModelHasLandmarksPM.js +56 -0
  49. package/lib/Components/ChannelModel/PMs/index.d.ts +1 -0
  50. package/lib/Components/ChannelModel/PMs/index.js +1 -0
  51. package/lib/Components/FramedScreen/Adapters/framedContainerAdapter.d.ts +3 -0
  52. package/lib/Components/FramedScreen/Adapters/framedContainerAdapter.js +23 -0
  53. package/lib/Components/FramedScreen/Adapters/framedScreenSizeAdapter.d.ts +3 -0
  54. package/lib/Components/FramedScreen/Adapters/framedScreenSizeAdapter.js +23 -0
  55. package/lib/Components/FramedScreen/Adapters/index.d.ts +2 -0
  56. package/lib/Components/FramedScreen/Adapters/index.js +14 -0
  57. package/lib/Components/FramedScreen/Mocks/FramedContainerPmMock.d.ts +7 -0
  58. package/lib/Components/FramedScreen/Mocks/FramedContainerPmMock.js +11 -0
  59. package/lib/Components/FramedScreen/Mocks/FramedScreenSizePmMock.d.ts +8 -0
  60. package/lib/Components/FramedScreen/Mocks/FramedScreenSizePmMock.js +15 -0
  61. package/lib/Components/FramedScreen/Mocks/index.d.ts +2 -0
  62. package/lib/Components/FramedScreen/Mocks/index.js +14 -0
  63. package/lib/Components/FramedScreen/PM/FramedContainerPM.d.ts +16 -0
  64. package/lib/Components/FramedScreen/PM/FramedContainerPM.js +66 -0
  65. package/lib/Components/FramedScreen/PM/FramedScreenSizePM.d.ts +2 -6
  66. package/lib/Components/FramedScreen/PM/FramedScreenSizePM.js +16 -14
  67. package/lib/Components/FramedScreen/PM/index.d.ts +1 -1
  68. package/lib/Components/FramedScreen/PM/index.js +1 -1
  69. package/lib/Components/FramedScreen/index.d.ts +2 -0
  70. package/lib/Components/FramedScreen/index.js +2 -0
  71. package/lib/Components/Landmarks/Adapters/index.d.ts +2 -0
  72. package/lib/Components/Landmarks/Adapters/index.js +14 -0
  73. package/lib/Components/Landmarks/Adapters/landmarkListAdapter.d.ts +2 -0
  74. package/lib/Components/Landmarks/Adapters/landmarkListAdapter.js +25 -0
  75. package/lib/Components/Landmarks/Adapters/landmarkSizeAdapter.d.ts +2 -0
  76. package/lib/Components/Landmarks/Adapters/landmarkSizeAdapter.js +23 -0
  77. package/lib/Components/Landmarks/Controller/MouseLandmark.d.ts +3 -13
  78. package/lib/Components/Landmarks/Controller/MouseLandmark.js +8 -16
  79. package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.d.ts +1 -1
  80. package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.js +2 -8
  81. package/lib/Components/Landmarks/Controller/TouchLandmark.d.ts +2 -12
  82. package/lib/Components/Landmarks/Controller/TouchLandmark.js +12 -19
  83. package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.d.ts +1 -1
  84. package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.js +3 -9
  85. package/lib/Components/Landmarks/Controller/deleteAllLandmarks.d.ts +2 -0
  86. package/lib/Components/Landmarks/Controller/deleteAllLandmarks.js +13 -0
  87. package/lib/Components/Landmarks/Controller/deleteLandmark.d.ts +2 -0
  88. package/lib/Components/Landmarks/Controller/deleteLandmark.js +14 -0
  89. package/lib/Components/Landmarks/Controller/index.d.ts +2 -1
  90. package/lib/Components/Landmarks/Controller/index.js +2 -1
  91. package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.d.ts +2 -0
  92. package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.js +19 -0
  93. package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.d.ts +2 -0
  94. package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.js +19 -0
  95. package/lib/Components/Landmarks/Entities/LandmarkEntity.d.ts +5 -3
  96. package/lib/Components/Landmarks/Entities/LandmarkEntity.js +18 -6
  97. package/lib/Components/Landmarks/Entities/LandmarkGlobals.d.ts +2 -3
  98. package/lib/Components/Landmarks/Entities/LandmarkGlobals.js +5 -10
  99. package/lib/Components/Landmarks/Entities/LandmarkRepo.d.ts +7 -1
  100. package/lib/Components/Landmarks/Entities/LandmarkRepo.js +26 -4
  101. package/lib/Components/Landmarks/Mocks/DeleteAllLandmarksUcMock.d.ts +8 -0
  102. package/lib/Components/Landmarks/Mocks/DeleteAllLandmarksUcMock.js +15 -0
  103. package/lib/Components/Landmarks/Mocks/DeleteLandmarkUcMock.d.ts +7 -0
  104. package/lib/Components/Landmarks/Mocks/DeleteLandmarkUcMock.js +11 -0
  105. package/lib/Components/Landmarks/Mocks/LandmarkListPmMock.d.ts +7 -0
  106. package/lib/Components/Landmarks/Mocks/LandmarkListPmMock.js +11 -0
  107. package/lib/Components/Landmarks/Mocks/LandmarkSizePmMock.d.ts +7 -0
  108. package/lib/Components/Landmarks/Mocks/LandmarkSizePmMock.js +11 -0
  109. package/lib/Components/Landmarks/Mocks/MockLandmark.d.ts +3 -1
  110. package/lib/Components/Landmarks/Mocks/MockLandmark.js +9 -0
  111. package/lib/Components/Landmarks/Mocks/MockTryAddNewLandmarkUC.d.ts +10 -0
  112. package/lib/Components/Landmarks/Mocks/MockTryAddNewLandmarkUC.js +17 -0
  113. package/lib/Components/Landmarks/Mocks/MockTryPreviewLandmarkUC.d.ts +10 -0
  114. package/lib/Components/Landmarks/Mocks/MockTryPreviewLandmarkUC.js +17 -0
  115. package/lib/Components/Landmarks/Mocks/SetLandmarkSizeUcMark.d.ts +8 -0
  116. package/lib/Components/Landmarks/Mocks/SetLandmarkSizeUcMark.js +12 -0
  117. package/lib/Components/Landmarks/Mocks/index.d.ts +6 -0
  118. package/lib/Components/Landmarks/Mocks/index.js +18 -0
  119. package/lib/Components/Landmarks/Mocks/makeLandmarkDTO.d.ts +2 -0
  120. package/lib/Components/Landmarks/Mocks/makeLandmarkDTO.js +20 -0
  121. package/lib/Components/Landmarks/PM/LandmarkListPM.d.ts +4 -8
  122. package/lib/Components/Landmarks/PM/LandmarkListPM.js +19 -26
  123. package/lib/Components/Landmarks/PM/LandmarkSizePM.d.ts +4 -8
  124. package/lib/Components/Landmarks/PM/LandmarkSizePM.js +19 -20
  125. package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.d.ts +4 -6
  126. package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.js +14 -27
  127. package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUC.d.ts +7 -0
  128. package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUC.js +35 -0
  129. package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUndoRedo.d.ts +10 -0
  130. package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUndoRedo.js +37 -0
  131. package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.d.ts +5 -6
  132. package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.js +24 -34
  133. package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.d.ts +4 -6
  134. package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.js +14 -27
  135. package/lib/Components/Landmarks/UseCases/SerializeLandmarks.d.ts +2 -0
  136. package/lib/Components/Landmarks/UseCases/SerializeLandmarks.js +27 -40
  137. package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.d.ts +6 -9
  138. package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.js +33 -27
  139. package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.d.ts +10 -6
  140. package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.js +11 -20
  141. package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +1 -0
  142. package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +22 -18
  143. package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +3 -8
  144. package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +17 -18
  145. package/lib/Components/Landmarks/UseCases/index.d.ts +1 -1
  146. package/lib/Components/Landmarks/UseCases/index.js +1 -1
  147. package/lib/Components/Landmarks/index.d.ts +2 -0
  148. package/lib/Components/Landmarks/index.js +2 -0
  149. package/lib/Components/StateMachine/Entities/StateMachineEntity.d.ts +1 -1
  150. package/lib/Components/StateMachine/Entities/StateMachineEntity.js +6 -2
  151. package/lib/Components/zSpace/Adapters/index.d.ts +4 -0
  152. package/lib/Components/zSpace/Adapters/index.js +16 -0
  153. package/lib/Components/zSpace/Adapters/zSpaceDisplayAdapter.d.ts +3 -0
  154. package/lib/Components/zSpace/Adapters/zSpaceDisplayAdapter.js +23 -0
  155. package/lib/Components/zSpace/Adapters/zSpaceIsEnabledAdapter.d.ts +2 -0
  156. package/lib/Components/zSpace/Adapters/zSpaceIsEnabledAdapter.js +23 -0
  157. package/lib/Components/zSpace/Adapters/zSpaceIsSupportedAdapter.d.ts +2 -0
  158. package/lib/Components/zSpace/Adapters/zSpaceIsSupportedAdapter.js +23 -0
  159. package/lib/Components/zSpace/Adapters/zSpaceViewerScaleAdapter.d.ts +2 -0
  160. package/lib/Components/zSpace/Adapters/zSpaceViewerScaleAdapter.js +23 -0
  161. package/lib/Components/zSpace/Mocks/ZSpaceDisplayPmMock.d.ts +8 -0
  162. package/lib/Components/zSpace/Mocks/ZSpaceDisplayPmMock.js +15 -0
  163. package/lib/Components/zSpace/Mocks/ZSpaceIsEnabledPmMock.d.ts +8 -0
  164. package/lib/Components/zSpace/Mocks/ZSpaceIsEnabledPmMock.js +15 -0
  165. package/lib/Components/zSpace/Mocks/ZSpaceIsSupportedPmMock.d.ts +8 -0
  166. package/lib/Components/zSpace/Mocks/ZSpaceIsSupportedPmMock.js +15 -0
  167. package/lib/Components/zSpace/Mocks/ZSpaceViewerScalePmMock.d.ts +8 -0
  168. package/lib/Components/zSpace/Mocks/ZSpaceViewerScalePmMock.js +15 -0
  169. package/lib/Components/zSpace/Mocks/index.d.ts +5 -0
  170. package/lib/Components/zSpace/Mocks/index.js +17 -0
  171. package/lib/Components/zSpace/PM/ZSpaceDisplayPM.d.ts +3 -0
  172. package/lib/Components/zSpace/PM/ZSpaceDisplayPM.js +20 -25
  173. package/lib/Components/zSpace/PM/ZSpaceIsEnabledPM.d.ts +2 -0
  174. package/lib/Components/zSpace/PM/ZSpaceIsEnabledPM.js +10 -16
  175. package/lib/Components/zSpace/PM/ZSpaceIsSupportedPM.js +10 -18
  176. package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.d.ts +2 -1
  177. package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.js +9 -16
  178. package/lib/Components/zSpace/index.d.ts +2 -0
  179. package/lib/Components/zSpace/index.js +2 -0
  180. package/lib/Entities/RangedNumber.d.ts +16 -0
  181. package/lib/Entities/RangedNumber.js +35 -0
  182. package/lib/Entities/index.d.ts +1 -0
  183. package/lib/Entities/index.js +1 -0
  184. package/package.json +1 -1
@@ -2,4 +2,5 @@ export * from "./ActiveModelObjectListPM";
2
2
  export * from "./ActiveModelPM";
3
3
  export * from "./ChannelModelObjectPM";
4
4
  export * from "./ChannelModelPM";
5
+ export * from "./ModelHasLandmarksPM";
5
6
  export * from "./ModelObjectsAreHiddenPM";
@@ -14,4 +14,5 @@ __exportStar(require("./ActiveModelObjectListPM"), exports);
14
14
  __exportStar(require("./ActiveModelPM"), exports);
15
15
  __exportStar(require("./ChannelModelObjectPM"), exports);
16
16
  __exportStar(require("./ChannelModelPM"), exports);
17
+ __exportStar(require("./ModelHasLandmarksPM"), exports);
17
18
  __exportStar(require("./ModelObjectsAreHiddenPM"), exports);
@@ -0,0 +1,3 @@
1
+ import { PmAdapter } from "../../../Types";
2
+ import { FramedContainerVM } from "../PM/FramedContainerPM";
3
+ export declare const framedContainerAdapter: PmAdapter<FramedContainerVM>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.framedContainerAdapter = void 0;
4
+ const FramedContainerPM_1 = require("../PM/FramedContainerPM");
5
+ exports.framedContainerAdapter = {
6
+ defaultVM: FramedContainerPM_1.defaultFramedContainerVM,
7
+ subscribe: (id, appObjects, setVM) => {
8
+ const pm = FramedContainerPM_1.FramedContainerPM.get(id, appObjects);
9
+ if (!pm) {
10
+ appObjects.submitError("framedContainerAdapter", "Unable to find FramedContainerPM");
11
+ return;
12
+ }
13
+ pm.addView(setVM);
14
+ },
15
+ unsubscribe: (id, appObjects, setVM) => {
16
+ const pm = FramedContainerPM_1.FramedContainerPM.get(id, appObjects);
17
+ if (!pm) {
18
+ appObjects.submitError("framedContainerAdapter", "Unable to find FramedContainerPM");
19
+ return;
20
+ }
21
+ pm.removeView(setVM);
22
+ },
23
+ };
@@ -0,0 +1,3 @@
1
+ import { SingletonPmAdapter } from "../../../Types";
2
+ import { FramedScreenSizeVM } from "../PM/FramedScreenSizePM";
3
+ export declare const framedScreenSizeAdapter: SingletonPmAdapter<FramedScreenSizeVM>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.framedScreenSizeAdapter = void 0;
4
+ const FramedScreenSizePM_1 = require("../PM/FramedScreenSizePM");
5
+ exports.framedScreenSizeAdapter = {
6
+ defaultVM: FramedScreenSizePM_1.defaultFramedScreenVM,
7
+ subscribe: (appObjects, setVM) => {
8
+ const pm = FramedScreenSizePM_1.FramedScreenSizePM.get(appObjects);
9
+ if (!pm) {
10
+ appObjects.submitError("framedScreenSizeAdapter", "Unable to find FramedScreenSizePM");
11
+ return;
12
+ }
13
+ pm.addView(setVM);
14
+ },
15
+ unsubscribe: (appObjects, setVM) => {
16
+ const pm = FramedScreenSizePM_1.FramedScreenSizePM.get(appObjects);
17
+ if (!pm) {
18
+ appObjects.submitError("framedScreenSizeAdapter", "Unable to find FramedScreenSizePM");
19
+ return;
20
+ }
21
+ pm.removeView(setVM);
22
+ },
23
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./framedContainerAdapter";
2
+ export * from "./framedScreenSizeAdapter";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./framedContainerAdapter"), exports);
14
+ __exportStar(require("./framedScreenSizeAdapter"), exports);
@@ -0,0 +1,7 @@
1
+ /// <reference types="jest" />
2
+ import { AppObject } from "../../../AppObject";
3
+ import { FramedContainerPM } from "../PM/FramedContainerPM";
4
+ export declare class FramedContainerPmMock extends FramedContainerPM {
5
+ vmsAreEqual: jest.Mock<any, any>;
6
+ constructor(appObject: AppObject);
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FramedContainerPmMock = void 0;
4
+ const FramedContainerPM_1 = require("../PM/FramedContainerPM");
5
+ class FramedContainerPmMock extends FramedContainerPM_1.FramedContainerPM {
6
+ constructor(appObject) {
7
+ super(appObject, FramedContainerPM_1.FramedContainerPM.type);
8
+ this.vmsAreEqual = jest.fn();
9
+ }
10
+ }
11
+ exports.FramedContainerPmMock = FramedContainerPmMock;
@@ -0,0 +1,8 @@
1
+ /// <reference types="jest" />
2
+ import { AppObject, AppObjectRepo } from "../../../AppObject";
3
+ import { FramedScreenSizePM } from "../PM/FramedScreenSizePM";
4
+ export declare class FramedScreenSizePmMock extends FramedScreenSizePM {
5
+ vmsAreEqual: jest.Mock<any, any>;
6
+ constructor(appObject: AppObject);
7
+ }
8
+ export declare function makeFramedScreenSizePmMock(appObjects: AppObjectRepo): FramedScreenSizePmMock;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeFramedScreenSizePmMock = exports.FramedScreenSizePmMock = void 0;
4
+ const FramedScreenSizePM_1 = require("../PM/FramedScreenSizePM");
5
+ class FramedScreenSizePmMock extends FramedScreenSizePM_1.FramedScreenSizePM {
6
+ constructor(appObject) {
7
+ super(appObject, FramedScreenSizePM_1.FramedScreenSizePM.type);
8
+ this.vmsAreEqual = jest.fn();
9
+ }
10
+ }
11
+ exports.FramedScreenSizePmMock = FramedScreenSizePmMock;
12
+ function makeFramedScreenSizePmMock(appObjects) {
13
+ return new FramedScreenSizePmMock(appObjects.getOrCreate("FramedScreenSizePmMock"));
14
+ }
15
+ exports.makeFramedScreenSizePmMock = makeFramedScreenSizePmMock;
@@ -0,0 +1,2 @@
1
+ export * from "./FramedContainerPmMock";
2
+ export * from "./FramedScreenSizePmMock";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./FramedContainerPmMock"), exports);
14
+ __exportStar(require("./FramedScreenSizePmMock"), exports);
@@ -0,0 +1,16 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { AppObject } from "../../../AppObject/AppObject";
3
+ import { AppObjectPM } from "../../../AppObject/AppObjectPM";
4
+ export interface FramedContainerVM {
5
+ top: number;
6
+ left: number;
7
+ width: number;
8
+ height: number;
9
+ show: boolean;
10
+ }
11
+ export declare abstract class FramedContainerPM extends AppObjectPM<FramedContainerVM> {
12
+ static readonly type = "FramedContainerPM";
13
+ static get(id: string, appObjects: AppObjectRepo): FramedContainerPM | undefined;
14
+ }
15
+ export declare function makeFramedContainerPM(appObject: AppObject): FramedContainerPM;
16
+ export declare const defaultFramedContainerVM: FramedContainerVM;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultFramedContainerVM = exports.makeFramedContainerPM = exports.FramedContainerPM = void 0;
4
+ const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
5
+ const Entities_1 = require("../Entities");
6
+ class FramedContainerPM extends AppObjectPM_1.AppObjectPM {
7
+ static get(id, appObjects) {
8
+ var _a;
9
+ return (_a = appObjects
10
+ .get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(FramedContainerPM.type);
11
+ }
12
+ }
13
+ exports.FramedContainerPM = FramedContainerPM;
14
+ FramedContainerPM.type = "FramedContainerPM";
15
+ function makeFramedContainerPM(appObject) {
16
+ return new FramedContainerPMImp(appObject);
17
+ }
18
+ exports.makeFramedContainerPM = makeFramedContainerPM;
19
+ class FramedContainerPMImp extends FramedContainerPM {
20
+ constructor(appObject) {
21
+ super(appObject, FramedContainerPM.type);
22
+ this.onContainerChange = () => {
23
+ if (!this.container)
24
+ return;
25
+ const vm = {
26
+ height: this.container.size.y,
27
+ width: this.container.size.x,
28
+ top: this.container.position.y,
29
+ left: this.container.position.x,
30
+ show: this.container.show,
31
+ };
32
+ this.doUpdateView(vm);
33
+ };
34
+ this.dispose = () => {
35
+ var _a;
36
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onContainerChange);
37
+ };
38
+ this.container = appObject.getComponent(Entities_1.FramedScreenContainer.type);
39
+ if (!this.container) {
40
+ this.warn("FramedContainerPM has been added to an App Object that does not have a FramedScreenContainer");
41
+ return;
42
+ }
43
+ this.container.addChangeObserver(this.onContainerChange);
44
+ this.onContainerChange();
45
+ }
46
+ vmsAreEqual(a, b) {
47
+ if (a.height !== b.height)
48
+ return false;
49
+ if (a.width !== b.width)
50
+ return false;
51
+ if (a.top !== b.top)
52
+ return false;
53
+ if (a.left !== b.left)
54
+ return false;
55
+ if (a.show !== b.show)
56
+ return false;
57
+ return true;
58
+ }
59
+ }
60
+ exports.defaultFramedContainerVM = {
61
+ height: 0,
62
+ left: 0,
63
+ top: 0,
64
+ width: 0,
65
+ show: false,
66
+ };
@@ -5,13 +5,9 @@ export interface FramedScreenSizeVM {
5
5
  width: number;
6
6
  height: number;
7
7
  }
8
- export declare class FramedScreenSizePM extends AppObjectPM<FramedScreenSizeVM> {
8
+ export declare abstract class FramedScreenSizePM extends AppObjectPM<FramedScreenSizeVM> {
9
9
  static readonly type = "FramedScreenSizePM";
10
10
  static get: (appObjects: AppObjectRepo) => FramedScreenSizePM | undefined;
11
- private screen?;
12
- onContainerChange: () => void;
13
- vmsAreEqual(a: FramedScreenSizeVM, b: FramedScreenSizeVM): boolean;
14
- dispose: () => void;
15
- constructor(appObject: AppObject);
16
11
  }
12
+ export declare function makeFramedScreenSizePM(appObject: AppObject): FramedScreenSizePM;
17
13
  export declare const defaultFramedScreenVM: FramedScreenSizeVM;
@@ -1,11 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultFramedScreenVM = exports.FramedScreenSizePM = void 0;
3
+ exports.defaultFramedScreenVM = exports.makeFramedScreenSizePM = exports.FramedScreenSizePM = void 0;
4
4
  const AppObject_1 = require("../../../AppObject");
5
5
  const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
6
6
  const Entities_1 = require("../Entities");
7
7
  class FramedScreenSizePM extends AppObjectPM_1.AppObjectPM {
8
+ }
9
+ exports.FramedScreenSizePM = FramedScreenSizePM;
10
+ FramedScreenSizePM.type = "FramedScreenSizePM";
11
+ FramedScreenSizePM.get = (appObjects) => AppObject_1.getSingletonComponent(FramedScreenSizePM.type, appObjects);
12
+ function makeFramedScreenSizePM(appObject) {
13
+ return new FramedScreenSizePMImp(appObject);
14
+ }
15
+ exports.makeFramedScreenSizePM = makeFramedScreenSizePM;
16
+ class FramedScreenSizePMImp extends FramedScreenSizePM {
8
17
  constructor(appObject) {
18
+ var _a;
9
19
  super(appObject, FramedScreenSizePM.type);
10
20
  this.onContainerChange = () => {
11
21
  if (!this.screen)
@@ -16,17 +26,12 @@ class FramedScreenSizePM extends AppObjectPM_1.AppObjectPM {
16
26
  };
17
27
  this.doUpdateView(vm);
18
28
  };
19
- this.dispose = () => {
20
- var _a;
21
- (_a = this.screen) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onContainerChange);
22
- };
23
- this.screen = appObject.getComponent(Entities_1.FramedScreenEntity.type);
24
- if (!this.screen) {
25
- this.warn("FramedScreenSizePM has been added to an App Object that does not have a FramedScreenEntity");
26
- return;
27
- }
28
- this.screen.addChangeObserver(this.onContainerChange);
29
+ (_a = this.screen) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onContainerChange);
29
30
  this.onContainerChange();
31
+ this.appObjects.registerSingleton(this);
32
+ }
33
+ get screen() {
34
+ return this.getCachedSingleton(Entities_1.FramedScreenEntity.type);
30
35
  }
31
36
  vmsAreEqual(a, b) {
32
37
  if (a.height !== b.height)
@@ -36,9 +41,6 @@ class FramedScreenSizePM extends AppObjectPM_1.AppObjectPM {
36
41
  return true;
37
42
  }
38
43
  }
39
- exports.FramedScreenSizePM = FramedScreenSizePM;
40
- FramedScreenSizePM.type = "FramedScreenSizePM";
41
- FramedScreenSizePM.get = (appObjects) => AppObject_1.getSingletonComponent(FramedScreenSizePM.type, appObjects);
42
44
  exports.defaultFramedScreenVM = {
43
45
  height: 0,
44
46
  width: 0,
@@ -1,2 +1,2 @@
1
- export * from "./FramedScreenContainerPM";
1
+ export * from "./FramedContainerPM";
2
2
  export * from "./FramedScreenSizePM";
@@ -10,5 +10,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./FramedScreenContainerPM"), exports);
13
+ __exportStar(require("./FramedContainerPM"), exports);
14
14
  __exportStar(require("./FramedScreenSizePM"), exports);
@@ -1,2 +1,4 @@
1
+ export * from "./Adapters";
1
2
  export * from "./Entities";
3
+ export * from "./Mocks";
2
4
  export * from "./PM";
@@ -10,5 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Adapters"), exports);
13
14
  __exportStar(require("./Entities"), exports);
15
+ __exportStar(require("./Mocks"), exports);
14
16
  __exportStar(require("./PM"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./landmarkListAdapter";
2
+ export * from "./landmarkSizeAdapter";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./landmarkListAdapter"), exports);
14
+ __exportStar(require("./landmarkSizeAdapter"), exports);
@@ -0,0 +1,2 @@
1
+ import { PmAdapter } from "../../../Types";
2
+ export declare const landmarkListAdapter: PmAdapter<string[]>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.landmarkListAdapter = void 0;
4
+ const LandmarkListPM_1 = require("../PM/LandmarkListPM");
5
+ exports.landmarkListAdapter = {
6
+ defaultVM: [],
7
+ subscribe: (id, appObjects, setVM) => {
8
+ if (!id)
9
+ return;
10
+ const pm = LandmarkListPM_1.LandmarkListPM.get(id, appObjects);
11
+ if (!pm) {
12
+ appObjects.submitError("landmarkListAdapter", "Unable to find LandmarkListPM");
13
+ return;
14
+ }
15
+ pm.addView(setVM);
16
+ },
17
+ unsubscribe: (id, appObjects, setVM) => {
18
+ const pm = LandmarkListPM_1.LandmarkListPM.get(id, appObjects);
19
+ if (!pm) {
20
+ appObjects.submitError("landmarkListAdapter", "Unable to find LandmarkListPM");
21
+ return;
22
+ }
23
+ pm.removeView(setVM);
24
+ },
25
+ };
@@ -0,0 +1,2 @@
1
+ import { PmAdapter } from "../../../Types";
2
+ export declare const landmarkSizeAdapter: PmAdapter<number>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.landmarkSizeAdapter = void 0;
4
+ const LandmarkSizePM_1 = require("../PM/LandmarkSizePM");
5
+ exports.landmarkSizeAdapter = {
6
+ defaultVM: 1,
7
+ subscribe: (id, appObjects, setVM) => {
8
+ if (!id)
9
+ return;
10
+ const pm = LandmarkSizePM_1.LandmarkSizePM.get(id, appObjects);
11
+ if (!pm) {
12
+ appObjects.submitError("landmarkSizeAdapter", "Unable to find LandmarkSizePM");
13
+ return;
14
+ }
15
+ pm.addView(setVM);
16
+ },
17
+ unsubscribe: (id, appObjects, setVM) => {
18
+ const pm = LandmarkSizePM_1.LandmarkSizePM.get(id, appObjects);
19
+ if (pm) {
20
+ pm.removeView(setVM);
21
+ }
22
+ },
23
+ };
@@ -6,17 +6,7 @@ export declare abstract class MouseLandmark extends AppObjectController implemen
6
6
  pressed: boolean;
7
7
  abstract onMove: (e: MouseInputEvent) => void;
8
8
  abstract onDown: (e: MouseInputEvent) => void;
9
+ abstract onUp: (e: MouseInputEvent) => void;
10
+ abstract allow: (e: MouseInputEvent) => boolean;
9
11
  }
10
- export declare function makeMouseLandmark(appObject: AppObject): MouseLandmarkImp;
11
- declare class MouseLandmarkImp extends MouseLandmark {
12
- addingLandmark: boolean;
13
- pressed: boolean;
14
- private tryPreviewLandmarkUc?;
15
- private tryAddLandmarkUc?;
16
- allow: (e: MouseInputEvent) => boolean;
17
- onMove: (e: MouseInputEvent) => void;
18
- onDown: (e: MouseInputEvent) => void;
19
- onUp: (e: MouseInputEvent) => void;
20
- constructor(appObject: AppObject);
21
- }
22
- export {};
12
+ export declare function makeMouseLandmark(appObject: AppObject): MouseLandmark;
@@ -4,7 +4,6 @@ exports.makeMouseLandmark = exports.MouseLandmark = void 0;
4
4
  const AppObject_1 = require("../../../AppObject");
5
5
  const Babylon_1 = require("../../Babylon");
6
6
  const MouseInput_1 = require("../../MouseInput");
7
- const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
8
7
  const TryAddNewLandmarkUC_1 = require("../UseCases/TryAddNewLandmarkUC");
9
8
  const TryPreviewLandmarkUC_1 = require("../UseCases/TryPreviewLandmarkUC");
10
9
  class MouseLandmark extends AppObject_1.AppObjectController {
@@ -53,33 +52,20 @@ class MouseLandmarkImp extends MouseLandmark {
53
52
  this.pressed = true;
54
53
  };
55
54
  this.onUp = (e) => {
56
- var _a;
57
55
  if (!this.allow(e))
58
56
  return;
59
57
  if (!this.addingLandmark)
60
58
  return;
61
59
  if (!this.tryAddLandmarkUc)
62
60
  return;
63
- const landmarkPreview = (_a = this.appObject.getComponent(LandmarkGlobals_1.LandmarkGlobals.type)) === null || _a === void 0 ? void 0 : _a.previewLandmark;
64
- if (!landmarkPreview) {
61
+ if (!this.tryPreviewLandmarkUc)
65
62
  return;
66
- }
67
63
  const ray = Babylon_1.pixelToSceneRay(e.position, this.appObjects);
68
64
  this.tryAddLandmarkUc.addFromRay(ray);
69
- landmarkPreview.hideable.isHidden = true;
65
+ this.tryPreviewLandmarkUc.hidePreview();
70
66
  this.addingLandmark = false;
71
67
  this.pressed = false;
72
68
  };
73
- this.tryPreviewLandmarkUc = TryPreviewLandmarkUC_1.TryPreviewLandmarkUC.get(appObject);
74
- if (!this.tryPreviewLandmarkUc) {
75
- this.warn("Unable to find TryPreviewLandmarkUC");
76
- return;
77
- }
78
- this.tryAddLandmarkUc = TryAddNewLandmarkUC_1.TryAddNewLandmarkUC.get(appObject);
79
- if (!this.tryAddLandmarkUc) {
80
- this.warn("Unable to find TryAddNewLandmarkUC");
81
- return;
82
- }
83
69
  const mouseInput = MouseInput_1.MouseInputEntity.get(this.appObjects);
84
70
  if (mouseInput) {
85
71
  mouseInput.registerController(this);
@@ -88,4 +74,10 @@ class MouseLandmarkImp extends MouseLandmark {
88
74
  this.warn("Unable to find MouseInputEntity");
89
75
  }
90
76
  }
77
+ get tryPreviewLandmarkUc() {
78
+ return this.getCachedSingleton(TryPreviewLandmarkUC_1.TryPreviewLandmarkUC.type);
79
+ }
80
+ get tryAddLandmarkUc() {
81
+ return this.getCachedSingleton(TryAddNewLandmarkUC_1.TryAddNewLandmarkUC.type);
82
+ }
91
83
  }
@@ -1,2 +1,2 @@
1
1
  import { AppObjectRepo } from "../../../AppObject";
2
- export declare function submitLandmarkSize(size: number, appObjectId: string, appObjects: AppObjectRepo): void;
2
+ export declare function submitLandmarkSize(size: number, id: string, appObjects: AppObjectRepo): void;
@@ -1,15 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.submitLandmarkSize = void 0;
4
- const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
5
4
  const SetLandmarkSizeUC_1 = require("../UseCases/SetLandmarkSizeUC");
6
- function submitLandmarkSize(size, appObjectId, appObjects) {
7
- const landmarkEntity = appObjects.getAppObjectComponent(appObjectId, LandmarkEntity_1.LandmarkEntity.type);
8
- if (!landmarkEntity) {
9
- appObjects.submitWarning("SubmitLandmarkSizeController", "LandmarkEntity App Object was not added.");
10
- return;
11
- }
12
- const setLandmarkSizeUC = appObjects.getAppObjectComponent(appObjectId, SetLandmarkSizeUC_1.SetLandmarkSizeUC.type);
5
+ function submitLandmarkSize(size, id, appObjects) {
6
+ const setLandmarkSizeUC = SetLandmarkSizeUC_1.SetLandmarkSizeUC.getById(id, appObjects);
13
7
  if (!setLandmarkSizeUC) {
14
8
  appObjects.submitWarning("SubmitLandmarkSizeController", "SetLandmarkSizeUC App Object was not added.");
15
9
  return;
@@ -5,16 +5,6 @@ export declare abstract class TouchLandmark extends AppObjectController implemen
5
5
  abstract onTouchStart(e: TouchInputEvent): void;
6
6
  abstract onTouchMove(e: TouchInputEvent): void;
7
7
  abstract onTouchEnd(e: TouchInputEvent): void;
8
+ abstract allow: (e: TouchInputEvent) => boolean;
8
9
  }
9
- export declare function makeTouchLandmark(appObject: AppObject): TouchLandmarkImp;
10
- declare class TouchLandmarkImp extends TouchLandmark {
11
- private lastTouch;
12
- private tryPreviewLandmarkUc?;
13
- private tryAddLandmarkUc?;
14
- allow: (e: TouchInputEvent) => boolean;
15
- onTouchStart: (e: TouchInputEvent) => void;
16
- onTouchMove: (e: TouchInputEvent) => void;
17
- onTouchEnd: (e: TouchInputEvent) => void;
18
- constructor(appObject: AppObject);
19
- }
20
- export {};
10
+ export declare function makeTouchLandmark(appObject: AppObject): TouchLandmark;
@@ -5,7 +5,6 @@ const AppObject_1 = require("../../../AppObject");
5
5
  const ValueObjects_1 = require("../../../ValueObjects");
6
6
  const Babylon_1 = require("../../Babylon");
7
7
  const TouchController_1 = require("../../TouchController");
8
- const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
9
8
  const TryAddNewLandmarkUC_1 = require("../UseCases/TryAddNewLandmarkUC");
10
9
  const TryPreviewLandmarkUC_1 = require("../UseCases/TryPreviewLandmarkUC");
11
10
  class TouchLandmark extends AppObject_1.AppObjectController {
@@ -21,13 +20,14 @@ class TouchLandmarkImp extends TouchLandmark {
21
20
  super(appObject, TouchLandmark.type);
22
21
  this.lastTouch = ValueObjects_1.Vector2.Zero();
23
22
  this.allow = (e) => {
24
- return true;
23
+ if (e.touches.length === 1) {
24
+ return true;
25
+ }
26
+ return false;
25
27
  };
26
28
  this.onTouchStart = (e) => {
27
29
  if (!this.allow(e))
28
30
  return;
29
- if (e.touchCount > 1)
30
- return;
31
31
  if (!this.tryPreviewLandmarkUc)
32
32
  return;
33
33
  const position = e.touches[0].position;
@@ -48,31 +48,18 @@ class TouchLandmarkImp extends TouchLandmark {
48
48
  this.tryPreviewLandmarkUc.tryPreviewLandmark(ray, true);
49
49
  };
50
50
  this.onTouchEnd = (e) => {
51
- var _a;
52
51
  if (!this.allow(e))
53
52
  return;
54
53
  if (e.touchCount > 1)
55
54
  return;
56
55
  if (!this.tryAddLandmarkUc)
57
56
  return;
58
- const landmarkPreview = (_a = this.appObject.getComponent(LandmarkGlobals_1.LandmarkGlobals.type)) === null || _a === void 0 ? void 0 : _a.previewLandmark;
59
- if (!landmarkPreview) {
57
+ if (!this.tryPreviewLandmarkUc)
60
58
  return;
61
- }
62
59
  const ray = Babylon_1.pixelToSceneRay(this.lastTouch, this.appObjects);
63
60
  this.tryAddLandmarkUc.addFromRay(ray);
64
- landmarkPreview.hideable.isHidden = true;
61
+ this.tryPreviewLandmarkUc.hidePreview();
65
62
  };
66
- this.tryPreviewLandmarkUc = TryPreviewLandmarkUC_1.TryPreviewLandmarkUC.get(appObject);
67
- if (!this.tryPreviewLandmarkUc) {
68
- this.warn("Unable to find TryPreviewLandmarkUC");
69
- return;
70
- }
71
- this.tryAddLandmarkUc = TryAddNewLandmarkUC_1.TryAddNewLandmarkUC.get(appObject);
72
- if (!this.tryAddLandmarkUc) {
73
- this.warn("Unable to find TryAddNewLandmarkUC");
74
- return;
75
- }
76
63
  const touchInput = TouchController_1.TouchInputEntity.get(this.appObjects);
77
64
  if (touchInput) {
78
65
  touchInput.registerController(this);
@@ -81,4 +68,10 @@ class TouchLandmarkImp extends TouchLandmark {
81
68
  this.warn("Unable to find TouchInputEntity");
82
69
  }
83
70
  }
71
+ get tryPreviewLandmarkUc() {
72
+ return this.getCachedSingleton(TryPreviewLandmarkUC_1.TryPreviewLandmarkUC.type);
73
+ }
74
+ get tryAddLandmarkUc() {
75
+ return this.getCachedSingleton(TryAddNewLandmarkUC_1.TryAddNewLandmarkUC.type);
76
+ }
84
77
  }
@@ -1,2 +1,2 @@
1
1
  import { AppObjectRepo } from "../../../AppObject";
2
- export declare function updateLandmarkSize(size: number, appObjectId: string, appObjects: AppObjectRepo): void;
2
+ export declare function updateLandmarkSize(size: number, id: string, appObjects: AppObjectRepo): void;
@@ -1,17 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateLandmarkSize = void 0;
4
- const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
5
4
  const SetLandmarkSizeUC_1 = require("../UseCases/SetLandmarkSizeUC");
6
- function updateLandmarkSize(size, appObjectId, appObjects) {
7
- const landmarkEntity = appObjects.getAppObjectComponent(appObjectId, LandmarkEntity_1.LandmarkEntity.type);
8
- if (!landmarkEntity) {
9
- appObjects.submitWarning("UpdateLandmarkSizeController", "LandmarkEntity App Object was not added.");
10
- return;
11
- }
12
- const setLandmarkSizeUC = appObjects.getAppObjectComponent(appObjectId, SetLandmarkSizeUC_1.SetLandmarkSizeUC.type);
5
+ function updateLandmarkSize(size, id, appObjects) {
6
+ const setLandmarkSizeUC = SetLandmarkSizeUC_1.SetLandmarkSizeUC.getById(id, appObjects);
13
7
  if (!setLandmarkSizeUC) {
14
- appObjects.submitWarning("UpdateLandmarkSizeController", "SetLandmarkSizeUC App Object was not added.");
8
+ appObjects.submitWarning("SubmitLandmarkSizeController", "SetLandmarkSizeUC App Object was not added.");
15
9
  return;
16
10
  }
17
11
  setLandmarkSizeUC.updateSize(size);