@vived/app 6.9.0 → 6.10.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.
- package/README.md +166 -145
- package/dist/cjs/Callouts/Factories/CalloutsFeatureFactory.js +67 -0
- package/dist/cjs/Callouts/Factories/CalloutsFeatureFactory.js.map +1 -0
- package/dist/cjs/Callouts/Factories/CalloutsFeatureFactory.test.js +84 -0
- package/dist/cjs/Callouts/Factories/CalloutsFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Callouts/Factories/index.js +1 -0
- package/dist/cjs/Callouts/Factories/index.js.map +1 -1
- package/dist/cjs/ChannelModel/Factories/ChannelModelFeatureFactory.js +52 -0
- package/dist/cjs/ChannelModel/Factories/ChannelModelFeatureFactory.js.map +1 -0
- package/dist/cjs/ChannelModel/Factories/ChannelModelFeatureFactory.test.js +44 -0
- package/dist/cjs/ChannelModel/Factories/ChannelModelFeatureFactory.test.js.map +1 -0
- package/dist/cjs/ChannelModel/Factories/index.js +1 -0
- package/dist/cjs/ChannelModel/Factories/index.js.map +1 -1
- package/dist/cjs/Environment/Factories/EnvironmentFeatureFactory.js +50 -0
- package/dist/cjs/Environment/Factories/EnvironmentFeatureFactory.js.map +1 -0
- package/dist/cjs/Environment/Factories/EnvironmentFeatureFactory.test.js +39 -0
- package/dist/cjs/Environment/Factories/EnvironmentFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Environment/Factories/index.js +2 -1
- package/dist/cjs/Environment/Factories/index.js.map +1 -1
- package/dist/cjs/Environment/Factories/setupEnvironments.js +19 -0
- package/dist/cjs/Environment/Factories/setupEnvironments.js.map +1 -0
- package/dist/cjs/Hideable/Factories/HideableFeatureFactory.js +69 -0
- package/dist/cjs/Hideable/Factories/HideableFeatureFactory.js.map +1 -0
- package/dist/cjs/Hideable/Factories/HideableFeatureFactory.test.js +116 -0
- package/dist/cjs/Hideable/Factories/HideableFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Hideable/Factories/index.js +1 -0
- package/dist/cjs/Hideable/Factories/index.js.map +1 -1
- package/dist/cjs/HoverLabel/Factories/HoverLabelFeatureFactory.js +79 -0
- package/dist/cjs/HoverLabel/Factories/HoverLabelFeatureFactory.js.map +1 -0
- package/dist/cjs/HoverLabel/Factories/HoverLabelFeatureFactory.test.js +81 -0
- package/dist/cjs/HoverLabel/Factories/HoverLabelFeatureFactory.test.js.map +1 -0
- package/dist/cjs/HoverLabel/Factories/index.js +1 -0
- package/dist/cjs/HoverLabel/Factories/index.js.map +1 -1
- package/dist/cjs/Landmarks/Factories/LandmarksFeatureFactory.js +85 -0
- package/dist/cjs/Landmarks/Factories/LandmarksFeatureFactory.js.map +1 -0
- package/dist/cjs/Landmarks/Factories/LandmarksFeatureFactory.test.js +100 -0
- package/dist/cjs/Landmarks/Factories/LandmarksFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Landmarks/Factories/index.js +1 -0
- package/dist/cjs/Landmarks/Factories/index.js.map +1 -1
- package/dist/cjs/Selection/Factories/SelectionFeatureFactory.js +57 -0
- package/dist/cjs/Selection/Factories/SelectionFeatureFactory.js.map +1 -0
- package/dist/cjs/Selection/Factories/SelectionFeatureFactory.test.js +60 -0
- package/dist/cjs/Selection/Factories/SelectionFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Selection/Factories/index.js +1 -0
- package/dist/cjs/Selection/Factories/index.js.map +1 -1
- package/dist/cjs/Stick/Factories/StickFeatureFactory.js +45 -0
- package/dist/cjs/Stick/Factories/StickFeatureFactory.js.map +1 -0
- package/dist/cjs/Stick/Factories/StickFeatureFactory.test.js +44 -0
- package/dist/cjs/Stick/Factories/StickFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Stick/Factories/index.js +1 -0
- package/dist/cjs/Stick/Factories/index.js.map +1 -1
- package/dist/cjs/StoredView/Factories/StoredViewFeatureFactory.js +48 -0
- package/dist/cjs/StoredView/Factories/StoredViewFeatureFactory.js.map +1 -0
- package/dist/cjs/StoredView/Factories/StoredViewFeatureFactory.test.js +39 -0
- package/dist/cjs/StoredView/Factories/StoredViewFeatureFactory.test.js.map +1 -0
- package/dist/cjs/StoredView/Factories/index.js +1 -0
- package/dist/cjs/StoredView/Factories/index.js.map +1 -1
- package/dist/cjs/Stylus/Factories/StylusFeatureFactory.js +47 -0
- package/dist/cjs/Stylus/Factories/StylusFeatureFactory.js.map +1 -0
- package/dist/cjs/Stylus/Factories/StylusFeatureFactory.test.js +35 -0
- package/dist/cjs/Stylus/Factories/StylusFeatureFactory.test.js.map +1 -0
- package/dist/cjs/Stylus/Factories/index.js +1 -0
- package/dist/cjs/Stylus/Factories/index.js.map +1 -1
- package/dist/cjs/zSpace/Factory/ZSpaceFeatureFactory.js +70 -0
- package/dist/cjs/zSpace/Factory/ZSpaceFeatureFactory.js.map +1 -0
- package/dist/cjs/zSpace/Factory/ZSpaceFeatureFactory.test.js +78 -0
- package/dist/cjs/zSpace/Factory/ZSpaceFeatureFactory.test.js.map +1 -0
- package/dist/cjs/zSpace/Factory/index.js +1 -0
- package/dist/cjs/zSpace/Factory/index.js.map +1 -1
- package/dist/esm/Callouts/Factories/CalloutsFeatureFactory.js +62 -0
- package/dist/esm/Callouts/Factories/CalloutsFeatureFactory.js.map +1 -0
- package/dist/esm/Callouts/Factories/CalloutsFeatureFactory.test.js +82 -0
- package/dist/esm/Callouts/Factories/CalloutsFeatureFactory.test.js.map +1 -0
- package/dist/esm/Callouts/Factories/index.js +1 -0
- package/dist/esm/Callouts/Factories/index.js.map +1 -1
- package/dist/esm/ChannelModel/Factories/ChannelModelFeatureFactory.js +47 -0
- package/dist/esm/ChannelModel/Factories/ChannelModelFeatureFactory.js.map +1 -0
- package/dist/esm/ChannelModel/Factories/ChannelModelFeatureFactory.test.js +42 -0
- package/dist/esm/ChannelModel/Factories/ChannelModelFeatureFactory.test.js.map +1 -0
- package/dist/esm/ChannelModel/Factories/index.js +1 -0
- package/dist/esm/ChannelModel/Factories/index.js.map +1 -1
- package/dist/esm/Environment/Factories/EnvironmentFeatureFactory.js +45 -0
- package/dist/esm/Environment/Factories/EnvironmentFeatureFactory.js.map +1 -0
- package/dist/esm/Environment/Factories/EnvironmentFeatureFactory.test.js +37 -0
- package/dist/esm/Environment/Factories/EnvironmentFeatureFactory.test.js.map +1 -0
- package/dist/esm/Environment/Factories/index.js +2 -1
- package/dist/esm/Environment/Factories/index.js.map +1 -1
- package/dist/esm/Environment/Factories/setupEnvironments.js +16 -0
- package/dist/esm/Environment/Factories/setupEnvironments.js.map +1 -0
- package/dist/esm/Hideable/Factories/HideableFeatureFactory.js +64 -0
- package/dist/esm/Hideable/Factories/HideableFeatureFactory.js.map +1 -0
- package/dist/esm/Hideable/Factories/HideableFeatureFactory.test.js +114 -0
- package/dist/esm/Hideable/Factories/HideableFeatureFactory.test.js.map +1 -0
- package/dist/esm/Hideable/Factories/index.js +1 -0
- package/dist/esm/Hideable/Factories/index.js.map +1 -1
- package/dist/esm/HoverLabel/Factories/HoverLabelFeatureFactory.js +74 -0
- package/dist/esm/HoverLabel/Factories/HoverLabelFeatureFactory.js.map +1 -0
- package/dist/esm/HoverLabel/Factories/HoverLabelFeatureFactory.test.js +79 -0
- package/dist/esm/HoverLabel/Factories/HoverLabelFeatureFactory.test.js.map +1 -0
- package/dist/esm/HoverLabel/Factories/index.js +1 -0
- package/dist/esm/HoverLabel/Factories/index.js.map +1 -1
- package/dist/esm/Landmarks/Factories/LandmarksFeatureFactory.js +80 -0
- package/dist/esm/Landmarks/Factories/LandmarksFeatureFactory.js.map +1 -0
- package/dist/esm/Landmarks/Factories/LandmarksFeatureFactory.test.js +98 -0
- package/dist/esm/Landmarks/Factories/LandmarksFeatureFactory.test.js.map +1 -0
- package/dist/esm/Landmarks/Factories/index.js +1 -0
- package/dist/esm/Landmarks/Factories/index.js.map +1 -1
- package/dist/esm/Selection/Factories/SelectionFeatureFactory.js +52 -0
- package/dist/esm/Selection/Factories/SelectionFeatureFactory.js.map +1 -0
- package/dist/esm/Selection/Factories/SelectionFeatureFactory.test.js +58 -0
- package/dist/esm/Selection/Factories/SelectionFeatureFactory.test.js.map +1 -0
- package/dist/esm/Selection/Factories/index.js +1 -0
- package/dist/esm/Selection/Factories/index.js.map +1 -1
- package/dist/esm/Stick/Factories/StickFeatureFactory.js +40 -0
- package/dist/esm/Stick/Factories/StickFeatureFactory.js.map +1 -0
- package/dist/esm/Stick/Factories/StickFeatureFactory.test.js +42 -0
- package/dist/esm/Stick/Factories/StickFeatureFactory.test.js.map +1 -0
- package/dist/esm/Stick/Factories/index.js +1 -0
- package/dist/esm/Stick/Factories/index.js.map +1 -1
- package/dist/esm/StoredView/Factories/StoredViewFeatureFactory.js +43 -0
- package/dist/esm/StoredView/Factories/StoredViewFeatureFactory.js.map +1 -0
- package/dist/esm/StoredView/Factories/StoredViewFeatureFactory.test.js +37 -0
- package/dist/esm/StoredView/Factories/StoredViewFeatureFactory.test.js.map +1 -0
- package/dist/esm/StoredView/Factories/index.js +1 -0
- package/dist/esm/StoredView/Factories/index.js.map +1 -1
- package/dist/esm/Stylus/Factories/StylusFeatureFactory.js +42 -0
- package/dist/esm/Stylus/Factories/StylusFeatureFactory.js.map +1 -0
- package/dist/esm/Stylus/Factories/StylusFeatureFactory.test.js +33 -0
- package/dist/esm/Stylus/Factories/StylusFeatureFactory.test.js.map +1 -0
- package/dist/esm/Stylus/Factories/index.js +1 -0
- package/dist/esm/Stylus/Factories/index.js.map +1 -1
- package/dist/esm/zSpace/Factory/ZSpaceFeatureFactory.js +65 -0
- package/dist/esm/zSpace/Factory/ZSpaceFeatureFactory.js.map +1 -0
- package/dist/esm/zSpace/Factory/ZSpaceFeatureFactory.test.js +76 -0
- package/dist/esm/zSpace/Factory/ZSpaceFeatureFactory.test.js.map +1 -0
- package/dist/esm/zSpace/Factory/index.js +1 -0
- package/dist/esm/zSpace/Factory/index.js.map +1 -1
- package/dist/types/Callouts/Factories/CalloutsFeatureFactory.d.ts +24 -0
- package/dist/types/Callouts/Factories/CalloutsFeatureFactory.d.ts.map +1 -0
- package/dist/types/Callouts/Factories/CalloutsFeatureFactory.test.d.ts +2 -0
- package/dist/types/Callouts/Factories/CalloutsFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Callouts/Factories/index.d.ts +1 -0
- package/dist/types/Callouts/Factories/index.d.ts.map +1 -1
- package/dist/types/ChannelModel/Factories/ChannelModelFeatureFactory.d.ts +23 -0
- package/dist/types/ChannelModel/Factories/ChannelModelFeatureFactory.d.ts.map +1 -0
- package/dist/types/ChannelModel/Factories/ChannelModelFeatureFactory.test.d.ts +2 -0
- package/dist/types/ChannelModel/Factories/ChannelModelFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/ChannelModel/Factories/index.d.ts +1 -0
- package/dist/types/ChannelModel/Factories/index.d.ts.map +1 -1
- package/dist/types/Environment/Factories/EnvironmentFeatureFactory.d.ts +23 -0
- package/dist/types/Environment/Factories/EnvironmentFeatureFactory.d.ts.map +1 -0
- package/dist/types/Environment/Factories/EnvironmentFeatureFactory.test.d.ts +2 -0
- package/dist/types/Environment/Factories/EnvironmentFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Environment/Factories/index.d.ts +2 -1
- package/dist/types/Environment/Factories/index.d.ts.map +1 -1
- package/dist/types/Environment/Factories/setupEnvironments.d.ts +3 -0
- package/dist/types/Environment/Factories/setupEnvironments.d.ts.map +1 -0
- package/dist/types/Hideable/Factories/HideableFeatureFactory.d.ts +32 -0
- package/dist/types/Hideable/Factories/HideableFeatureFactory.d.ts.map +1 -0
- package/dist/types/Hideable/Factories/HideableFeatureFactory.test.d.ts +2 -0
- package/dist/types/Hideable/Factories/HideableFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Hideable/Factories/index.d.ts +1 -0
- package/dist/types/Hideable/Factories/index.d.ts.map +1 -1
- package/dist/types/HoverLabel/Factories/HoverLabelFeatureFactory.d.ts +34 -0
- package/dist/types/HoverLabel/Factories/HoverLabelFeatureFactory.d.ts.map +1 -0
- package/dist/types/HoverLabel/Factories/HoverLabelFeatureFactory.test.d.ts +2 -0
- package/dist/types/HoverLabel/Factories/HoverLabelFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/HoverLabel/Factories/index.d.ts +1 -0
- package/dist/types/HoverLabel/Factories/index.d.ts.map +1 -1
- package/dist/types/Landmarks/Factories/LandmarksFeatureFactory.d.ts +26 -0
- package/dist/types/Landmarks/Factories/LandmarksFeatureFactory.d.ts.map +1 -0
- package/dist/types/Landmarks/Factories/LandmarksFeatureFactory.test.d.ts +2 -0
- package/dist/types/Landmarks/Factories/LandmarksFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Landmarks/Factories/index.d.ts +1 -0
- package/dist/types/Landmarks/Factories/index.d.ts.map +1 -1
- package/dist/types/Selection/Factories/SelectionFeatureFactory.d.ts +27 -0
- package/dist/types/Selection/Factories/SelectionFeatureFactory.d.ts.map +1 -0
- package/dist/types/Selection/Factories/SelectionFeatureFactory.test.d.ts +2 -0
- package/dist/types/Selection/Factories/SelectionFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Selection/Factories/index.d.ts +1 -0
- package/dist/types/Selection/Factories/index.d.ts.map +1 -1
- package/dist/types/Stick/Factories/StickFeatureFactory.d.ts +23 -0
- package/dist/types/Stick/Factories/StickFeatureFactory.d.ts.map +1 -0
- package/dist/types/Stick/Factories/StickFeatureFactory.test.d.ts +2 -0
- package/dist/types/Stick/Factories/StickFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Stick/Factories/index.d.ts +1 -0
- package/dist/types/Stick/Factories/index.d.ts.map +1 -1
- package/dist/types/StoredView/Factories/StoredViewFeatureFactory.d.ts +23 -0
- package/dist/types/StoredView/Factories/StoredViewFeatureFactory.d.ts.map +1 -0
- package/dist/types/StoredView/Factories/StoredViewFeatureFactory.test.d.ts +2 -0
- package/dist/types/StoredView/Factories/StoredViewFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/StoredView/Factories/index.d.ts +1 -0
- package/dist/types/StoredView/Factories/index.d.ts.map +1 -1
- package/dist/types/Stylus/Factories/StylusFeatureFactory.d.ts +23 -0
- package/dist/types/Stylus/Factories/StylusFeatureFactory.d.ts.map +1 -0
- package/dist/types/Stylus/Factories/StylusFeatureFactory.test.d.ts +2 -0
- package/dist/types/Stylus/Factories/StylusFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/Stylus/Factories/index.d.ts +1 -0
- package/dist/types/Stylus/Factories/index.d.ts.map +1 -1
- package/dist/types/zSpace/Factory/ZSpaceFeatureFactory.d.ts +26 -0
- package/dist/types/zSpace/Factory/ZSpaceFeatureFactory.d.ts.map +1 -0
- package/dist/types/zSpace/Factory/ZSpaceFeatureFactory.test.d.ts +2 -0
- package/dist/types/zSpace/Factory/ZSpaceFeatureFactory.test.d.ts.map +1 -0
- package/dist/types/zSpace/Factory/index.d.ts +1 -0
- package/dist/types/zSpace/Factory/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DomainFactory } from "@vived/core";
|
|
2
|
+
import { makeTransform3DPM } from "../../Transform3D";
|
|
3
|
+
import { makeStylusEntity } from "../Entity";
|
|
4
|
+
import { makeStylusColorLengthPM, makeStylusIsInUsePM } from "../PMs";
|
|
5
|
+
import { makeEmulateStylusUC } from "../UCs";
|
|
6
|
+
/**
|
|
7
|
+
* Factory responsible for setting up the Stylus Feature domain components.
|
|
8
|
+
*
|
|
9
|
+
* Builds the same components as the legacy setupStylus function, split into
|
|
10
|
+
* the DomainFactory phases.
|
|
11
|
+
*
|
|
12
|
+
* @extends DomainFactory
|
|
13
|
+
*/
|
|
14
|
+
export class StylusFeatureFactory extends DomainFactory {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.factoryName = "StylusFeatureFactory";
|
|
18
|
+
}
|
|
19
|
+
setupEntities() {
|
|
20
|
+
makeStylusEntity(this.appObject);
|
|
21
|
+
}
|
|
22
|
+
setupUCs() {
|
|
23
|
+
makeEmulateStylusUC(this.appObject);
|
|
24
|
+
}
|
|
25
|
+
setupPMs() {
|
|
26
|
+
makeStylusColorLengthPM(this.appObject);
|
|
27
|
+
makeStylusIsInUsePM(this.appObject);
|
|
28
|
+
makeTransform3DPM(this.appObject);
|
|
29
|
+
}
|
|
30
|
+
finalSetup() {
|
|
31
|
+
// No final setup needed
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Factory function to create a new StylusFeatureFactory
|
|
36
|
+
* @param appObjects The AppObjectRepo to get or create the Stylus AppObject from
|
|
37
|
+
* @returns A new StylusFeatureFactory instance
|
|
38
|
+
*/
|
|
39
|
+
export function makeStylusFeatureFactory(appObjects) {
|
|
40
|
+
return new StylusFeatureFactory(appObjects.getOrCreate("Stylus"));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=StylusFeatureFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StylusFeatureFactory.js","sourceRoot":"","sources":["../../../../src/Stylus/Factories/StylusFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IAAvD;;QACE,gBAAW,GAAG,sBAAsB,CAAC;IAmBvC,CAAC;IAjBC,aAAa;QACX,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ;QACN,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED,QAAQ;QACN,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACpC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,UAAU;QACR,wBAAwB;IAC1B,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAyB;IAEzB,OAAO,IAAI,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import { AppObjectRepo, DomainFactory } from \"@vived/core\";\r\nimport { makeTransform3DPM } from \"../../Transform3D\";\r\nimport { makeStylusEntity } from \"../Entity\";\r\nimport { makeStylusColorLengthPM, makeStylusIsInUsePM } from \"../PMs\";\r\nimport { makeEmulateStylusUC } from \"../UCs\";\r\n\r\n/**\r\n * Factory responsible for setting up the Stylus Feature domain components.\r\n *\r\n * Builds the same components as the legacy setupStylus function, split into\r\n * the DomainFactory phases.\r\n *\r\n * @extends DomainFactory\r\n */\r\nexport class StylusFeatureFactory extends DomainFactory {\r\n factoryName = \"StylusFeatureFactory\";\r\n\r\n setupEntities(): void {\r\n makeStylusEntity(this.appObject);\r\n }\r\n\r\n setupUCs(): void {\r\n makeEmulateStylusUC(this.appObject);\r\n }\r\n\r\n setupPMs(): void {\r\n makeStylusColorLengthPM(this.appObject);\r\n makeStylusIsInUsePM(this.appObject);\r\n makeTransform3DPM(this.appObject);\r\n }\r\n\r\n finalSetup(): void {\r\n // No final setup needed\r\n }\r\n}\r\n\r\n/**\r\n * Factory function to create a new StylusFeatureFactory\r\n * @param appObjects The AppObjectRepo to get or create the Stylus AppObject from\r\n * @returns A new StylusFeatureFactory instance\r\n */\r\nexport function makeStylusFeatureFactory(\r\n appObjects: AppObjectRepo,\r\n): StylusFeatureFactory {\r\n return new StylusFeatureFactory(appObjects.getOrCreate(\"Stylus\"));\r\n}\r\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DomainFactory, makeAppObjectRepo, makeDomainFactoryRepo, } from "@vived/core";
|
|
2
|
+
import { setupStylus } from "./setupStylus";
|
|
3
|
+
import { makeStylusFeatureFactory } from "./StylusFeatureFactory";
|
|
4
|
+
function makeTestRig() {
|
|
5
|
+
const appObjects = makeAppObjectRepo();
|
|
6
|
+
const factories = makeDomainFactoryRepo(appObjects);
|
|
7
|
+
const mockError = jest.fn();
|
|
8
|
+
appObjects.submitError = mockError;
|
|
9
|
+
return { appObjects, factories, mockError };
|
|
10
|
+
}
|
|
11
|
+
function componentTypes(appObjects) {
|
|
12
|
+
const types = {};
|
|
13
|
+
appObjects.getAll().forEach((ao) => {
|
|
14
|
+
types[ao.id] = ao
|
|
15
|
+
.allComponents()
|
|
16
|
+
.filter((c) => !(c instanceof DomainFactory))
|
|
17
|
+
.map((c) => c.type)
|
|
18
|
+
.sort();
|
|
19
|
+
});
|
|
20
|
+
return types;
|
|
21
|
+
}
|
|
22
|
+
describe("StylusFeatureFactory", () => {
|
|
23
|
+
it("Builds the same components as setupStylus", () => {
|
|
24
|
+
const legacy = makeTestRig();
|
|
25
|
+
setupStylus(legacy.appObjects);
|
|
26
|
+
const { appObjects, factories, mockError } = makeTestRig();
|
|
27
|
+
makeStylusFeatureFactory(appObjects);
|
|
28
|
+
factories.setupDomain();
|
|
29
|
+
expect(componentTypes(appObjects)).toEqual(componentTypes(legacy.appObjects));
|
|
30
|
+
expect(mockError).not.toHaveBeenCalled();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=StylusFeatureFactory.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StylusFeatureFactory.test.js","sourceRoot":"","sources":["../../../../src/Stylus/Factories/StylusFeatureFactory.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CA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,UAAU,CAAC,CAClC,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {\r\n AppObjectRepo,\r\n DomainFactory,\r\n makeAppObjectRepo,\r\n makeDomainFactoryRepo,\r\n} from \"@vived/core\";\r\nimport { setupStylus } from \"./setupStylus\";\r\nimport { makeStylusFeatureFactory } from \"./StylusFeatureFactory\";\r\n\r\nfunction makeTestRig() {\r\n const appObjects = makeAppObjectRepo();\r\n const factories = makeDomainFactoryRepo(appObjects);\r\n\r\n const mockError = jest.fn();\r\n appObjects.submitError = mockError;\r\n\r\n return { appObjects, factories, mockError };\r\n}\r\n\r\nfunction componentTypes(appObjects: AppObjectRepo) {\r\n const types: { [id: string]: string[] } = {};\r\n appObjects.getAll().forEach((ao) => {\r\n types[ao.id] = ao\r\n .allComponents()\r\n .filter((c) => !(c instanceof DomainFactory))\r\n .map((c) => c.type)\r\n .sort();\r\n });\r\n return types;\r\n}\r\n\r\ndescribe(\"StylusFeatureFactory\", () => {\r\n it(\"Builds the same components as setupStylus\", () => {\r\n const legacy = makeTestRig();\r\n setupStylus(legacy.appObjects);\r\n\r\n const { appObjects, factories, mockError } = makeTestRig();\r\n makeStylusFeatureFactory(appObjects);\r\n factories.setupDomain();\r\n\r\n expect(componentTypes(appObjects)).toEqual(\r\n componentTypes(legacy.appObjects),\r\n );\r\n expect(mockError).not.toHaveBeenCalled();\r\n });\r\n});\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Stylus/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC","sourcesContent":["export * from \"./setupStylus\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Stylus/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC","sourcesContent":["export * from \"./setupStylus\";\r\nexport * from \"./StylusFeatureFactory\";\r\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { DomainFactory } from "@vived/core";
|
|
2
|
+
import { IsZSpaceAvailableUC } from "../../Dispatcher";
|
|
3
|
+
import { makeTransform3DPM, Transform3D } from "../../Transform3D";
|
|
4
|
+
import { makeXREntity } from "../../XR";
|
|
5
|
+
import { makeZSpaceEntity } from "../Entities";
|
|
6
|
+
import { makeZSpaceDisplayPM, makeZSpaceIsEnabledPM, makeZSpaceIsSupportedPM, makeZSpaceViewerScalePM, } from "../PM";
|
|
7
|
+
import { makeCheckZSpaceDisplaySizeUC, makeStylusFromGamepadHook, makeViewFromPoseHook, } from "../UC";
|
|
8
|
+
/**
|
|
9
|
+
* Factory responsible for setting up the zSpace Feature domain components.
|
|
10
|
+
*
|
|
11
|
+
* Builds the same components as the legacy setupZSpace function, split into
|
|
12
|
+
* the DomainFactory phases. The IS_ZSPACE_AVAILABLE request is dispatched in
|
|
13
|
+
* finalSetup, so the Dispatcher Feature's factory can be registered before or
|
|
14
|
+
* after this one.
|
|
15
|
+
*
|
|
16
|
+
* @extends DomainFactory
|
|
17
|
+
*/
|
|
18
|
+
export class ZSpaceFeatureFactory extends DomainFactory {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.factoryName = "ZSpaceFeatureFactory";
|
|
22
|
+
}
|
|
23
|
+
setupEntities() {
|
|
24
|
+
Transform3D.addIfMissing(this.appObject);
|
|
25
|
+
this.zSpaceEntity = makeZSpaceEntity(this.appObject);
|
|
26
|
+
makeXREntity(this.appObject);
|
|
27
|
+
}
|
|
28
|
+
setupUCs() {
|
|
29
|
+
makeViewFromPoseHook(this.appObject);
|
|
30
|
+
makeStylusFromGamepadHook(this.appObject);
|
|
31
|
+
makeCheckZSpaceDisplaySizeUC(this.appObject);
|
|
32
|
+
}
|
|
33
|
+
setupPMs() {
|
|
34
|
+
makeZSpaceIsEnabledPM(this.appObject);
|
|
35
|
+
makeZSpaceViewerScalePM(this.appObject);
|
|
36
|
+
if (this.zSpaceEntity) {
|
|
37
|
+
const displayAO = this.zSpaceEntity.display.appObject;
|
|
38
|
+
makeTransform3DPM(displayAO);
|
|
39
|
+
makeZSpaceDisplayPM(displayAO);
|
|
40
|
+
}
|
|
41
|
+
makeZSpaceIsSupportedPM(this.appObject);
|
|
42
|
+
}
|
|
43
|
+
finalSetup() {
|
|
44
|
+
const zSpaceEntity = this.zSpaceEntity;
|
|
45
|
+
if (!zSpaceEntity)
|
|
46
|
+
return;
|
|
47
|
+
const checkForZSpace = IsZSpaceAvailableUC.get(this.appObjects);
|
|
48
|
+
if (!checkForZSpace) {
|
|
49
|
+
this.appObjects.submitWarning(this.factoryName, "Unable to find IsZSpaceAvailableUC. The Dispatcher Feature needs to be setup for zSpace");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
checkForZSpace.doDispatch().then((isSupported) => {
|
|
53
|
+
zSpaceEntity.isSupported = isSupported;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Factory function to create a new ZSpaceFeatureFactory
|
|
59
|
+
* @param appObjects The AppObjectRepo to get or create the zSpace AppObject from
|
|
60
|
+
* @returns A new ZSpaceFeatureFactory instance
|
|
61
|
+
*/
|
|
62
|
+
export function makeZSpaceFeatureFactory(appObjects) {
|
|
63
|
+
return new ZSpaceFeatureFactory(appObjects.getOrCreate("zSpace"));
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=ZSpaceFeatureFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZSpaceFeatureFactory.js","sourceRoot":"","sources":["../../../../src/zSpace/Factory/ZSpaceFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,mBA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;IAC1C,CAAC;IAED,UAAU;QACR,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACvC,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,cAAc,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,CAAC,aAAa,CAC3B,IAAI,CAAC,WAAW,EAChB,yFAAyF,CAC1F,CAAC;YACF,OAAO;QACT,CAAC;QAED,cAAc,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;YAC/C,YAAY,CAAC,WAAW,GAAG,WAAW,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAyB;IAEzB,OAAO,IAAI,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import { AppObjectRepo, DomainFactory } from \"@vived/core\";\r\nimport { IsZSpaceAvailableUC } from \"../../Dispatcher\";\r\nimport { makeTransform3DPM, Transform3D } from \"../../Transform3D\";\r\nimport { makeXREntity } from \"../../XR\";\r\nimport { makeZSpaceEntity, ZSpaceEntity } from \"../Entities\";\r\nimport {\r\n makeZSpaceDisplayPM,\r\n makeZSpaceIsEnabledPM,\r\n makeZSpaceIsSupportedPM,\r\n makeZSpaceViewerScalePM,\r\n} from \"../PM\";\r\nimport {\r\n makeCheckZSpaceDisplaySizeUC,\r\n makeStylusFromGamepadHook,\r\n makeViewFromPoseHook,\r\n} from \"../UC\";\r\n\r\n/**\r\n * Factory responsible for setting up the zSpace Feature domain components.\r\n *\r\n * Builds the same components as the legacy setupZSpace function, split into\r\n * the DomainFactory phases. The IS_ZSPACE_AVAILABLE request is dispatched in\r\n * finalSetup, so the Dispatcher Feature's factory can be registered before or\r\n * after this one.\r\n *\r\n * @extends DomainFactory\r\n */\r\nexport class ZSpaceFeatureFactory extends DomainFactory {\r\n factoryName = \"ZSpaceFeatureFactory\";\r\n\r\n private zSpaceEntity?: ZSpaceEntity;\r\n\r\n setupEntities(): void {\r\n Transform3D.addIfMissing(this.appObject);\r\n this.zSpaceEntity = makeZSpaceEntity(this.appObject);\r\n makeXREntity(this.appObject);\r\n }\r\n\r\n setupUCs(): void {\r\n makeViewFromPoseHook(this.appObject);\r\n makeStylusFromGamepadHook(this.appObject);\r\n makeCheckZSpaceDisplaySizeUC(this.appObject);\r\n }\r\n\r\n setupPMs(): void {\r\n makeZSpaceIsEnabledPM(this.appObject);\r\n makeZSpaceViewerScalePM(this.appObject);\r\n\r\n if (this.zSpaceEntity) {\r\n const displayAO = this.zSpaceEntity.display.appObject;\r\n makeTransform3DPM(displayAO);\r\n makeZSpaceDisplayPM(displayAO);\r\n }\r\n\r\n makeZSpaceIsSupportedPM(this.appObject);\r\n }\r\n\r\n finalSetup(): void {\r\n const zSpaceEntity = this.zSpaceEntity;\r\n if (!zSpaceEntity) return;\r\n\r\n const checkForZSpace = IsZSpaceAvailableUC.get(this.appObjects);\r\n if (!checkForZSpace) {\r\n this.appObjects.submitWarning(\r\n this.factoryName,\r\n \"Unable to find IsZSpaceAvailableUC. The Dispatcher Feature needs to be setup for zSpace\",\r\n );\r\n return;\r\n }\r\n\r\n checkForZSpace.doDispatch().then((isSupported) => {\r\n zSpaceEntity.isSupported = isSupported;\r\n });\r\n }\r\n}\r\n\r\n/**\r\n * Factory function to create a new ZSpaceFeatureFactory\r\n * @param appObjects The AppObjectRepo to get or create the zSpace AppObject from\r\n * @returns A new ZSpaceFeatureFactory instance\r\n */\r\nexport function makeZSpaceFeatureFactory(\r\n appObjects: AppObjectRepo,\r\n): ZSpaceFeatureFactory {\r\n return new ZSpaceFeatureFactory(appObjects.getOrCreate(\"zSpace\"));\r\n}\r\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { DomainFactory, makeAppObjectRepo, makeDomainFactoryRepo, } from "@vived/core";
|
|
2
|
+
import { makeDispatcherFeatureFactory } from "../../Dispatcher";
|
|
3
|
+
import { makeStylusFeatureFactory } from "../../Stylus";
|
|
4
|
+
import { ZSpaceEntity } from "../Entities";
|
|
5
|
+
import { setupZSpace } from "./setupZSpace";
|
|
6
|
+
import { makeZSpaceFeatureFactory } from "./ZSpaceFeatureFactory";
|
|
7
|
+
function makeTestRig() {
|
|
8
|
+
const appObjects = makeAppObjectRepo();
|
|
9
|
+
const factories = makeDomainFactoryRepo(appObjects);
|
|
10
|
+
const mockWarn = jest.fn();
|
|
11
|
+
appObjects.submitWarning = mockWarn;
|
|
12
|
+
const hostHandler = jest.fn((request) => {
|
|
13
|
+
if (request.type === "IS_ZSPACE_AVAILABLE") {
|
|
14
|
+
request.payload.callback(true);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return { appObjects, factories, mockWarn, hostHandler };
|
|
18
|
+
}
|
|
19
|
+
function componentTypes(appObjects) {
|
|
20
|
+
const types = {};
|
|
21
|
+
appObjects.getAll().forEach((ao) => {
|
|
22
|
+
types[ao.id] = ao
|
|
23
|
+
.allComponents()
|
|
24
|
+
.filter((c) => !(c instanceof DomainFactory))
|
|
25
|
+
.map((c) => c.type)
|
|
26
|
+
.sort();
|
|
27
|
+
});
|
|
28
|
+
return types;
|
|
29
|
+
}
|
|
30
|
+
describe("ZSpaceFeatureFactory", () => {
|
|
31
|
+
it("Builds the same components as setupZSpace", () => {
|
|
32
|
+
const legacy = makeTestRig();
|
|
33
|
+
makeDispatcherFeatureFactory(legacy.appObjects, legacy.hostHandler);
|
|
34
|
+
makeStylusFeatureFactory(legacy.appObjects);
|
|
35
|
+
legacy.factories.setupDomain();
|
|
36
|
+
setupZSpace(legacy.appObjects);
|
|
37
|
+
const { appObjects, factories, hostHandler } = makeTestRig();
|
|
38
|
+
makeDispatcherFeatureFactory(appObjects, hostHandler);
|
|
39
|
+
makeStylusFeatureFactory(appObjects);
|
|
40
|
+
makeZSpaceFeatureFactory(appObjects);
|
|
41
|
+
factories.setupDomain();
|
|
42
|
+
expect(componentTypes(appObjects)).toEqual(componentTypes(legacy.appObjects));
|
|
43
|
+
});
|
|
44
|
+
it("Asks the Host whether zSpace is available when the Dispatcher factory is registered after it", async () => {
|
|
45
|
+
const { appObjects, factories, mockWarn, hostHandler } = makeTestRig();
|
|
46
|
+
makeZSpaceFeatureFactory(appObjects);
|
|
47
|
+
makeStylusFeatureFactory(appObjects);
|
|
48
|
+
makeDispatcherFeatureFactory(appObjects, hostHandler);
|
|
49
|
+
factories.setupDomain();
|
|
50
|
+
await Promise.resolve();
|
|
51
|
+
const requestTypes = hostHandler.mock.calls.map((call) => call[0].type);
|
|
52
|
+
expect(requestTypes).toContain("IS_ZSPACE_AVAILABLE");
|
|
53
|
+
expect(ZSpaceEntity.get(appObjects).isSupported).toBe(true);
|
|
54
|
+
expect(mockWarn).not.toHaveBeenCalledWith("ZSpaceFeatureFactory", expect.anything());
|
|
55
|
+
});
|
|
56
|
+
it("Does not dispatch before finalSetup", () => {
|
|
57
|
+
const { appObjects, factories, hostHandler } = makeTestRig();
|
|
58
|
+
makeDispatcherFeatureFactory(appObjects, hostHandler);
|
|
59
|
+
makeStylusFeatureFactory(appObjects);
|
|
60
|
+
makeZSpaceFeatureFactory(appObjects);
|
|
61
|
+
const all = factories.getAll();
|
|
62
|
+
all.forEach((f) => f.setupEntities());
|
|
63
|
+
all.forEach((f) => f.setupUCs());
|
|
64
|
+
all.forEach((f) => f.setupPMs());
|
|
65
|
+
const requestTypes = hostHandler.mock.calls.map((call) => call[0].type);
|
|
66
|
+
expect(requestTypes).not.toContain("IS_ZSPACE_AVAILABLE");
|
|
67
|
+
});
|
|
68
|
+
it("Warns when there is no Dispatcher Feature", () => {
|
|
69
|
+
const { appObjects, factories, mockWarn } = makeTestRig();
|
|
70
|
+
makeStylusFeatureFactory(appObjects);
|
|
71
|
+
makeZSpaceFeatureFactory(appObjects);
|
|
72
|
+
factories.setupDomain();
|
|
73
|
+
expect(mockWarn).toHaveBeenCalledWith("ZSpaceFeatureFactory", "Unable to find IsZSpaceAvailableUC. The Dispatcher Feature needs to be setup for zSpace");
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=ZSpaceFeatureFactory.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZSpaceFeatureFactory.test.js","sourceRoot":"","sources":["../../../../src/zSpace/Factory/ZSpaceFeatureFactory.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,iBAAiB,EACjB,qBAAqB,GAEtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,SAAS,WAAW;IAClB,MAAM,UAAU,GAAG,iBAAiB,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEpD,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3B,UAAU,CAAC,aAAa,GAAG,QAAQ,CAAC;IAEpC,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,OAAgB,EAAE,EAAE;QAC/C,IAAI,OAAO,CAAC,IAAI,KAAK,qBAAqB,EAAE,CAAC;YAC1C,OAAO,CAAC,OAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,CAAC;AAED,SAAS,cA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CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEjC,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACxE,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;QAC1D,wBAAwB,CAAC,UAAU,CAAC,CAAC;QACrC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QACrC,SAAS,CAAC,WAAW,EAAE,CAAC;QAExB,MAAM,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CACnC,sBAAsB,EACtB,yFAAyF,CAC1F,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import {\r\n AppObjectRepo,\r\n DomainFactory,\r\n makeAppObjectRepo,\r\n makeDomainFactoryRepo,\r\n Request,\r\n} from \"@vived/core\";\r\nimport { makeDispatcherFeatureFactory } from \"../../Dispatcher\";\r\nimport { makeStylusFeatureFactory } from \"../../Stylus\";\r\nimport { ZSpaceEntity } from \"../Entities\";\r\nimport { setupZSpace } from \"./setupZSpace\";\r\nimport { makeZSpaceFeatureFactory } from \"./ZSpaceFeatureFactory\";\r\n\r\nfunction makeTestRig() {\r\n const appObjects = makeAppObjectRepo();\r\n const factories = makeDomainFactoryRepo(appObjects);\r\n\r\n const mockWarn = jest.fn();\r\n appObjects.submitWarning = mockWarn;\r\n\r\n const hostHandler = jest.fn((request: Request) => {\r\n if (request.type === \"IS_ZSPACE_AVAILABLE\") {\r\n (request.payload as any).callback(true);\r\n }\r\n });\r\n\r\n return { appObjects, factories, mockWarn, hostHandler };\r\n}\r\n\r\nfunction componentTypes(appObjects: AppObjectRepo) {\r\n const types: { [id: string]: string[] } = {};\r\n appObjects.getAll().forEach((ao) => {\r\n types[ao.id] = ao\r\n .allComponents()\r\n .filter((c) => !(c instanceof DomainFactory))\r\n .map((c) => c.type)\r\n .sort();\r\n });\r\n return types;\r\n}\r\n\r\ndescribe(\"ZSpaceFeatureFactory\", () => {\r\n it(\"Builds the same components as setupZSpace\", () => {\r\n const legacy = makeTestRig();\r\n makeDispatcherFeatureFactory(legacy.appObjects, legacy.hostHandler);\r\n makeStylusFeatureFactory(legacy.appObjects);\r\n legacy.factories.setupDomain();\r\n setupZSpace(legacy.appObjects);\r\n\r\n const { appObjects, factories, hostHandler } = makeTestRig();\r\n makeDispatcherFeatureFactory(appObjects, hostHandler);\r\n makeStylusFeatureFactory(appObjects);\r\n makeZSpaceFeatureFactory(appObjects);\r\n factories.setupDomain();\r\n\r\n expect(componentTypes(appObjects)).toEqual(\r\n componentTypes(legacy.appObjects),\r\n );\r\n });\r\n\r\n it(\"Asks the Host whether zSpace is available when the Dispatcher factory is registered after it\", async () => {\r\n const { appObjects, factories, mockWarn, hostHandler } = makeTestRig();\r\n makeZSpaceFeatureFactory(appObjects);\r\n makeStylusFeatureFactory(appObjects);\r\n makeDispatcherFeatureFactory(appObjects, hostHandler);\r\n factories.setupDomain();\r\n await Promise.resolve();\r\n\r\n const requestTypes = hostHandler.mock.calls.map((call) => call[0].type);\r\n expect(requestTypes).toContain(\"IS_ZSPACE_AVAILABLE\");\r\n expect(ZSpaceEntity.get(appObjects)!.isSupported).toBe(true);\r\n expect(mockWarn).not.toHaveBeenCalledWith(\r\n \"ZSpaceFeatureFactory\",\r\n expect.anything(),\r\n );\r\n });\r\n\r\n it(\"Does not dispatch before finalSetup\", () => {\r\n const { appObjects, factories, hostHandler } = makeTestRig();\r\n makeDispatcherFeatureFactory(appObjects, hostHandler);\r\n makeStylusFeatureFactory(appObjects);\r\n makeZSpaceFeatureFactory(appObjects);\r\n\r\n const all = factories.getAll();\r\n all.forEach((f) => f.setupEntities());\r\n all.forEach((f) => f.setupUCs());\r\n all.forEach((f) => f.setupPMs());\r\n\r\n const requestTypes = hostHandler.mock.calls.map((call) => call[0].type);\r\n expect(requestTypes).not.toContain(\"IS_ZSPACE_AVAILABLE\");\r\n });\r\n\r\n it(\"Warns when there is no Dispatcher Feature\", () => {\r\n const { appObjects, factories, mockWarn } = makeTestRig();\r\n makeStylusFeatureFactory(appObjects);\r\n makeZSpaceFeatureFactory(appObjects);\r\n factories.setupDomain();\r\n\r\n expect(mockWarn).toHaveBeenCalledWith(\r\n \"ZSpaceFeatureFactory\",\r\n \"Unable to find IsZSpaceAvailableUC. The Dispatcher Feature needs to be setup for zSpace\",\r\n );\r\n });\r\n});\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/zSpace/Factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC","sourcesContent":["export * from \"./setupZSpace\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/zSpace/Factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC","sourcesContent":["export * from \"./setupZSpace\";\r\nexport * from \"./ZSpaceFeatureFactory\";\r\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
/**
|
|
3
|
+
* Factory responsible for setting up the Callouts Feature domain components.
|
|
4
|
+
*
|
|
5
|
+
* Builds the same components as the legacy setupCallouts function, split into
|
|
6
|
+
* the DomainFactory phases. The CALLOUT tool is created in finalSetup, so its
|
|
7
|
+
* place in the toolbar follows the order the factories are registered.
|
|
8
|
+
*
|
|
9
|
+
* @extends DomainFactory
|
|
10
|
+
*/
|
|
11
|
+
export declare class CalloutsFeatureFactory extends DomainFactory {
|
|
12
|
+
factoryName: string;
|
|
13
|
+
setupEntities(): void;
|
|
14
|
+
setupUCs(): void;
|
|
15
|
+
setupPMs(): void;
|
|
16
|
+
finalSetup(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Factory function to create a new CalloutsFeatureFactory
|
|
20
|
+
* @param appObjects The AppObjectRepo to get or create the Callouts AppObject from
|
|
21
|
+
* @returns A new CalloutsFeatureFactory instance
|
|
22
|
+
*/
|
|
23
|
+
export declare function makeCalloutsFeatureFactory(appObjects: AppObjectRepo): CalloutsFeatureFactory;
|
|
24
|
+
//# sourceMappingURL=CalloutsFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalloutsFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Callouts/Factories/CalloutsFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAa3D;;;;;;;;GAQG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACvD,WAAW,SAA4B;IAEvC,aAAa,IAAI,IAAI;IAKrB,QAAQ,IAAI,IAAI;IAOhB,QAAQ,IAAI,IAAI;IAIhB,UAAU,IAAI,IAAI;CAuBnB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,aAAa,GACxB,sBAAsB,CAExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalloutsFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/Callouts/Factories/CalloutsFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Callouts/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Callouts/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
/**
|
|
3
|
+
* Factory responsible for setting up the ChannelModel Feature domain components.
|
|
4
|
+
*
|
|
5
|
+
* Builds the same components as the legacy setupChannelModels function, split
|
|
6
|
+
* into the DomainFactory phases.
|
|
7
|
+
*
|
|
8
|
+
* @extends DomainFactory
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChannelModelFeatureFactory extends DomainFactory {
|
|
11
|
+
factoryName: string;
|
|
12
|
+
setupEntities(): void;
|
|
13
|
+
setupUCs(): void;
|
|
14
|
+
setupPMs(): void;
|
|
15
|
+
finalSetup(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Factory function to create a new ChannelModelFeatureFactory
|
|
19
|
+
* @param appObjects The AppObjectRepo to get or create the ChannelModels AppObject from
|
|
20
|
+
* @returns A new ChannelModelFeatureFactory instance
|
|
21
|
+
*/
|
|
22
|
+
export declare function makeChannelModelFeatureFactory(appObjects: AppObjectRepo): ChannelModelFeatureFactory;
|
|
23
|
+
//# sourceMappingURL=ChannelModelFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelModelFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/ChannelModel/Factories/ChannelModelFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAe3D;;;;;;;GAOG;AACH,qBAAa,0BAA2B,SAAQ,aAAa;IAC3D,WAAW,SAAgC;IAE3C,aAAa,IAAI,IAAI;IAKrB,QAAQ,IAAI,IAAI;IAOhB,QAAQ,IAAI,IAAI;IAKhB,UAAU,IAAI,IAAI;CAInB;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,aAAa,GACxB,0BAA0B,CAI5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelModelFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/ChannelModel/Factories/ChannelModelFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ChannelModel/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ChannelModel/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
/**
|
|
3
|
+
* Factory responsible for setting up the Environment Feature domain components.
|
|
4
|
+
*
|
|
5
|
+
* Builds the same components as the legacy setupEnvironments function, split
|
|
6
|
+
* into the DomainFactory phases.
|
|
7
|
+
*
|
|
8
|
+
* @extends DomainFactory
|
|
9
|
+
*/
|
|
10
|
+
export declare class EnvironmentFeatureFactory extends DomainFactory {
|
|
11
|
+
factoryName: string;
|
|
12
|
+
setupEntities(): void;
|
|
13
|
+
setupUCs(): void;
|
|
14
|
+
setupPMs(): void;
|
|
15
|
+
finalSetup(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Factory function to create a new EnvironmentFeatureFactory
|
|
19
|
+
* @param appObjects The AppObjectRepo to get or create the Environments AppObject from
|
|
20
|
+
* @returns A new EnvironmentFeatureFactory instance
|
|
21
|
+
*/
|
|
22
|
+
export declare function makeEnvironmentFeatureFactory(appObjects: AppObjectRepo): EnvironmentFeatureFactory;
|
|
23
|
+
//# sourceMappingURL=EnvironmentFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Environment/Factories/EnvironmentFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQ3D;;;;;;;GAOG;AACH,qBAAa,yBAA0B,SAAQ,aAAa;IAC1D,WAAW,SAA+B;IAE1C,aAAa,IAAI,IAAI;IAIrB,QAAQ,IAAI,IAAI;IAMhB,QAAQ,IAAI,IAAI;IAKhB,UAAU,IAAI,IAAI;CAGnB;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,aAAa,GACxB,yBAAyB,CAE3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/Environment/Factories/EnvironmentFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Environment/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Environment/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupEnvironments.d.ts","sourceRoot":"","sources":["../../../../src/Environment/Factories/setupEnvironments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQ5C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,aAAa,QAW1D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
import { SetupHideableOptions } from "./setupHideable";
|
|
3
|
+
/**
|
|
4
|
+
* Factory responsible for setting up the Hideable Feature domain components.
|
|
5
|
+
*
|
|
6
|
+
* Builds the same components as the legacy setupHideable function, split into
|
|
7
|
+
* the DomainFactory phases. The HIDE tool is created in finalSetup, so its
|
|
8
|
+
* place in the toolbar follows the order the factories are registered.
|
|
9
|
+
*
|
|
10
|
+
* @extends DomainFactory
|
|
11
|
+
*/
|
|
12
|
+
export declare class HideableFeatureFactory extends DomainFactory {
|
|
13
|
+
factoryName: string;
|
|
14
|
+
private options?;
|
|
15
|
+
/**
|
|
16
|
+
* @param appObject The Hideable AppObject
|
|
17
|
+
* @param options Optional configuration, as for setupHideable
|
|
18
|
+
*/
|
|
19
|
+
constructor(appObject: AppObject, options?: SetupHideableOptions);
|
|
20
|
+
setupEntities(): void;
|
|
21
|
+
setupUCs(): void;
|
|
22
|
+
setupPMs(): void;
|
|
23
|
+
finalSetup(): void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Factory function to create a new HideableFeatureFactory
|
|
27
|
+
* @param appObjects The AppObjectRepo to get or create the Hideable AppObject from
|
|
28
|
+
* @param options Optional configuration, as for setupHideable
|
|
29
|
+
* @returns A new HideableFeatureFactory instance
|
|
30
|
+
*/
|
|
31
|
+
export declare function makeHideableFeatureFactory(appObjects: AppObjectRepo, options?: SetupHideableOptions): HideableFeatureFactory;
|
|
32
|
+
//# sourceMappingURL=HideableFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HideableFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Hideable/Factories/HideableFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAItE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;;;;GAQG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACvD,WAAW,SAA4B;IAEvC,OAAO,CAAC,OAAO,CAAC,CAAuB;IAEvC;;;OAGG;gBACS,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,oBAAoB;IAKhE,aAAa,IAAI,IAAI;IAIrB,QAAQ,IAAI,IAAI;IAQhB,QAAQ,IAAI,IAAI;IAIhB,UAAU,IAAI,IAAI;CAuBnB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,sBAAsB,CAKxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HideableFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/Hideable/Factories/HideableFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Hideable/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Hideable/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
import { HoverLabelOptions } from "./setupHoverLabel";
|
|
3
|
+
/**
|
|
4
|
+
* Factory responsible for setting up the HoverLabel Feature domain components.
|
|
5
|
+
*
|
|
6
|
+
* Builds the same components as the legacy setupHoverLabel function, split
|
|
7
|
+
* into the DomainFactory phases. The hover label transform is parented to the
|
|
8
|
+
* StylusEntity in finalSetup, so the Stylus Feature's factory can be
|
|
9
|
+
* registered before or after this one.
|
|
10
|
+
*
|
|
11
|
+
* @extends DomainFactory
|
|
12
|
+
*/
|
|
13
|
+
export declare class HoverLabelFeatureFactory extends DomainFactory {
|
|
14
|
+
factoryName: string;
|
|
15
|
+
private hoverLabelEntity?;
|
|
16
|
+
private options?;
|
|
17
|
+
/**
|
|
18
|
+
* @param appObject The HoverLabel AppObject
|
|
19
|
+
* @param options Optional configuration, as for setupHoverLabel
|
|
20
|
+
*/
|
|
21
|
+
constructor(appObject: AppObject, options?: HoverLabelOptions);
|
|
22
|
+
setupEntities(): void;
|
|
23
|
+
setupUCs(): void;
|
|
24
|
+
setupPMs(): void;
|
|
25
|
+
finalSetup(): void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Factory function to create a new HoverLabelFeatureFactory
|
|
29
|
+
* @param appObjects The AppObjectRepo to get or create the HoverLabel AppObject from
|
|
30
|
+
* @param options Optional configuration, as for setupHoverLabel
|
|
31
|
+
* @returns A new HoverLabelFeatureFactory instance
|
|
32
|
+
*/
|
|
33
|
+
export declare function makeHoverLabelFeatureFactory(appObjects: AppObjectRepo, options?: HoverLabelOptions): HoverLabelFeatureFactory;
|
|
34
|
+
//# sourceMappingURL=HoverLabelFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoverLabelFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/HoverLabel/Factories/HoverLabelFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,aAAa,EAGd,MAAM,aAAa,CAAC;AAmBrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,aAAa;IACzD,WAAW,SAA8B;IAEzC,OAAO,CAAC,gBAAgB,CAAC,CAAmB;IAC5C,OAAO,CAAC,OAAO,CAAC,CAAoB;IAEpC;;;OAGG;gBACS,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAK7D,aAAa,IAAI,IAAI;IAIrB,QAAQ,IAAI,IAAI;IAWhB,QAAQ,IAAI,IAAI;IAOhB,UAAU,IAAI,IAAI;CAsBnB;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,wBAAwB,CAK1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoverLabelFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/HoverLabel/Factories/HoverLabelFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/HoverLabel/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/HoverLabel/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AppObjectRepo, DomainFactory } from "@vived/core";
|
|
2
|
+
/**
|
|
3
|
+
* Factory responsible for setting up the Landmarks Feature domain components.
|
|
4
|
+
*
|
|
5
|
+
* Builds the same components as the legacy setupLandmarks function, split
|
|
6
|
+
* into the DomainFactory phases, including the "LandmarkPreview" AppObject.
|
|
7
|
+
* The LANDMARK tool is created in finalSetup, so its place in the toolbar
|
|
8
|
+
* follows the order the factories are registered.
|
|
9
|
+
*
|
|
10
|
+
* @extends DomainFactory
|
|
11
|
+
*/
|
|
12
|
+
export declare class LandmarksFeatureFactory extends DomainFactory {
|
|
13
|
+
factoryName: string;
|
|
14
|
+
private get previewAO();
|
|
15
|
+
setupEntities(): void;
|
|
16
|
+
setupUCs(): void;
|
|
17
|
+
setupPMs(): void;
|
|
18
|
+
finalSetup(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Factory function to create a new LandmarksFeatureFactory
|
|
22
|
+
* @param appObjects The AppObjectRepo to get or create the Landmarks AppObject from
|
|
23
|
+
* @returns A new LandmarksFeatureFactory instance
|
|
24
|
+
*/
|
|
25
|
+
export declare function makeLandmarksFeatureFactory(appObjects: AppObjectRepo): LandmarksFeatureFactory;
|
|
26
|
+
//# sourceMappingURL=LandmarksFeatureFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LandmarksFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Landmarks/Factories/LandmarksFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAgBtE;;;;;;;;;GASG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,WAAW,SAA6B;IAExC,OAAO,KAAK,SAAS,GAEpB;IAED,aAAa,IAAI,IAAI;IAmBrB,QAAQ,IAAI,IAAI;IAQhB,QAAQ,IAAI,IAAI;IAQhB,UAAU,IAAI,IAAI;CAkBnB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,aAAa,GACxB,uBAAuB,CAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LandmarksFeatureFactory.test.d.ts","sourceRoot":"","sources":["../../../../src/Landmarks/Factories/LandmarksFeatureFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Landmarks/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Landmarks/Factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|