@supernova-studio/pulsar-core 1.0.10 → 1.0.11
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/build/browser/pulsar.js +2011 -2123
- package/build/browser/pulsar.min.js +3 -3
- package/build/main/browser-bundle.js +7 -8
- package/build/main/browser-bundle.js.map +1 -1
- package/build/main/engine/ExportEngine.d.ts +14 -14
- package/build/main/engine/ExportEngine.js +6 -6
- package/build/main/engine/ExportEngine.js.map +1 -1
- package/build/main/engine/configuration/ExportConfiguration.d.ts +10 -10
- package/build/main/engine/configuration/ExportConfiguration.js +8 -8
- package/build/main/engine/configuration/ExportConfiguration.js.map +1 -1
- package/build/main/engine/generation/ExportDataProducer.d.ts +13 -13
- package/build/main/engine/generation/ExportDataProducer.js +12 -12
- package/build/main/engine/generation/ExportDataProducer.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueue.d.ts +11 -11
- package/build/main/engine/generation/queue/ExportDataQueue.js +5 -5
- package/build/main/engine/generation/queue/ExportDataQueue.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +5 -5
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js +4 -4
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +7 -7
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequest.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequest.js +8 -8
- package/build/main/engine/generation/requests/ExportDataRequest.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +6 -6
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +12 -12
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +8 -8
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +19 -19
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js +27 -40
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataResponse.d.ts +12 -12
- package/build/main/engine/generation/requests/ExportDataResponse.js +4 -4
- package/build/main/engine/generation/requests/ExportDataResponse.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +11 -11
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +9 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +1 -1
- package/build/main/engine/items/ExportItemProducer.d.ts +12 -12
- package/build/main/engine/items/ExportItemProducer.js +7 -7
- package/build/main/engine/items/ExportItemProducer.js.map +1 -1
- package/build/main/engine/items/construction/ExportItem.d.ts +4 -4
- package/build/main/engine/items/construction/ExportItem.js +4 -4
- package/build/main/engine/items/construction/ExportItem.js.map +1 -1
- package/build/main/engine/items/construction/ExportItemBuilder.d.ts +7 -7
- package/build/main/engine/items/construction/ExportItemBuilder.js +7 -11
- package/build/main/engine/items/construction/ExportItemBuilder.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueue.d.ts +11 -11
- package/build/main/engine/items/queue/ExportItemQueue.js +5 -5
- package/build/main/engine/items/queue/ExportItemQueue.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +5 -5
- package/build/main/engine/items/queue/ExportItemQueueOperation.js +3 -3
- package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequest.d.ts +10 -10
- package/build/main/engine/items/requests/ExportItemRequest.js +5 -5
- package/build/main/engine/items/requests/ExportItemRequest.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +7 -7
- package/build/main/engine/items/requests/ExportItemRequestProducer.js +4 -4
- package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponse.d.ts +8 -8
- package/build/main/engine/items/requests/ExportItemResponse.js +4 -4
- package/build/main/engine/items/requests/ExportItemResponse.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +1 -1
- package/build/main/engine/loaders/BlueprintLoader.d.ts +8 -8
- package/build/main/engine/loaders/BlueprintLoader.js +11 -11
- package/build/main/engine/loaders/BlueprintLoader.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +11 -11
- package/build/main/engine/writing/queue/ExportWriterQueue.js +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueue.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +4 -4
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +10 -10
- package/build/main/engine/writing/requests/ExportWriterRequest.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterRequest.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +7 -7
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +5 -5
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +8 -8
- package/build/main/engine/writing/requests/ExportWriterResponse.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponse.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +5 -5
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +1 -1
- package/build/main/engine/writing/writers/ExportItemWriter.d.ts +12 -12
- package/build/main/engine/writing/writers/ExportItemWriter.js +7 -7
- package/build/main/engine/writing/writers/ExportItemWriter.js.map +1 -1
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +6 -6
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +7 -7
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +2 -2
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +6 -6
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +1 -1
- package/build/main/exports.d.ts +3 -3
- package/build/main/exports.js +3 -3
- package/build/main/exports.js.map +1 -1
- package/build/main/index.js.map +1 -1
- package/build/main/model/dsm/DSMReferenceStore.js +6 -6
- package/build/main/model/dsm/DSMReferenceStore.js.map +1 -1
- package/build/main/model/exporters/Exporter.d.ts +17 -16
- package/build/main/model/exporters/Exporter.js +14 -4
- package/build/main/model/exporters/Exporter.js.map +1 -1
- package/build/main/model/maps/ExporterMapBlueprint.d.ts +4 -4
- package/build/main/model/maps/ExporterMapBlueprint.js +3 -3
- package/build/main/model/maps/ExporterMapBlueprint.js.map +1 -1
- package/build/main/model/sources/ExporterSource.d.ts +6 -6
- package/build/main/model/sources/ExporterSource.js +13 -13
- package/build/main/model/sources/ExporterSource.js.map +1 -1
- package/build/main/pulsar/Pulsar.d.ts +35 -35
- package/build/main/pulsar/Pulsar.js +40 -40
- package/build/main/pulsar/Pulsar.js.map +1 -1
- package/build/main/pulsar/PulsarInterface.d.ts +54 -54
- package/build/main/pulsar/PulsarInterface.js +14 -14
- package/build/main/pulsar/PulsarInterface.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysis.d.ts +12 -12
- package/build/main/pulsar/PulsarStaticAnalysis.js +19 -19
- package/build/main/pulsar/PulsarStaticAnalysis.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +9 -9
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +1 -1
- package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarBlueprintManager.js +4 -4
- package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCIManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarCIManager.js +13 -13
- package/build/main/pulsar/managers/PulsarCIManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCodeManager.d.ts +15 -15
- package/build/main/pulsar/managers/PulsarCodeManager.js +29 -29
- package/build/main/pulsar/managers/PulsarCodeManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +3 -3
- package/build/main/pulsar/managers/PulsarConfigurationManager.js +4 -4
- package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarExporterManager.d.ts +11 -11
- package/build/main/pulsar/managers/PulsarExporterManager.js +5 -5
- package/build/main/pulsar/managers/PulsarExporterManager.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +10 -13
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +5 -5
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +1 -1
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +7 -9
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +16 -27
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +1 -1
- package/build/main/tests/TestConfiguration.js.map +1 -1
- package/build/main/tests/casebuilders/ci.d.ts +8 -8
- package/build/main/tests/casebuilders/ci.js +1 -1
- package/build/main/tests/casebuilders/ci.js.map +1 -1
- package/build/main/tests/casebuilders/configuration.d.ts +4 -4
- package/build/main/tests/casebuilders/configuration.js +3 -3
- package/build/main/tests/casebuilders/configuration.js.map +1 -1
- package/build/main/tests/casebuilders/dsm.d.ts +2 -2
- package/build/main/tests/casebuilders/dsm.js +3 -3
- package/build/main/tests/casebuilders/dsm.js.map +1 -1
- package/build/main/tests/casebuilders/modelObjects.d.ts +13 -13
- package/build/main/tests/casebuilders/modelObjects.js +14 -14
- package/build/main/tests/casebuilders/modelObjects.js.map +1 -1
- package/build/main/tools/Logger.d.ts +14 -14
- package/build/main/tools/Logger.js +18 -18
- package/build/main/tools/Logger.js.map +1 -1
- package/build/main/tools/LoggerDefaultMessages.d.ts +10 -10
- package/build/main/tools/LoggerDefaultMessages.js +16 -16
- package/build/main/tools/LoggerDefaultMessages.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +221 -221
- package/package.json +9 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
3
|
-
map:
|
|
1
|
+
import { PCExporterMapBlueprint } from './../../../model/maps/ExporterMapBlueprint';
|
|
2
|
+
export declare class PCExportItem {
|
|
3
|
+
map: PCExporterMapBlueprint;
|
|
4
4
|
contentData: any;
|
|
5
5
|
nameData: Map<string, any>;
|
|
6
6
|
resolvedName: string | null;
|
|
7
|
-
constructor(map:
|
|
7
|
+
constructor(map: PCExporterMapBlueprint, contentData: any, nameData: Map<string, any>, resolvedName: string | null);
|
|
8
8
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItem.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItem = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Object definition
|
|
13
|
-
class
|
|
13
|
+
class PCExportItem {
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Init
|
|
16
16
|
constructor(map, contentData, nameData, resolvedName) {
|
|
@@ -21,5 +21,5 @@ class PLSExportItem {
|
|
|
21
21
|
this.resolvedName = resolvedName;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.PCExportItem = PCExportItem;
|
|
25
25
|
//# sourceMappingURL=ExportItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItem.js","sourceRoot":"","sources":["../../../../../src/engine/items/construction/ExportItem.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItem.js","sourceRoot":"","sources":["../../../../../src/engine/items/construction/ExportItem.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAOF,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,YAAY;IASvB,8GAA8G;IAC9G,eAAe;IAEf,YAAY,GAA2B,EAAE,WAAgB,EAAE,QAA0B,EAAE,YAA2B;QAChH,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAExB,qDAAqD;QACrD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AApBD,oCAoBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
1
|
+
import { PCExportDataResponse } from '../../generation/requests/ExportDataResponse';
|
|
2
|
+
import { PCExportItem } from './ExportItem';
|
|
3
|
+
import { PCExportDataRequest } from './../../generation/requests/ExportDataRequest';
|
|
4
|
+
export declare class PCExportItemBuilder {
|
|
5
5
|
constructor();
|
|
6
|
-
buildItemsUsingResponse(response:
|
|
7
|
-
buildBlueprintItemsUsingRequest(_request:
|
|
8
|
-
buildAssetItemsUsingRequest(_request:
|
|
6
|
+
buildItemsUsingResponse(response: PCExportDataResponse): Array<PCExportItem>;
|
|
7
|
+
buildBlueprintItemsUsingRequest(_request: PCExportDataRequest, response: PCExportDataResponse): Array<PCExportItem>;
|
|
8
|
+
buildAssetItemsUsingRequest(_request: PCExportDataRequest, _response: PCExportDataResponse): Array<PCExportItem>;
|
|
9
9
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItemBuilder.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemBuilder = void 0;
|
|
11
11
|
const ExportItem_1 = require("./ExportItem");
|
|
12
12
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
13
13
|
// MARK: - Definitions
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Object definition
|
|
16
|
-
class
|
|
16
|
+
class PCExportItemBuilder {
|
|
17
17
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
18
18
|
// MARK: - Properties
|
|
19
19
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
@@ -29,19 +29,15 @@ class PLSExportItemBuilder {
|
|
|
29
29
|
buildBlueprintItemsUsingRequest(_request, response) {
|
|
30
30
|
// Blueprints always produce just one item
|
|
31
31
|
let contentData = response.dataStore.plainData();
|
|
32
|
-
let nameData = response.nameStore.isPlain()
|
|
33
|
-
|
|
34
|
-
: new Map();
|
|
35
|
-
let resolvedName = response.nameStore.isResolved()
|
|
36
|
-
? response.nameStore.resolvedData()
|
|
37
|
-
: null;
|
|
32
|
+
let nameData = response.nameStore.isPlain() ? response.nameStore.plainData() : new Map();
|
|
33
|
+
let resolvedName = response.nameStore.isResolved() ? response.nameStore.resolvedData() : null;
|
|
38
34
|
// Create and store data
|
|
39
|
-
let item = new ExportItem_1.
|
|
35
|
+
let item = new ExportItem_1.PCExportItem(response.map, contentData, nameData, resolvedName);
|
|
40
36
|
return [item];
|
|
41
37
|
}
|
|
42
38
|
buildAssetItemsUsingRequest(_request, _response) {
|
|
43
39
|
throw new Error('Unsupported type of request');
|
|
44
40
|
}
|
|
45
41
|
}
|
|
46
|
-
exports.
|
|
42
|
+
exports.PCExportItemBuilder = PCExportItemBuilder;
|
|
47
43
|
//# sourceMappingURL=ExportItemBuilder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemBuilder.js","sourceRoot":"","sources":["../../../../../src/engine/items/construction/ExportItemBuilder.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItemBuilder.js","sourceRoot":"","sources":["../../../../../src/engine/items/construction/ExportItemBuilder.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,6CAA2C;AAG3C,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,mBAAmB;IAC9B,8GAA8G;IAC9G,qBAAqB;IAErB,8GAA8G;IAC9G,eAAe;IAEf,gBAAe,CAAC;IAEhB,8GAA8G;IAC9G,wBAAwB;IAExB,uBAAuB,CAAC,QAA8B;QACpD,8GAA8G;QAC9G,IAAI,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAA;QAC9B,OAAO,IAAI,CAAC,+BAA+B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAChE,CAAC;IAED,+BAA+B,CAAC,QAA6B,EAAE,QAA8B;QAC3F,0CAA0C;QAC1C,IAAI,WAAW,GAAG,QAAQ,CAAC,SAAS,CAAC,SAAS,EAAE,CAAA;QAChD,IAAI,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,EAAe,CAAA;QACrG,IAAI,YAAY,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;QAE7F,wBAAwB;QACxB,IAAI,IAAI,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAA;QAC9E,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;IAED,2BAA2B,CAAC,QAA6B,EAAE,SAA+B;QACxF,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAChD,CAAC;CACF;AAhCD,kDAgCC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
5
|
-
configuration:
|
|
6
|
-
waitingOperations: Array<
|
|
1
|
+
import { PCExportItemRequest } from './../requests/ExportItemRequest';
|
|
2
|
+
import { PCExportItemQueueOperation } from './ExportItemQueueOperation';
|
|
3
|
+
import { PCExportConfiguration } from './../../configuration/ExportConfiguration';
|
|
4
|
+
export declare class PCExportItemQueue {
|
|
5
|
+
configuration: PCExportConfiguration;
|
|
6
|
+
waitingOperations: Array<PCExportItemQueueOperation>;
|
|
7
7
|
isLockedForChanges: boolean;
|
|
8
8
|
isFinished: boolean;
|
|
9
|
-
requests: Array<
|
|
9
|
+
requests: Array<PCExportItemRequest>;
|
|
10
10
|
requestsCompleted: number;
|
|
11
|
-
constructor(configuration:
|
|
12
|
-
addQueuedRequest(request:
|
|
13
|
-
addQueuedRequests(requests: Array<
|
|
11
|
+
constructor(configuration: PCExportConfiguration);
|
|
12
|
+
addQueuedRequest(request: PCExportItemRequest): void;
|
|
13
|
+
addQueuedRequests(requests: Array<PCExportItemRequest>): void;
|
|
14
14
|
clearQueue(): void;
|
|
15
|
-
processQueue(): Promise<Array<
|
|
15
|
+
processQueue(): Promise<Array<PCExportItemRequest>>;
|
|
16
16
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItemQueue.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemQueue = void 0;
|
|
11
11
|
const ExportItemQueueOperation_1 = require("./ExportItemQueueOperation");
|
|
12
12
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
13
13
|
// MARK: - Definitions
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Object definition
|
|
16
|
-
class
|
|
16
|
+
class PCExportItemQueue {
|
|
17
17
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
18
18
|
// MARK: - Init
|
|
19
19
|
constructor(configuration) {
|
|
@@ -28,7 +28,7 @@ class PLSExportItemQueue {
|
|
|
28
28
|
// MARK: - Queue management
|
|
29
29
|
addQueuedRequest(request) {
|
|
30
30
|
// Create operation
|
|
31
|
-
let operation = new ExportItemQueueOperation_1.
|
|
31
|
+
let operation = new ExportItemQueueOperation_1.PCExportItemQueueOperation(request);
|
|
32
32
|
// Add operation to queue
|
|
33
33
|
this.requests.push(request);
|
|
34
34
|
this.waitingOperations.push(operation);
|
|
@@ -66,5 +66,5 @@ class PLSExportItemQueue {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
exports.
|
|
69
|
+
exports.PCExportItemQueue = PCExportItemQueue;
|
|
70
70
|
//# sourceMappingURL=ExportItemQueue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemQueue.js","sourceRoot":"","sources":["../../../../../src/engine/items/queue/ExportItemQueue.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItemQueue.js","sourceRoot":"","sources":["../../../../../src/engine/items/queue/ExportItemQueue.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,wBAAwB;AACxB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,yEAAuE;AAGvE,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,iBAAiB;IAgB5B,8GAA8G;IAC9G,eAAe;IAEf,YAAY,aAAoC;QAVhD,uBAAkB,GAAY,KAAK,CAAA;QACnC,eAAU,GAAY,KAAK,CAAA;QAUzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,iBAAiB,GAAG,IAAI,KAAK,EAA8B,CAAA;QAChE,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,EAAuB,CAAA;QAChD,IAAI,CAAC,iBAAiB,GAAG,CAAC,CA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MAAM,CAAC,KAAK,CAAC,CAAA;YACf,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AA3ED,8CA2EC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
3
|
-
request:
|
|
4
|
-
constructor(request:
|
|
5
|
-
processOperation(): Promise<
|
|
1
|
+
import { PCExportItemRequest } from './../requests/ExportItemRequest';
|
|
2
|
+
export declare class PCExportItemQueueOperation {
|
|
3
|
+
request: PCExportItemRequest;
|
|
4
|
+
constructor(request: PCExportItemRequest);
|
|
5
|
+
processOperation(): Promise<PCExportItemRequest>;
|
|
6
6
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemQueueOperation = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Definitions
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Object definition
|
|
15
|
-
class
|
|
15
|
+
class PCExportItemQueueOperation {
|
|
16
16
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
17
17
|
// MARK: - Init
|
|
18
18
|
constructor(request) {
|
|
@@ -32,5 +32,5 @@ class PLSExportItemQueueOperation {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.PCExportItemQueueOperation = PCExportItemQueueOperation;
|
|
36
36
|
//# sourceMappingURL=ExportItemQueueOperation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemQueueOperation.js","sourceRoot":"","sources":["../../../../../src/engine/items/queue/ExportItemQueueOperation.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,+BAA+B;AAC/B,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAOF,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,
|
|
1
|
+
{"version":3,"file":"ExportItemQueueOperation.js","sourceRoot":"","sources":["../../../../../src/engine/items/queue/ExportItemQueueOperation.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,+BAA+B;AAC/B,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAOF,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,0BAA0B;IAOrC,8GAA8G;IAC9G,eAAe;IAEf,YAAY,OAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,kDAAkD;YAClD,IAAI,CAAC,OAAO;iBACT,WAAW,EAAE;iBACb,IAAI,CAAC,CAAC,CAAC,EAAE;gBACR,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YACvB,CAAC,CAAC;iBACD,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,CAAC,KAAK,CAAC,CAAA;YACf,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AA3BD,gEA2BC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
5
|
-
items: Array<
|
|
1
|
+
import { PCExportConfiguration } from './../../configuration/ExportConfiguration';
|
|
2
|
+
import { PCExportDataResponse } from './../../generation/requests/ExportDataResponse';
|
|
3
|
+
import { PCExportItem } from './../construction/ExportItem';
|
|
4
|
+
export declare class PCExportItemRequest {
|
|
5
|
+
items: Array<PCExportItem> | null;
|
|
6
6
|
error: Error | null;
|
|
7
|
-
dataResponse:
|
|
8
|
-
configuration:
|
|
7
|
+
dataResponse: PCExportDataResponse;
|
|
8
|
+
configuration: PCExportConfiguration;
|
|
9
9
|
processingError: Error | null;
|
|
10
10
|
processingFinished: boolean;
|
|
11
|
-
constructor(configuration:
|
|
12
|
-
produceItem(): Promise<Array<
|
|
11
|
+
constructor(configuration: PCExportConfiguration, dataResponse: PCExportDataResponse);
|
|
12
|
+
produceItem(): Promise<Array<PCExportItem>>;
|
|
13
13
|
cancel(): void;
|
|
14
|
-
requestSuccessful(items: Array<
|
|
14
|
+
requestSuccessful(items: Array<PCExportItem>): void;
|
|
15
15
|
requestFailed(error: Error): void;
|
|
16
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItemRequest.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemRequest = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Imports
|
|
13
13
|
const ExportItemBuilder_1 = require("./../construction/ExportItemBuilder");
|
|
@@ -15,7 +15,7 @@ const ExportItemBuilder_1 = require("./../construction/ExportItemBuilder");
|
|
|
15
15
|
// MARK: - Definitions
|
|
16
16
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
17
17
|
// MARK: - Object definition
|
|
18
|
-
class
|
|
18
|
+
class PCExportItemRequest {
|
|
19
19
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
20
20
|
// MARK: - Init
|
|
21
21
|
constructor(configuration, dataResponse) {
|
|
@@ -37,7 +37,7 @@ class PLSExportItemRequest {
|
|
|
37
37
|
return new Promise((resolve, reject) => {
|
|
38
38
|
try {
|
|
39
39
|
// Create the item
|
|
40
|
-
let builder = new ExportItemBuilder_1.
|
|
40
|
+
let builder = new ExportItemBuilder_1.PCExportItemBuilder();
|
|
41
41
|
let items = builder.buildItemsUsingResponse(this.dataResponse);
|
|
42
42
|
// Request successful
|
|
43
43
|
this.requestSuccessful(items);
|
|
@@ -64,5 +64,5 @@ class PLSExportItemRequest {
|
|
|
64
64
|
this.processingError = error;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
exports.
|
|
67
|
+
exports.PCExportItemRequest = PCExportItemRequest;
|
|
68
68
|
//# sourceMappingURL=ExportItemRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemRequest.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemRequest.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItemRequest.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemRequest.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,2EAAyE;AAKzE,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,mBAAmB;IAgB9B,8GAA8G;IAC9G,eAAe;IAEf,YAAY,aAAoC,EAAE,YAAkC;QAlBpF,8GAA8G;QAC9G,qBAAqB;QAErB,OAAO;QACP,UAAK,GAA+B,IAAI,CAAA;QAC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portConfiguration:
|
|
7
|
-
produceRequestsForDataResponse(dataResponse:
|
|
1
|
+
import { PCExportDataResponse } from './../../generation/requests/ExportDataResponse';
|
|
2
|
+
import { PCExportConfiguration } from './../../configuration/ExportConfiguration';
|
|
3
|
+
import { PCExportItemRequest } from './ExportItemRequest';
|
|
4
|
+
export declare class PCExportItemRequestProducer {
|
|
5
|
+
configuration: PCExportConfiguration;
|
|
6
|
+
constructor(exportConfiguration: PCExportConfiguration);
|
|
7
|
+
produceRequestsForDataResponse(dataResponse: PCExportDataResponse): Array<PCExportItemRequest>;
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PCExportItemRequestProducer = void 0;
|
|
4
4
|
const ExportItemRequest_1 = require("./ExportItemRequest");
|
|
5
5
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
6
6
|
// MARK: - Definitions
|
|
7
7
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
8
8
|
// MARK: - Object definition
|
|
9
|
-
class
|
|
9
|
+
class PCExportItemRequestProducer {
|
|
10
10
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
11
11
|
// MARK: - Init
|
|
12
12
|
constructor(exportConfiguration) {
|
|
@@ -16,9 +16,9 @@ class PLSExportItemRequestProducer {
|
|
|
16
16
|
// MARK: - Request creation
|
|
17
17
|
produceRequestsForDataResponse(dataResponse) {
|
|
18
18
|
// For now, only create one item request per one data response
|
|
19
|
-
let request = new ExportItemRequest_1.
|
|
19
|
+
let request = new ExportItemRequest_1.PCExportItemRequest(this.configuration, dataResponse);
|
|
20
20
|
return [request];
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
exports.
|
|
23
|
+
exports.PCExportItemRequestProducer = PCExportItemRequestProducer;
|
|
24
24
|
//# sourceMappingURL=ExportItemRequestProducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemRequestProducer.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemRequestProducer.ts"],"names":[],"mappings":";;;AAaA,
|
|
1
|
+
{"version":3,"file":"ExportItemRequestProducer.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemRequestProducer.ts"],"names":[],"mappings":";;;AAaA,2DAAyD;AAEzD,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,2BAA2B;IAMtC,8GAA8G;IAC9G,eAAe;IAEf,YAAY,mBAA0C;QACpD,IAAI,CAAC,aAAa,GAAG,mBAAmB,CAAA;IAC1C,CAAC;IAED,8GAA8G;IAC9G,2BAA2B;IAE3B,8BAA8B,CAAC,YAAkC;QAC/D,8DAA8D;QAC9D,IAAI,OAAO,GAAG,IAAI,uCAAmB,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACvE,OAAO,CAAC,OAAO,CAAC,CAAA;IAClB,CAAC;CACF;AArBD,kEAqBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
5
|
-
item:
|
|
6
|
-
map:
|
|
7
|
-
request:
|
|
8
|
-
constructor(item:
|
|
1
|
+
import { PCExporterMapBlueprint } from './../../../model/maps/ExporterMapBlueprint';
|
|
2
|
+
import { PCExportItem } from './../construction/ExportItem';
|
|
3
|
+
import { PCExportItemRequest } from './ExportItemRequest';
|
|
4
|
+
export declare class PCExportItemResponse {
|
|
5
|
+
item: PCExportItem;
|
|
6
|
+
map: PCExporterMapBlueprint;
|
|
7
|
+
request: PCExportItemRequest;
|
|
8
|
+
constructor(item: PCExportItem, map: PCExporterMapBlueprint, request: PCExportItemRequest);
|
|
9
9
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItemResponse.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemResponse = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Definitions
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Object definition
|
|
15
|
-
class
|
|
15
|
+
class PCExportItemResponse {
|
|
16
16
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
17
17
|
// MARK: - Init
|
|
18
18
|
constructor(item, map, request) {
|
|
@@ -21,5 +21,5 @@ class PLSExportItemResponse {
|
|
|
21
21
|
this.request = request;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.PCExportItemResponse = PCExportItemResponse;
|
|
25
25
|
//# sourceMappingURL=ExportItemResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemResponse.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemResponse.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItemResponse.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemResponse.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,2BAA2B;AAC3B,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AASF,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,oBAAoB;IAS/B,8GAA8G;IAC9G,eAAe;IAEf,YAAY,IAAkB,EAAE,GAA2B,EAAE,OAA4B;QACvF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CACF;AAjBD,oDAiBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
1
|
+
import { PCExportItemRequest } from './ExportItemRequest';
|
|
2
|
+
import { PCExportItemResponse } from './ExportItemResponse';
|
|
3
|
+
export declare class PCExportItemResponseProducer {
|
|
4
4
|
constructor();
|
|
5
|
-
produceResponsesFromRequests(requests: Array<
|
|
6
|
-
produceResponseFromRequest(request:
|
|
5
|
+
produceResponsesFromRequests(requests: Array<PCExportItemRequest>): Array<PCExportItemResponse>;
|
|
6
|
+
produceResponseFromRequest(request: PCExportItemRequest): Array<PCExportItemResponse>;
|
|
7
7
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportItemResponseProducer.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportItemResponseProducer = void 0;
|
|
11
11
|
const ExportItemResponse_1 = require("./ExportItemResponse");
|
|
12
12
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
13
13
|
// MARK: - Definitions
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Object definition
|
|
16
|
-
class
|
|
16
|
+
class PCExportItemResponseProducer {
|
|
17
17
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
18
18
|
// MARK: - Properties
|
|
19
19
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
@@ -35,11 +35,11 @@ class PLSExportItemResponseProducer {
|
|
|
35
35
|
var _a;
|
|
36
36
|
let responses = [];
|
|
37
37
|
for (let item of (_a = request.items) !== null && _a !== void 0 ? _a : []) {
|
|
38
|
-
let response = new ExportItemResponse_1.
|
|
38
|
+
let response = new ExportItemResponse_1.PCExportItemResponse(item, item.map, request);
|
|
39
39
|
responses.push(response);
|
|
40
40
|
}
|
|
41
41
|
return responses;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
exports.
|
|
44
|
+
exports.PCExportItemResponseProducer = PCExportItemResponseProducer;
|
|
45
45
|
//# sourceMappingURL=ExportItemResponseProducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportItemResponseProducer.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemResponseProducer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportItemResponseProducer.js","sourceRoot":"","sources":["../../../../../src/engine/items/requests/ExportItemResponseProducer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mCAAmC;AACnC,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,6DAA2D;AAE3D,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,4BAA4B;IACvC,8GAA8G;IAC9G,qBAAqB;IAErB,8GAA8G;IAC9G,eAAe;IAEf,gBAAe,CAAC;IAEhB,8GAA8G;IAC9G,8BAA8B;IAE9B,4BAA4B,CAAC,QAAoC;QAC/D,IAAI,SAAS,GAAgC,EAAE,CAAA;QAC/C,KAAK,IAAI,OAAO,IAAI,QAAQ,EAAE;YAC5B,IAAI,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAA;YAC/D,KAAK,IAAI,QAAQ,IAAI,gBAAgB,EAAE;gBACrC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;aACzB;SACF;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,0BAA0B,CAAC,OAA4B;;QACrD,IAAI,SAAS,GAAgC,EAAE,CAAA;QAC/C,KAAK,IAAI,IAAI,UAAI,OAAO,CAAC,KAAK,mCAAI,EAAE,EAAE;YACpC,IAAI,QAAQ,GAAG,IAAI,yCAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAChE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACzB;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AAjCD,oEAiCC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
5
|
-
exporter:
|
|
6
|
-
constructor(exporter:
|
|
7
|
-
|
|
8
|
-
loadSourceForSourceId(sourceId: string, executionContext:
|
|
1
|
+
import { PCExporter } from './../../model/exporters/Exporter';
|
|
2
|
+
import { PLBlueprintLoader } from '@supernova-studio/pulsar-language/build/main/interpreter/loaders/BlueprintLoader';
|
|
3
|
+
import { PLExecutionContext, PLBlueprintConfiguration, PLBlueprint } from '@supernova-studio/pulsar-language';
|
|
4
|
+
export declare class PCBlueprintLoader extends PLBlueprintLoader {
|
|
5
|
+
exporter: PCExporter;
|
|
6
|
+
constructor(exporter: PCExporter);
|
|
7
|
+
loadBlueprint(blueprintId: string, executionContext: PLExecutionContext, configuration: PLBlueprintConfiguration): PLBlueprint;
|
|
8
|
+
loadSourceForSourceId(sourceId: string, executionContext: PLExecutionContext, configuration: PLBlueprintConfiguration): PLBlueprint;
|
|
9
9
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCBlueprintLoader = void 0;
|
|
11
11
|
const BlueprintLoader_1 = require("@supernova-studio/pulsar-language/build/main/interpreter/loaders/BlueprintLoader");
|
|
12
12
|
const pulsar_language_1 = require("@supernova-studio/pulsar-language");
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Class
|
|
15
|
-
class
|
|
15
|
+
class PCBlueprintLoader extends BlueprintLoader_1.PLBlueprintLoader {
|
|
16
16
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
17
17
|
// MARK: - Setup
|
|
18
18
|
constructor(exporter) {
|
|
@@ -21,18 +21,18 @@ class PLSBlueprintLoader extends BlueprintLoader_1.BLZBlueprintLoader {
|
|
|
21
21
|
}
|
|
22
22
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
23
23
|
// MARK: - Blueprint Loading
|
|
24
|
-
|
|
25
|
-
let cachedBlueprint = this.cachedBlueprint(
|
|
26
|
-
let containedBlueprint = this.exporter.
|
|
24
|
+
loadBlueprint(blueprintId, executionContext, configuration) {
|
|
25
|
+
let cachedBlueprint = this.cachedBlueprint(blueprintId);
|
|
26
|
+
let containedBlueprint = this.exporter.sourceByIdIgnoringExecutableExtension(blueprintId);
|
|
27
27
|
if (!cachedBlueprint && !containedBlueprint) {
|
|
28
28
|
for (const bp of this.exporter.sources.values()) {
|
|
29
|
-
if (bp.id ===
|
|
30
|
-
|
|
29
|
+
if (bp.id === blueprintId) {
|
|
30
|
+
blueprintId = bp.id;
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
return this.loadSourceForSourceId(
|
|
35
|
+
return this.loadSourceForSourceId(blueprintId, executionContext, configuration);
|
|
36
36
|
}
|
|
37
37
|
loadSourceForSourceId(sourceId, executionContext, configuration) {
|
|
38
38
|
// Use cached source if exists
|
|
@@ -41,15 +41,15 @@ class PLSBlueprintLoader extends BlueprintLoader_1.BLZBlueprintLoader {
|
|
|
41
41
|
return cachedBlueprint;
|
|
42
42
|
}
|
|
43
43
|
// Blueprint must be present in loader scope
|
|
44
|
-
let containedBlueprint = this.exporter.
|
|
44
|
+
let containedBlueprint = this.exporter.sourceByIdIgnoringExecutableExtension(sourceId);
|
|
45
45
|
if (!containedBlueprint) {
|
|
46
46
|
throw Error(`Undefined source ${sourceId}`);
|
|
47
47
|
}
|
|
48
48
|
// Create new source, cache it and retrieve
|
|
49
|
-
let source = pulsar_language_1.
|
|
49
|
+
let source = pulsar_language_1.PLBlueprintFactory.blueprint(containedBlueprint.content, sourceId, executionContext, configuration);
|
|
50
50
|
this.cache(source, sourceId);
|
|
51
51
|
return source;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.
|
|
54
|
+
exports.PCBlueprintLoader = PCBlueprintLoader;
|
|
55
55
|
//# sourceMappingURL=BlueprintLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlueprintLoader.js","sourceRoot":"","sources":["../../../../src/engine/loaders/BlueprintLoader.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,sBAAsB;AACtB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,
|
|
1
|
+
{"version":3,"file":"BlueprintLoader.js","sourceRoot":"","sources":["../../../../src/engine/loaders/Blueprint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