@onerjs/smart-filters 8.25.2 → 8.25.3
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/dist/IDisposable.d.ts +10 -0
- package/dist/IDisposable.d.ts.map +1 -0
- package/dist/IDisposable.js +2 -0
- package/dist/IDisposable.js.map +1 -0
- package/dist/blockFoundation/aggregateBlock.d.ts +56 -0
- package/dist/blockFoundation/aggregateBlock.d.ts.map +1 -0
- package/dist/blockFoundation/aggregateBlock.js +130 -0
- package/dist/blockFoundation/aggregateBlock.js.map +1 -0
- package/dist/blockFoundation/baseBlock.d.ts +176 -0
- package/dist/blockFoundation/baseBlock.d.ts.map +1 -0
- package/dist/blockFoundation/baseBlock.js +276 -0
- package/dist/blockFoundation/baseBlock.js.map +1 -0
- package/dist/blockFoundation/customAggregateBlock.d.ts +38 -0
- package/dist/blockFoundation/customAggregateBlock.d.ts.map +1 -0
- package/dist/blockFoundation/customAggregateBlock.js +63 -0
- package/dist/blockFoundation/customAggregateBlock.js.map +1 -0
- package/dist/blockFoundation/customShaderBlock.d.ts +73 -0
- package/dist/blockFoundation/customShaderBlock.d.ts.map +1 -0
- package/dist/blockFoundation/customShaderBlock.js +232 -0
- package/dist/blockFoundation/customShaderBlock.js.map +1 -0
- package/dist/blockFoundation/disableableShaderBlock.d.ts +56 -0
- package/dist/blockFoundation/disableableShaderBlock.d.ts.map +1 -0
- package/dist/blockFoundation/disableableShaderBlock.js +68 -0
- package/dist/blockFoundation/disableableShaderBlock.js.map +1 -0
- package/dist/blockFoundation/index.d.ts +10 -0
- package/dist/blockFoundation/index.d.ts.map +1 -0
- package/dist/blockFoundation/index.js +8 -0
- package/dist/blockFoundation/index.js.map +1 -0
- package/dist/blockFoundation/inputBlock.d.ts +127 -0
- package/dist/blockFoundation/inputBlock.d.ts.map +1 -0
- package/dist/blockFoundation/inputBlock.deserializer.d.ts +12 -0
- package/dist/blockFoundation/inputBlock.deserializer.d.ts.map +1 -0
- package/dist/blockFoundation/inputBlock.deserializer.js +65 -0
- package/dist/blockFoundation/inputBlock.deserializer.js.map +1 -0
- package/dist/blockFoundation/inputBlock.js +89 -0
- package/dist/blockFoundation/inputBlock.js.map +1 -0
- package/dist/blockFoundation/inputBlock.serialization.types.d.ts +105 -0
- package/dist/blockFoundation/inputBlock.serialization.types.d.ts.map +1 -0
- package/dist/blockFoundation/inputBlock.serialization.types.js +2 -0
- package/dist/blockFoundation/inputBlock.serialization.types.js.map +1 -0
- package/dist/blockFoundation/inputBlock.serializer.d.ts +6 -0
- package/dist/blockFoundation/inputBlock.serializer.d.ts.map +1 -0
- package/dist/blockFoundation/inputBlock.serializer.js +130 -0
- package/dist/blockFoundation/inputBlock.serializer.js.map +1 -0
- package/dist/blockFoundation/outputBlock.d.ts +47 -0
- package/dist/blockFoundation/outputBlock.d.ts.map +1 -0
- package/dist/blockFoundation/outputBlock.js +123 -0
- package/dist/blockFoundation/outputBlock.js.map +1 -0
- package/dist/blockFoundation/shaderBlock.d.ts +64 -0
- package/dist/blockFoundation/shaderBlock.d.ts.map +1 -0
- package/dist/blockFoundation/shaderBlock.js +125 -0
- package/dist/blockFoundation/shaderBlock.js.map +1 -0
- package/dist/blockFoundation/textureOptions.d.ts +47 -0
- package/dist/blockFoundation/textureOptions.d.ts.map +1 -0
- package/dist/blockFoundation/textureOptions.js +37 -0
- package/dist/blockFoundation/textureOptions.js.map +1 -0
- package/dist/command/command.d.ts +48 -0
- package/dist/command/command.d.ts.map +1 -0
- package/dist/command/command.js +15 -0
- package/dist/command/command.js.map +1 -0
- package/dist/command/commandBuffer.d.ts +40 -0
- package/dist/command/commandBuffer.d.ts.map +1 -0
- package/dist/command/commandBuffer.js +58 -0
- package/dist/command/commandBuffer.js.map +1 -0
- package/dist/command/commandBufferDebugger.d.ts +7 -0
- package/dist/command/commandBufferDebugger.d.ts.map +1 -0
- package/dist/command/commandBufferDebugger.js +13 -0
- package/dist/command/commandBufferDebugger.js.map +1 -0
- package/dist/command/index.d.ts +6 -0
- package/dist/command/index.d.ts.map +1 -0
- package/dist/command/index.js +8 -0
- package/dist/command/index.js.map +1 -0
- package/dist/connection/connectionPoint.d.ts +110 -0
- package/dist/connection/connectionPoint.d.ts.map +1 -0
- package/dist/connection/connectionPoint.js +154 -0
- package/dist/connection/connectionPoint.js.map +1 -0
- package/dist/connection/connectionPointCompatibilityState.d.ts +20 -0
- package/dist/connection/connectionPointCompatibilityState.d.ts.map +1 -0
- package/dist/connection/connectionPointCompatibilityState.js +32 -0
- package/dist/connection/connectionPointCompatibilityState.js.map +1 -0
- package/dist/connection/connectionPointDirection.d.ts +10 -0
- package/dist/connection/connectionPointDirection.d.ts.map +1 -0
- package/dist/connection/connectionPointDirection.js +11 -0
- package/dist/connection/connectionPointDirection.js.map +1 -0
- package/dist/connection/connectionPointType.d.ts +29 -0
- package/dist/connection/connectionPointType.d.ts.map +1 -0
- package/dist/connection/connectionPointType.js +19 -0
- package/dist/connection/connectionPointType.js.map +1 -0
- package/dist/connection/connectionPointWithDefault.d.ts +23 -0
- package/dist/connection/connectionPointWithDefault.d.ts.map +1 -0
- package/dist/connection/connectionPointWithDefault.js +19 -0
- package/dist/connection/connectionPointWithDefault.js.map +1 -0
- package/dist/connection/index.d.ts +8 -0
- package/dist/connection/index.d.ts.map +1 -0
- package/dist/connection/index.js +7 -0
- package/dist/connection/index.js.map +1 -0
- package/dist/editorUtils/editableInPropertyPage.d.ts +80 -0
- package/dist/editorUtils/editableInPropertyPage.d.ts.map +1 -0
- package/dist/editorUtils/editableInPropertyPage.js +42 -0
- package/dist/editorUtils/editableInPropertyPage.js.map +1 -0
- package/dist/editorUtils/index.d.ts +3 -0
- package/dist/editorUtils/index.d.ts.map +1 -0
- package/dist/editorUtils/index.js +4 -0
- package/dist/editorUtils/index.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/optimization/dependencyGraph.d.ts +31 -0
- package/dist/optimization/dependencyGraph.d.ts.map +1 -0
- package/dist/optimization/dependencyGraph.js +78 -0
- package/dist/optimization/dependencyGraph.js.map +1 -0
- package/dist/optimization/index.d.ts +2 -0
- package/dist/optimization/index.d.ts.map +1 -0
- package/dist/optimization/index.js +2 -0
- package/dist/optimization/index.js.map +1 -0
- package/dist/optimization/optimizedShaderBlock.d.ts +75 -0
- package/dist/optimization/optimizedShaderBlock.d.ts.map +1 -0
- package/dist/optimization/optimizedShaderBlock.js +105 -0
- package/dist/optimization/optimizedShaderBlock.js.map +1 -0
- package/dist/optimization/smartFilterOptimizer.d.ts +126 -0
- package/dist/optimization/smartFilterOptimizer.d.ts.map +1 -0
- package/dist/optimization/smartFilterOptimizer.js +666 -0
- package/dist/optimization/smartFilterOptimizer.js.map +1 -0
- package/dist/runtime/index.d.ts +8 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +7 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/renderTargetGenerator.d.ts +43 -0
- package/dist/runtime/renderTargetGenerator.d.ts.map +1 -0
- package/dist/runtime/renderTargetGenerator.js +169 -0
- package/dist/runtime/renderTargetGenerator.js.map +1 -0
- package/dist/runtime/shaderRuntime.d.ts +103 -0
- package/dist/runtime/shaderRuntime.d.ts.map +1 -0
- package/dist/runtime/shaderRuntime.js +132 -0
- package/dist/runtime/shaderRuntime.js.map +1 -0
- package/dist/runtime/smartFilterRuntime.d.ts +69 -0
- package/dist/runtime/smartFilterRuntime.d.ts.map +1 -0
- package/dist/runtime/smartFilterRuntime.js +63 -0
- package/dist/runtime/smartFilterRuntime.js.map +1 -0
- package/dist/runtime/strongRef.d.ts +16 -0
- package/dist/runtime/strongRef.d.ts.map +1 -0
- package/dist/runtime/strongRef.js +9 -0
- package/dist/runtime/strongRef.js.map +1 -0
- package/dist/serialization/importCustomBlockDefinition.d.ts +15 -0
- package/dist/serialization/importCustomBlockDefinition.d.ts.map +1 -0
- package/dist/serialization/importCustomBlockDefinition.js +76 -0
- package/dist/serialization/importCustomBlockDefinition.js.map +1 -0
- package/dist/serialization/index.d.ts +9 -0
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/serialization/index.js +11 -0
- package/dist/serialization/index.js.map +1 -0
- package/dist/serialization/serializedBlockDefinition.d.ts +12 -0
- package/dist/serialization/serializedBlockDefinition.d.ts.map +1 -0
- package/dist/serialization/serializedBlockDefinition.js +2 -0
- package/dist/serialization/serializedBlockDefinition.js.map +1 -0
- package/dist/serialization/serializedShaderBlockDefinition.d.ts +7 -0
- package/dist/serialization/serializedShaderBlockDefinition.d.ts.map +1 -0
- package/dist/serialization/serializedShaderBlockDefinition.js +2 -0
- package/dist/serialization/serializedShaderBlockDefinition.js.map +1 -0
- package/dist/serialization/serializedSmartFilter.d.ts +6 -0
- package/dist/serialization/serializedSmartFilter.d.ts.map +1 -0
- package/dist/serialization/serializedSmartFilter.js +2 -0
- package/dist/serialization/serializedSmartFilter.js.map +1 -0
- package/dist/serialization/smartFilterDeserializer.d.ts +34 -0
- package/dist/serialization/smartFilterDeserializer.d.ts.map +1 -0
- package/dist/serialization/smartFilterDeserializer.js +141 -0
- package/dist/serialization/smartFilterDeserializer.js.map +1 -0
- package/dist/serialization/smartFilterSerializer.d.ts +23 -0
- package/dist/serialization/smartFilterSerializer.d.ts.map +1 -0
- package/dist/serialization/smartFilterSerializer.js +95 -0
- package/dist/serialization/smartFilterSerializer.js.map +1 -0
- package/dist/serialization/v1/defaultBlockSerializer.d.ts +9 -0
- package/dist/serialization/v1/defaultBlockSerializer.d.ts.map +1 -0
- package/dist/serialization/v1/defaultBlockSerializer.js +19 -0
- package/dist/serialization/v1/defaultBlockSerializer.js.map +1 -0
- package/dist/serialization/v1/index.d.ts +4 -0
- package/dist/serialization/v1/index.d.ts.map +1 -0
- package/dist/serialization/v1/index.js +5 -0
- package/dist/serialization/v1/index.js.map +1 -0
- package/dist/serialization/v1/shaderBlockSerialization.types.d.ts +73 -0
- package/dist/serialization/v1/shaderBlockSerialization.types.d.ts.map +1 -0
- package/dist/serialization/v1/shaderBlockSerialization.types.js +7 -0
- package/dist/serialization/v1/shaderBlockSerialization.types.js.map +1 -0
- package/dist/serialization/v1/smartFilterSerialization.types.d.ts +98 -0
- package/dist/serialization/v1/smartFilterSerialization.types.d.ts.map +1 -0
- package/dist/serialization/v1/smartFilterSerialization.types.js +2 -0
- package/dist/serialization/v1/smartFilterSerialization.types.js.map +1 -0
- package/dist/smartFilter.d.ts +118 -0
- package/dist/smartFilter.d.ts.map +1 -0
- package/dist/smartFilter.js +169 -0
- package/dist/smartFilter.js.map +1 -0
- package/dist/utils/buildTools/buildShaders.d.ts +9 -0
- package/dist/utils/buildTools/buildShaders.d.ts.map +1 -0
- package/dist/utils/buildTools/buildShaders.js +13 -0
- package/dist/utils/buildTools/buildShaders.js.map +1 -0
- package/dist/utils/buildTools/convertGlslIntoBlock.d.ts +9 -0
- package/dist/utils/buildTools/convertGlslIntoBlock.d.ts.map +1 -0
- package/dist/utils/buildTools/convertGlslIntoBlock.js +346 -0
- package/dist/utils/buildTools/convertGlslIntoBlock.js.map +1 -0
- package/dist/utils/buildTools/convertGlslIntoShaderProgram.d.ts +26 -0
- package/dist/utils/buildTools/convertGlslIntoShaderProgram.d.ts.map +1 -0
- package/dist/utils/buildTools/convertGlslIntoShaderProgram.js +141 -0
- package/dist/utils/buildTools/convertGlslIntoShaderProgram.js.map +1 -0
- package/dist/utils/buildTools/convertShaders.d.ts +16 -0
- package/dist/utils/buildTools/convertShaders.d.ts.map +1 -0
- package/dist/utils/buildTools/convertShaders.js +62 -0
- package/dist/utils/buildTools/convertShaders.js.map +1 -0
- package/dist/utils/buildTools/shaderCode.types.d.ts +51 -0
- package/dist/utils/buildTools/shaderCode.types.d.ts.map +1 -0
- package/dist/utils/buildTools/shaderCode.types.js +2 -0
- package/dist/utils/buildTools/shaderCode.types.js.map +1 -0
- package/dist/utils/buildTools/shaderConverter.d.ts +77 -0
- package/dist/utils/buildTools/shaderConverter.d.ts.map +1 -0
- package/dist/utils/buildTools/shaderConverter.js +297 -0
- package/dist/utils/buildTools/shaderConverter.js.map +1 -0
- package/dist/utils/buildTools/watchShaders.d.ts +9 -0
- package/dist/utils/buildTools/watchShaders.d.ts.map +1 -0
- package/dist/utils/buildTools/watchShaders.js +39 -0
- package/dist/utils/buildTools/watchShaders.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/renderTargetUtils.d.ts +14 -0
- package/dist/utils/renderTargetUtils.d.ts.map +1 -0
- package/dist/utils/renderTargetUtils.js +23 -0
- package/dist/utils/renderTargetUtils.js.map +1 -0
- package/dist/utils/shaderCodeUtils.d.ts +91 -0
- package/dist/utils/shaderCodeUtils.d.ts.map +1 -0
- package/dist/utils/shaderCodeUtils.js +111 -0
- package/dist/utils/shaderCodeUtils.js.map +1 -0
- package/dist/utils/textureLoaders.d.ts +16 -0
- package/dist/utils/textureLoaders.d.ts.map +1 -0
- package/dist/utils/textureLoaders.js +22 -0
- package/dist/utils/textureLoaders.js.map +1 -0
- package/dist/utils/textureUtils.d.ts +13 -0
- package/dist/utils/textureUtils.d.ts.map +1 -0
- package/dist/utils/textureUtils.js +25 -0
- package/dist/utils/textureUtils.js.map +1 -0
- package/dist/utils/uniqueIdGenerator.d.ts +19 -0
- package/dist/utils/uniqueIdGenerator.d.ts.map +1 -0
- package/dist/utils/uniqueIdGenerator.js +27 -0
- package/dist/utils/uniqueIdGenerator.js.map +1 -0
- package/dist/version.d.ts +5 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/package.json +1 -1
- package/src/optimization/smartFilterOptimizer.ts +305 -158
- package/src/version.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDisposable.d.ts","sourceRoot":"","sources":["../src/IDisposable.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDisposable.js","sourceRoot":"","sources":["../src/IDisposable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Nullable } from "@onerjs/core/types.js";
|
|
2
|
+
import type { ConnectionPoint, RuntimeData } from "../connection/connectionPoint.js";
|
|
3
|
+
import type { ConnectionPointType } from "../connection/connectionPointType.js";
|
|
4
|
+
import { BaseBlock } from "./baseBlock.js";
|
|
5
|
+
/**
|
|
6
|
+
* The aggregate block class is the base class for all blocks that be created from other blocks.
|
|
7
|
+
*
|
|
8
|
+
* It is responsible for managing a hidden chain of smart filter blocks in order and expose them through
|
|
9
|
+
* its own connection points.
|
|
10
|
+
*
|
|
11
|
+
* The internal state is basically a filter itself.
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class AggregateBlock extends BaseBlock {
|
|
14
|
+
/**
|
|
15
|
+
* The class name of the block.
|
|
16
|
+
*/
|
|
17
|
+
static ClassName: string;
|
|
18
|
+
/**
|
|
19
|
+
* The list of relationships between the internal graph output and the outside ones.
|
|
20
|
+
*/
|
|
21
|
+
private readonly _aggregatedOutputs;
|
|
22
|
+
/**
|
|
23
|
+
* The list of relationships between the internal graph inputs and the outside ones.
|
|
24
|
+
*/
|
|
25
|
+
private readonly _aggregatedInputs;
|
|
26
|
+
/**
|
|
27
|
+
* Do not override prepareForRuntime for aggregate blocks. It is not supported.
|
|
28
|
+
*/
|
|
29
|
+
prepareForRuntime(): never;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Merges the internal graph into the SmartFilter
|
|
33
|
+
*/
|
|
34
|
+
_mergeIntoSmartFilter(mergedAggregateBlocks: AggregateBlock[]): void;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* Undoes a previous mergeIntoSmartFilter call.
|
|
38
|
+
*/
|
|
39
|
+
_unmergeFromSmartFilter(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Registers an input connection from the internal graph as an input of the aggregated graph.
|
|
42
|
+
* @param name - The name of the exposed input connection point
|
|
43
|
+
* @param internalConnectionPoints - The input connection points in the inner graph to wire up to the new subfilter input
|
|
44
|
+
* @param defaultValue - The default value to use for the input connection point
|
|
45
|
+
* @returns the connection point referencing the input block
|
|
46
|
+
*/
|
|
47
|
+
protected _registerSubfilterInput<U extends ConnectionPointType>(name: string, internalConnectionPoints: ConnectionPoint<U>[], defaultValue?: Nullable<RuntimeData<U>>): ConnectionPoint<U>;
|
|
48
|
+
/**
|
|
49
|
+
* Registers an output connection point from the internal graph as an output of the aggregated graph.
|
|
50
|
+
* @param name - The name of the exposed output connection point
|
|
51
|
+
* @param internalConnectionPoint - The output connection point in the inner graph to expose as an output on the aggregate block
|
|
52
|
+
* @returns the connection point referencing the output connection point
|
|
53
|
+
*/
|
|
54
|
+
protected _registerSubfilterOutput<U extends ConnectionPointType>(name: string, internalConnectionPoint: ConnectionPoint<U>): ConnectionPoint<U>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=aggregateBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregateBlock.d.ts","sourceRoot":"","sources":["../../src/blockFoundation/aggregateBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,8BAAsB;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;GAOG;AACH,8BAAsB,cAAe,SAAQ,SAAS;IAClD;;OAEG;IACH,OAAuB,SAAS,SAAoB;IAEpD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA4C;IAE/E;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA8C;IAEhF;;OAEG;IACa,iBAAiB,IAAI,KAAK;IAI1C;;;OAGG;IACI,qBAAqB,CAAC,qBAAqB,EAAE,cAAc,EAAE,GAAG,IAAI;IA6C3E;;;OAGG;IACI,uBAAuB,IAAI,IAAI;IAsBtC;;;;;;OAMG;IACH,SAAS,CAAC,uBAAuB,CAAC,CAAC,SAAS,mBAAmB,EAC3D,IAAI,EAAE,MAAM,EACZ,wBAAwB,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,EAC9C,YAAY,GAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAQ,GAC9C,eAAe,CAAC,CAAC,CAAC;IAYrB;;;;;OAKG;IACH,SAAS,CAAC,wBAAwB,CAAC,CAAC,SAAS,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,uBAAuB,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;CAMnJ"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { BaseBlock } from "./baseBlock.js";
|
|
2
|
+
/**
|
|
3
|
+
* The aggregate block class is the base class for all blocks that be created from other blocks.
|
|
4
|
+
*
|
|
5
|
+
* It is responsible for managing a hidden chain of smart filter blocks in order and expose them through
|
|
6
|
+
* its own connection points.
|
|
7
|
+
*
|
|
8
|
+
* The internal state is basically a filter itself.
|
|
9
|
+
*/
|
|
10
|
+
export class AggregateBlock extends BaseBlock {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* The list of relationships between the internal graph output and the outside ones.
|
|
15
|
+
*/
|
|
16
|
+
this._aggregatedOutputs = [];
|
|
17
|
+
/**
|
|
18
|
+
* The list of relationships between the internal graph inputs and the outside ones.
|
|
19
|
+
*/
|
|
20
|
+
this._aggregatedInputs = [];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Do not override prepareForRuntime for aggregate blocks. It is not supported.
|
|
24
|
+
*/
|
|
25
|
+
prepareForRuntime() {
|
|
26
|
+
throw new Error("Aggregate blocks should not be prepared for runtime.");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* Merges the internal graph into the SmartFilter
|
|
31
|
+
*/
|
|
32
|
+
_mergeIntoSmartFilter(mergedAggregateBlocks) {
|
|
33
|
+
// Rewire output connections
|
|
34
|
+
for (const [internalConnectionPoint, externalConnectionPoint] of this._aggregatedOutputs) {
|
|
35
|
+
const endpointsToConnectTo = externalConnectionPoint.endpoints.slice();
|
|
36
|
+
externalConnectionPoint.disconnectAllEndpoints();
|
|
37
|
+
for (const endpoint of endpointsToConnectTo) {
|
|
38
|
+
internalConnectionPoint.connectTo(endpoint);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// Rewire input connections
|
|
42
|
+
for (const [internalConnectionPoints, externalConnectionPoint] of this._aggregatedInputs) {
|
|
43
|
+
const connectedToExternalConnectionPoint = externalConnectionPoint.connectedTo;
|
|
44
|
+
if (connectedToExternalConnectionPoint) {
|
|
45
|
+
connectedToExternalConnectionPoint.disconnectFrom(externalConnectionPoint);
|
|
46
|
+
for (const internalConnectionPoint of internalConnectionPoints) {
|
|
47
|
+
connectedToExternalConnectionPoint.connectTo(internalConnectionPoint);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// If the external connection point is not connected to anything but has a default value,
|
|
52
|
+
// pass that default value along to the internal connection points it is associated with
|
|
53
|
+
const defaultValue = externalConnectionPoint.runtimeData;
|
|
54
|
+
if (defaultValue !== null) {
|
|
55
|
+
for (const internalConnectionPoint of internalConnectionPoints) {
|
|
56
|
+
internalConnectionPoint.runtimeData = defaultValue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// Tell any internal aggregate blocks to merge
|
|
62
|
+
// Must be done after the inputs and outputs were merged at our level, or the internal aggregate block may not be wired up to anything
|
|
63
|
+
for (const aggregateOutput of this._aggregatedOutputs) {
|
|
64
|
+
const internalConnectionPoint = aggregateOutput[0];
|
|
65
|
+
internalConnectionPoint.ownerBlock.visit({}, (block, _extraData) => {
|
|
66
|
+
if (block instanceof AggregateBlock) {
|
|
67
|
+
block._mergeIntoSmartFilter(mergedAggregateBlocks);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Add ourselves to the list of merged aggregate blocks
|
|
72
|
+
mergedAggregateBlocks.push(this);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* Undoes a previous mergeIntoSmartFilter call.
|
|
77
|
+
*/
|
|
78
|
+
_unmergeFromSmartFilter() {
|
|
79
|
+
for (const [internalConnectionPoint, externalConnectionPoint] of this._aggregatedOutputs) {
|
|
80
|
+
const endpointsToConnectTo = internalConnectionPoint.endpoints.slice();
|
|
81
|
+
internalConnectionPoint.disconnectAllEndpoints();
|
|
82
|
+
for (const endpoint of endpointsToConnectTo) {
|
|
83
|
+
externalConnectionPoint.connectTo(endpoint);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
for (const [internalConnectionPoints, externalConnectionPoint] of this._aggregatedInputs) {
|
|
87
|
+
if (internalConnectionPoints[0]) {
|
|
88
|
+
const connectedToInternalConnectionPoint = internalConnectionPoints[0].connectedTo;
|
|
89
|
+
if (connectedToInternalConnectionPoint) {
|
|
90
|
+
for (const internalConnectionPoint of internalConnectionPoints) {
|
|
91
|
+
connectedToInternalConnectionPoint.disconnectFrom(internalConnectionPoint);
|
|
92
|
+
}
|
|
93
|
+
connectedToInternalConnectionPoint.connectTo(externalConnectionPoint);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Registers an input connection from the internal graph as an input of the aggregated graph.
|
|
100
|
+
* @param name - The name of the exposed input connection point
|
|
101
|
+
* @param internalConnectionPoints - The input connection points in the inner graph to wire up to the new subfilter input
|
|
102
|
+
* @param defaultValue - The default value to use for the input connection point
|
|
103
|
+
* @returns the connection point referencing the input block
|
|
104
|
+
*/
|
|
105
|
+
_registerSubfilterInput(name, internalConnectionPoints, defaultValue = null) {
|
|
106
|
+
const type = internalConnectionPoints[0]?.type;
|
|
107
|
+
if (type === undefined) {
|
|
108
|
+
throw new Error("Cannot register an input connection point with no internal connection points");
|
|
109
|
+
}
|
|
110
|
+
const externalInputConnectionPoint = this._registerInput(name, type, defaultValue);
|
|
111
|
+
this._aggregatedInputs.push([internalConnectionPoints, externalInputConnectionPoint]);
|
|
112
|
+
return externalInputConnectionPoint;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Registers an output connection point from the internal graph as an output of the aggregated graph.
|
|
116
|
+
* @param name - The name of the exposed output connection point
|
|
117
|
+
* @param internalConnectionPoint - The output connection point in the inner graph to expose as an output on the aggregate block
|
|
118
|
+
* @returns the connection point referencing the output connection point
|
|
119
|
+
*/
|
|
120
|
+
_registerSubfilterOutput(name, internalConnectionPoint) {
|
|
121
|
+
const externalOutputConnectionPoint = this._registerOutput(name, internalConnectionPoint.type);
|
|
122
|
+
this._aggregatedOutputs.push([internalConnectionPoint, externalOutputConnectionPoint]);
|
|
123
|
+
return externalOutputConnectionPoint;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The class name of the block.
|
|
128
|
+
*/
|
|
129
|
+
AggregateBlock.ClassName = "AggregateBlock";
|
|
130
|
+
//# sourceMappingURL=aggregateBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregateBlock.js","sourceRoot":"","sources":["../../src/blockFoundation/aggregateBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;GAOG;AAC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AuB,CAAC,CAAC;oBAC/E,CAAC;oBACD,kCAAkC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;gBAC1E,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACO,uBAAuB,CAC7B,IAAY,EACZ,wBAA8C,EAC9C,eAAyC,IAAI;QAE7C,MAAM,IAAI,GAAG,wBAAwB,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;QAC/C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;QACpG,CAAC;QACD,MAAM,4BAA4B,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;QAEnF,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,wBAAwB,EAAE,4BAA4B,CAAC,CAAC,CAAC;QAEtF,OAAO,4BAA4B,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACO,wBAAwB,CAAgC,IAAY,EAAE,uBAA2C;QACvH,MAAM,6BAA6B,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAE/F,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,uBAAuB,EAAE,6BAA6B,CAAC,CAAC,CAAC;QACvF,OAAO,6BAA6B,CAAC;IACzC,CAAC;;AAnID;;GAEG;AACoB,wBAAS,GAAG,gBAAgB,AAAnB,CAAoB"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type { Nullable } from "@onerjs/core/types.js";
|
|
2
|
+
import { ConnectionPointType } from "../connection/connectionPointType.js";
|
|
3
|
+
import type { InitializationData, SmartFilter } from "../smartFilter.js";
|
|
4
|
+
import type { ICommandOwner } from "../command/command.js";
|
|
5
|
+
import { ConnectionPoint, type RuntimeData } from "../connection/connectionPoint.js";
|
|
6
|
+
import { ConnectionPointWithDefault } from "../connection/connectionPointWithDefault.js";
|
|
7
|
+
/**
|
|
8
|
+
* Defines a callback function that is triggered when visiting a block,
|
|
9
|
+
* It also carries over extra data preventing the need to use global variables or closures.
|
|
10
|
+
*/
|
|
11
|
+
export type BlockVisitor<T extends object> = (block: BaseBlock, extraData: T) => void;
|
|
12
|
+
/**
|
|
13
|
+
* This class represents the base class for all smart filter blocks.
|
|
14
|
+
*
|
|
15
|
+
* It defines the basic structure of a smart filter block and provides the base implementation for
|
|
16
|
+
* managing the connection points.
|
|
17
|
+
*
|
|
18
|
+
* It enforces common behavior for all smart filter blocks.
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class BaseBlock implements ICommandOwner {
|
|
21
|
+
readonly disableOptimization: boolean;
|
|
22
|
+
protected static _AlreadyVisitedBlocks: Set<BaseBlock>;
|
|
23
|
+
/**
|
|
24
|
+
* The class name of the block.
|
|
25
|
+
*/
|
|
26
|
+
static ClassName: string;
|
|
27
|
+
/**
|
|
28
|
+
* The namespace of the block, which is used to reduce name collisions between blocks and also to group blocks in the editor UI.
|
|
29
|
+
* By convention, sub namespaces are separated by a period (e.g. "Babylon.Demo.Effects").
|
|
30
|
+
*/
|
|
31
|
+
static Namespace: Nullable<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The smart filter the block belongs to.
|
|
34
|
+
*/
|
|
35
|
+
readonly smartFilter: SmartFilter;
|
|
36
|
+
/**
|
|
37
|
+
* Global unique id of the block (This is unique for the current session).
|
|
38
|
+
*/
|
|
39
|
+
uniqueId: number;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the block. This is used to identify the block in the smart filter or in debug.
|
|
42
|
+
*/
|
|
43
|
+
readonly name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the block - used when serializing / deserializing the block, and in the editor.
|
|
46
|
+
* For programmatically created blocks, this should be the class name of the block.
|
|
47
|
+
* For custom blocks, this is specified in the block definition.
|
|
48
|
+
*/
|
|
49
|
+
get blockType(): string;
|
|
50
|
+
/**
|
|
51
|
+
* The namespace of the block, which is used to reduce name collisions between blocks and also to group blocks in the editor UI.
|
|
52
|
+
* By convention, sub namespaces are separated by a period (e.g. "Babylon.Demo.Effects").
|
|
53
|
+
*/
|
|
54
|
+
get namespace(): Nullable<string>;
|
|
55
|
+
/**
|
|
56
|
+
* User provided comments about the block. It can be used to document the block.
|
|
57
|
+
*/
|
|
58
|
+
comments: Nullable<string>;
|
|
59
|
+
private readonly _inputs;
|
|
60
|
+
private readonly _outputs;
|
|
61
|
+
/**
|
|
62
|
+
* Instantiates a new block.
|
|
63
|
+
* @param smartFilter - Defines the smart filter the block belongs to
|
|
64
|
+
* @param name - Defines the name of the block
|
|
65
|
+
* @param disableOptimization - Defines if the block is optimizable or not
|
|
66
|
+
*/
|
|
67
|
+
constructor(smartFilter: SmartFilter, name: string, disableOptimization?: boolean);
|
|
68
|
+
/**
|
|
69
|
+
* Returns the inputs connection points of the current block.
|
|
70
|
+
*/
|
|
71
|
+
get inputs(): ReadonlyArray<ConnectionPoint>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the outputs connection points of the current block.
|
|
74
|
+
*/
|
|
75
|
+
get outputs(): ReadonlyArray<ConnectionPoint>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns if the block is an input block.
|
|
78
|
+
*/
|
|
79
|
+
get isInput(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Returns if the block is an output block.
|
|
82
|
+
*/
|
|
83
|
+
get isOutput(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @returns the class name of the block
|
|
86
|
+
*/
|
|
87
|
+
getClassName(): string;
|
|
88
|
+
/**
|
|
89
|
+
* Checks if the block is an "ancestor" of another giving block.
|
|
90
|
+
* @param block - Defines the block to check against
|
|
91
|
+
* @returns True if the block is an ancestor of the given block, otherwise false
|
|
92
|
+
*/
|
|
93
|
+
isAnAncestorOf(block: BaseBlock): boolean;
|
|
94
|
+
protected _visitInputs<T extends object>(extraData: T, callback: BlockVisitor<T>, alreadyVisited: Set<BaseBlock>): void;
|
|
95
|
+
/**
|
|
96
|
+
* Visits the block and its inputs recursively.
|
|
97
|
+
* When starting from the smart filter output block, this will visit all the blocks in the smart filter.
|
|
98
|
+
* Note that it's a depth first visit: the callback is called on the block AFTER visiting its inputs.
|
|
99
|
+
* @param extraData - The extra data to pass to the callback
|
|
100
|
+
* @param callback - The callback to call on each block
|
|
101
|
+
* @param alreadyVisitedBlocks - Defines the set of blocks already visited (if not provided, a new set will be created)
|
|
102
|
+
*/
|
|
103
|
+
visit<T extends object>(extraData: T, callback: BlockVisitor<T>, alreadyVisitedBlocks?: Set<BaseBlock>): void;
|
|
104
|
+
/**
|
|
105
|
+
* Finds the input connection point with the given name.
|
|
106
|
+
* @param name - Name of the input to find
|
|
107
|
+
* @returns The connection point with the given name or null if not found
|
|
108
|
+
*/
|
|
109
|
+
findInput<U extends ConnectionPointType>(name: string): Nullable<ConnectionPoint<U>>;
|
|
110
|
+
/**
|
|
111
|
+
* Disconnects the block from the graph.
|
|
112
|
+
* @param _disconnectedConnections - Stores the connections that have been broken in the process. You can reconnect them later if needed.
|
|
113
|
+
*/
|
|
114
|
+
disconnectFromGraph(_disconnectedConnections?: [ConnectionPoint, ConnectionPoint][]): void;
|
|
115
|
+
/**
|
|
116
|
+
* Prepares the block for runtime.
|
|
117
|
+
* This is called by the smart filter just before creating the smart filter runtime, and by the optimizer.
|
|
118
|
+
*/
|
|
119
|
+
prepareForRuntime(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Propagates the runtime data - telling all outputs to propagate their runtime data forward through the graph
|
|
122
|
+
*/
|
|
123
|
+
propagateRuntimeData(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Generates the commands needed to execute the block at runtime and gathers promises for initialization work
|
|
126
|
+
* @param initializationData - The initialization data to use
|
|
127
|
+
* @param _finalOutput - Defines if the block is the final output of the smart filter
|
|
128
|
+
*/
|
|
129
|
+
generateCommandsAndGatherInitPromises(initializationData: InitializationData, _finalOutput: boolean): void;
|
|
130
|
+
/**
|
|
131
|
+
* Disconnects all the inputs and outputs from the Block.
|
|
132
|
+
*/
|
|
133
|
+
disconnect(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Registers a new input connection point in the block which must have a connection before the graph can be used.
|
|
136
|
+
* @param name - Defines the name of the input connection point
|
|
137
|
+
* @param type - Defines the type of the input connection point
|
|
138
|
+
* @param defaultValue - Defines the optional default value of the input connection point to use if not connection is made
|
|
139
|
+
* @returns The new ConnectionPoint
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
_registerInput<U extends ConnectionPointType>(name: string, type: U, defaultValue?: Nullable<RuntimeData<U>>): ConnectionPoint<U>;
|
|
143
|
+
/**
|
|
144
|
+
* Registers a new input connection point in the block which doesn't require a connection because it has a default value.
|
|
145
|
+
* @param name - Defines the name of the input connection point
|
|
146
|
+
* @param type - Defines the type of the input connection point
|
|
147
|
+
* @param defaultValue - Defines the default value to use if nothing is connected to this connection point
|
|
148
|
+
* @returns The new ConnectionPointWithDefault
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
_registerOptionalInput<U extends ConnectionPointType>(name: string, type: U, defaultValue: RuntimeData<U>): ConnectionPointWithDefault<U>;
|
|
152
|
+
/**
|
|
153
|
+
* Registers a new output connection point in the block.
|
|
154
|
+
* @param name - Defines the name of the output connection point
|
|
155
|
+
* @param type - Defines the type of the output connection point
|
|
156
|
+
* @returns The new output connection point
|
|
157
|
+
* @internal
|
|
158
|
+
*/
|
|
159
|
+
_registerOutput<U extends ConnectionPointType>(name: string, type: U): ConnectionPoint<U>;
|
|
160
|
+
/**
|
|
161
|
+
* Registers a new output connection point in the block that always has runtimeData because it has a default value and doesn't allow it to be overwritten with null.
|
|
162
|
+
* @param name - Defines the name of the output connection point
|
|
163
|
+
* @param type - Defines the type of the output connection point
|
|
164
|
+
* @param initialValue - Defines the initial value of the output connection point
|
|
165
|
+
* @returns The new output connection point with a default value
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
_registerOutputWithDefault<U extends ConnectionPointType>(name: string, type: U, initialValue: RuntimeData<U>): ConnectionPointWithDefault<U>;
|
|
169
|
+
/**
|
|
170
|
+
* Gets the required RuntimeData for the given input, throwing with a clear message if it is null
|
|
171
|
+
* @param input - The input to get the runtime data for
|
|
172
|
+
* @returns The runtimeData or throws if it was undefined
|
|
173
|
+
*/
|
|
174
|
+
protected _confirmRuntimeDataSupplied<U extends ConnectionPointType = ConnectionPointType>(input: ConnectionPoint<U>): RuntimeData<U>;
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=baseBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseBlock.d.ts","sourceRoot":"","sources":["../../src/blockFoundation/baseBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,8BAAsB;AAC9C,OAAO,EAAE,mBAAmB,EAA6B,MAAM,sCAAsC,CAAC;AACtG,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAIzF;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC;AAEtF;;;;;;;GAOG;AACH,8BAAsB,SAAU,YAAW,aAAa;aAgEhC,mBAAmB;IA/DvC,SAAS,CAAC,MAAM,CAAC,qBAAqB,iBAAwB;IAE9D;;OAEG;IACH,OAAc,SAAS,SAAe;IAEtC;;;OAGG;IACH,OAAc,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAQ;IAEjD;;OAEG;IACH,SAAgB,WAAW,E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