@onerjs/smart-filters-blocks 8.53.4 → 8.53.6

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.
@@ -1,4 +1,4 @@
1
- import { __decorate } from "@onerjs/core/tslib.es6.js";
1
+ import { __esDecorate, __runInitializers } from "@onerjs/core/tslib.es6.js";
2
2
  import { AggregateBlock, editableInPropertyPage, PropertyTypeForEdition, SmartFilter } from "@onerjs/smart-filters";
3
3
  import { DirectionalBlurBlock } from "./directionalBlurBlock.js";
4
4
  import { blurBlockType } from "../../../blockTypes.js";
@@ -10,84 +10,99 @@ const DefaultBlurSize = 2;
10
10
  *
11
11
  * It performs the blur in 4 consecutive passes, 2 verticals and 2 horizontals downsizing the texture as we go.
12
12
  */
13
- export class BlurBlock extends AggregateBlock {
14
- /**
15
- * Gets how much smaller we should make the texture between the 2 consecutive bi lateral passes.
16
- */
17
- get blurTextureRatioPerPass() {
18
- return this._blurTextureRatioPerPass;
19
- }
20
- /**
21
- * Sets how much smaller we should make the texture between the 2 consecutive bi lateral passes.
22
- */
23
- set blurTextureRatioPerPass(value) {
24
- this._blurTextureRatioPerPass = value;
25
- this._intermediateBlurV.blurTextureRatio = value;
26
- this._intermediateBlurH.blurTextureRatio = value;
27
- this._finalBlurV.blurTextureRatio = value * value;
28
- this._finalBlurH.blurTextureRatio = value * value;
29
- }
30
- /**
31
- * Gets how far the kernel might fetch the data from.
32
- */
33
- get blurSize() {
34
- return this._blurSize;
35
- }
36
- /**
37
- * Sets how far the kernel might fetch the data from.
38
- */
39
- set blurSize(value) {
40
- this._blurSize = value;
41
- this._intermediateBlurV.blurHorizontalWidth = value;
42
- this._intermediateBlurH.blurVerticalWidth = value;
43
- this._finalBlurV.blurHorizontalWidth = value;
44
- this._finalBlurH.blurVerticalWidth = value;
45
- }
46
- /**
47
- * Instantiates a new Block.
48
- * @param smartFilter - The smart filter this block belongs to
49
- * @param name - The friendly name of the block
50
- */
51
- constructor(smartFilter, name) {
52
- super(smartFilter, name);
53
- this._blurTextureRatioPerPass = DefaultBlurTextureRatioPerPass;
54
- this._blurSize = DefaultBlurSize;
55
- const internalFilter = new SmartFilter(name + "_BlurBlock_Aggregated");
56
- this._intermediateBlurV = new DirectionalBlurBlock(internalFilter, name + "IV");
57
- this._intermediateBlurH = new DirectionalBlurBlock(internalFilter, name + "IH");
58
- this._finalBlurV = new DirectionalBlurBlock(internalFilter, name + "V");
59
- this._finalBlurH = new DirectionalBlurBlock(internalFilter, name + "H");
60
- this._intermediateBlurV.output.connectTo(this._intermediateBlurH.input);
61
- this._intermediateBlurH.output.connectTo(this._finalBlurV.input);
62
- this._finalBlurV.output.connectTo(this._finalBlurH.input);
63
- this.input = this._registerSubfilterInput("input", [this._intermediateBlurV.input]);
64
- this.output = this._registerSubfilterOutput("output", this._finalBlurH.output);
65
- this.blurSize = DefaultBlurSize;
66
- this.blurTextureRatioPerPass = DefaultBlurTextureRatioPerPass;
67
- this._intermediateBlurV.blurVerticalWidth = 0;
68
- this._intermediateBlurH.blurHorizontalWidth = 0;
69
- this._finalBlurV.blurVerticalWidth = 0;
70
- this._finalBlurH.blurHorizontalWidth = 0;
71
- }
72
- }
73
- /**
74
- * The class name of the block.
75
- */
76
- BlurBlock.ClassName = blurBlockType;
77
- /**
78
- * The namespace of the block.
79
- */
80
- BlurBlock.Namespace = babylonDemoEffectsNamespace;
81
- __decorate([
82
- editableInPropertyPage("Pass Texture Ratio", PropertyTypeForEdition.Float, "PROPERTIES", {
83
- min: 0,
84
- max: 1,
85
- notifiers: { rebuild: true },
86
- })
87
- ], BlurBlock.prototype, "blurTextureRatioPerPass", null);
88
- __decorate([
89
- editableInPropertyPage("Size", PropertyTypeForEdition.Float, "PROPERTIES", {
90
- notifiers: { rebuild: true },
91
- })
92
- ], BlurBlock.prototype, "blurSize", null);
13
+ let BlurBlock = (() => {
14
+ var _a;
15
+ let _classSuper = AggregateBlock;
16
+ let _instanceExtraInitializers = [];
17
+ let _set_blurTextureRatioPerPass_decorators;
18
+ let _set_blurSize_decorators;
19
+ return _a = class BlurBlock extends _classSuper {
20
+ /**
21
+ * Gets how much smaller we should make the texture between the 2 consecutive bi lateral passes.
22
+ */
23
+ get blurTextureRatioPerPass() {
24
+ return this._blurTextureRatioPerPass;
25
+ }
26
+ /**
27
+ * Sets how much smaller we should make the texture between the 2 consecutive bi lateral passes.
28
+ */
29
+ set blurTextureRatioPerPass(value) {
30
+ this._blurTextureRatioPerPass = value;
31
+ this._intermediateBlurV.blurTextureRatio = value;
32
+ this._intermediateBlurH.blurTextureRatio = value;
33
+ this._finalBlurV.blurTextureRatio = value * value;
34
+ this._finalBlurH.blurTextureRatio = value * value;
35
+ }
36
+ /**
37
+ * Gets how far the kernel might fetch the data from.
38
+ */
39
+ get blurSize() {
40
+ return this._blurSize;
41
+ }
42
+ /**
43
+ * Sets how far the kernel might fetch the data from.
44
+ */
45
+ set blurSize(value) {
46
+ this._blurSize = value;
47
+ this._intermediateBlurV.blurHorizontalWidth = value;
48
+ this._intermediateBlurH.blurVerticalWidth = value;
49
+ this._finalBlurV.blurHorizontalWidth = value;
50
+ this._finalBlurH.blurVerticalWidth = value;
51
+ }
52
+ /**
53
+ * Instantiates a new Block.
54
+ * @param smartFilter - The smart filter this block belongs to
55
+ * @param name - The friendly name of the block
56
+ */
57
+ constructor(smartFilter, name) {
58
+ super(smartFilter, name);
59
+ /**
60
+ * The input texture connection point.
61
+ */
62
+ this.input = __runInitializers(this, _instanceExtraInitializers);
63
+ this._blurTextureRatioPerPass = DefaultBlurTextureRatioPerPass;
64
+ this._blurSize = DefaultBlurSize;
65
+ const internalFilter = new SmartFilter(name + "_BlurBlock_Aggregated");
66
+ this._intermediateBlurV = new DirectionalBlurBlock(internalFilter, name + "IV");
67
+ this._intermediateBlurH = new DirectionalBlurBlock(internalFilter, name + "IH");
68
+ this._finalBlurV = new DirectionalBlurBlock(internalFilter, name + "V");
69
+ this._finalBlurH = new DirectionalBlurBlock(internalFilter, name + "H");
70
+ this._intermediateBlurV.output.connectTo(this._intermediateBlurH.input);
71
+ this._intermediateBlurH.output.connectTo(this._finalBlurV.input);
72
+ this._finalBlurV.output.connectTo(this._finalBlurH.input);
73
+ this.input = this._registerSubfilterInput("input", [this._intermediateBlurV.input]);
74
+ this.output = this._registerSubfilterOutput("output", this._finalBlurH.output);
75
+ this.blurSize = DefaultBlurSize;
76
+ this.blurTextureRatioPerPass = DefaultBlurTextureRatioPerPass;
77
+ this._intermediateBlurV.blurVerticalWidth = 0;
78
+ this._intermediateBlurH.blurHorizontalWidth = 0;
79
+ this._finalBlurV.blurVerticalWidth = 0;
80
+ this._finalBlurH.blurHorizontalWidth = 0;
81
+ }
82
+ },
83
+ (() => {
84
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
85
+ _set_blurTextureRatioPerPass_decorators = [editableInPropertyPage("Pass Texture Ratio", PropertyTypeForEdition.Float, "PROPERTIES", {
86
+ min: 0,
87
+ max: 1,
88
+ notifiers: { rebuild: true },
89
+ })];
90
+ _set_blurSize_decorators = [editableInPropertyPage("Size", PropertyTypeForEdition.Float, "PROPERTIES", {
91
+ notifiers: { rebuild: true },
92
+ })];
93
+ __esDecorate(_a, null, _set_blurTextureRatioPerPass_decorators, { kind: "setter", name: "blurTextureRatioPerPass", static: false, private: false, access: { has: obj => "blurTextureRatioPerPass" in obj, set: (obj, value) => { obj.blurTextureRatioPerPass = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
94
+ __esDecorate(_a, null, _set_blurSize_decorators, { kind: "setter", name: "blurSize", static: false, private: false, access: { has: obj => "blurSize" in obj, set: (obj, value) => { obj.blurSize = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
95
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
96
+ })(),
97
+ /**
98
+ * The class name of the block.
99
+ */
100
+ _a.ClassName = blurBlockType,
101
+ /**
102
+ * The namespace of the block.
103
+ */
104
+ _a.Namespace = babylonDemoEffectsNamespace,
105
+ _a;
106
+ })();
107
+ export { BlurBlock };
93
108
  //# sourceMappingURL=blurBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blurBlock.js","sourceRoot":"","sources":["../../../../../src/blocks/babylon/demo/effects/blurBlock.ts"],"names":[],"mappings":";AAAA,OAAO,EAA4B,cAAc,EAAwB,sBAAsB,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5J,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAC3C,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B;;;;GAIG;AACH,MAAM,OAAO,SAAU,SAAQ,cAAc;IA6BzC;;OAEG;IACH,IAAW,uBAAuB;QAC9B,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACzC,CAAC;IAED;;OAEG;IAMH,IAAW,uBAAuB,CAAC,KAAa;QAC5C,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;QACtC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,GAAG,KAAK,CAAC;QACjD,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,GAAG,KAAK,CAAC;QACjD,IAAI,CAAC,WAAW,CAAC,gBAAgB,GAAG,KAAK,GAAG,KAAK,CAAC;QAClD,IAAI,CAAC,WAAW,CAAC,gBAAgB,GAAG,KAAK,GAAG,KAAK,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;OAEG;IAIH,IAAW,QAAQ,CAAC,KAAa;QAC7B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,kBA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,mBAAmB,GAAG,CAAC,CAAC;gBAChD,IAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,CAAC,CAAC;gBACvC,IAAI,CAAC,WAAW,CAAC,mBAAmB,GAAG,CAAC,CAAC;YAC7C,CAAC;;;;uDA7DA,sBAAsB,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE;oBACtF,GAAG,EAAE,CAAC;oBACN,GAAG,EAAE,CAAC;oBACN,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;iBAC/B,CAAC;wCAmBD,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE;oBACxE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;iBAC/B,CAAC;YApBF,qOAAW,uBAAuB,wEAMjC;YAeD,wLAAW,QAAQ,wEAMlB;;;QAtED;;WAEG;QACoB,YAAS,GAAG,aAAc;QAEjD;;WAEG;QACoB,YAAS,GAAG,2BAA4B;;;SATtD,SAAS"}
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/naming-convention */
2
- import { __decorate } from "@onerjs/core/tslib.es6.js";
2
+ import { __esDecorate, __runInitializers } from "@onerjs/core/tslib.es6.js";
3
3
  import { DisableableShaderBinding, ConnectionPointType, DisableableShaderBlock, createStrongRef, PropertyTypeForEdition, editableInPropertyPage, CloneShaderProgram, } from "@onerjs/smart-filters";
4
4
  import { compositionBlockType } from "../../../blockTypes.js";
5
5
  import { babylonDemoEffectsNamespace } from "../../../blockNamespaces.js";
@@ -75,97 +75,110 @@ export class CompositionShaderBinding extends DisableableShaderBinding {
75
75
  * - ALPHA_SUBTRACT: alpha blending is DEST - SRC * DEST
76
76
  * - ALPHA_MULTIPLY: alpha blending is SRC * DEST
77
77
  */
78
- export class CompositionBlock extends DisableableShaderBlock {
79
- /**
80
- * Gets the shader program to use to render the block.
81
- * This adds the per-instance const values to the shader program.
82
- * @returns The shader program to use to render the block
83
- */
84
- getShaderProgram() {
85
- const staticShaderProgram = super.getShaderProgram();
86
- // Since we are making changes only for this instance of the block, and
87
- // the disableableShaderProgram is static, we make a copy and modify that.
88
- const shaderProgramForThisInstance = CloneShaderProgram(staticShaderProgram);
89
- shaderProgramForThisInstance.fragment.constPerInstance = `const float _alphaMode_ = ${this.alphaMode.toFixed(1)};`;
90
- return shaderProgramForThisInstance;
91
- }
92
- /**
93
- * Instantiates a new Block.
94
- * @param smartFilter - The smart filter this block belongs to
95
- * @param name - The friendly name of the block
96
- */
97
- constructor(smartFilter, name) {
98
- super(smartFilter, name, true);
99
- /**
100
- * The background texture to composite on to.
101
- */
102
- this.background = this._registerInput(uniforms.background, ConnectionPointType.Texture);
103
- /**
104
- * The foreground texture to composite in.
105
- */
106
- this.foreground = this._registerOptionalInput(uniforms.foreground, ConnectionPointType.Texture, createStrongRef(null));
107
- /**
108
- * Defines where the top of the texture to composite in should be displayed. (between 0 and 1).
109
- */
110
- this.foregroundTop = this._registerOptionalInput("foregroundTop", ConnectionPointType.Float, createStrongRef(0.0));
111
- /**
112
- * Defines where the left of the texture to composite in should be displayed. (between 0 and 1).
113
- */
114
- this.foregroundLeft = this._registerOptionalInput("foregroundLeft", ConnectionPointType.Float, createStrongRef(0.0));
78
+ let CompositionBlock = (() => {
79
+ var _a;
80
+ let _classSuper = DisableableShaderBlock;
81
+ let _alphaMode_decorators;
82
+ let _alphaMode_initializers = [];
83
+ let _alphaMode_extraInitializers = [];
84
+ return _a = class CompositionBlock extends _classSuper {
85
+ /**
86
+ * Gets the shader program to use to render the block.
87
+ * This adds the per-instance const values to the shader program.
88
+ * @returns The shader program to use to render the block
89
+ */
90
+ getShaderProgram() {
91
+ const staticShaderProgram = super.getShaderProgram();
92
+ // Since we are making changes only for this instance of the block, and
93
+ // the disableableShaderProgram is static, we make a copy and modify that.
94
+ const shaderProgramForThisInstance = CloneShaderProgram(staticShaderProgram);
95
+ shaderProgramForThisInstance.fragment.constPerInstance = `const float _alphaMode_ = ${this.alphaMode.toFixed(1)};`;
96
+ return shaderProgramForThisInstance;
97
+ }
98
+ /**
99
+ * Instantiates a new Block.
100
+ * @param smartFilter - The smart filter this block belongs to
101
+ * @param name - The friendly name of the block
102
+ */
103
+ constructor(smartFilter, name) {
104
+ super(smartFilter, name, true);
105
+ /**
106
+ * The background texture to composite on to.
107
+ */
108
+ this.background = this._registerInput(uniforms.background, ConnectionPointType.Texture);
109
+ /**
110
+ * The foreground texture to composite in.
111
+ */
112
+ this.foreground = this._registerOptionalInput(uniforms.foreground, ConnectionPointType.Texture, createStrongRef(null));
113
+ /**
114
+ * Defines where the top of the texture to composite in should be displayed. (between 0 and 1).
115
+ */
116
+ this.foregroundTop = this._registerOptionalInput("foregroundTop", ConnectionPointType.Float, createStrongRef(0.0));
117
+ /**
118
+ * Defines where the left of the texture to composite in should be displayed. (between 0 and 1).
119
+ */
120
+ this.foregroundLeft = this._registerOptionalInput("foregroundLeft", ConnectionPointType.Float, createStrongRef(0.0));
121
+ /**
122
+ * Defines the width of the texture in the composition.
123
+ */
124
+ this.foregroundWidth = this._registerOptionalInput("foregroundWidth", ConnectionPointType.Float, createStrongRef(1.0));
125
+ /**
126
+ * Defines the height of the texture in the composition.
127
+ */
128
+ this.foregroundHeight = this._registerOptionalInput("foregroundHeight", ConnectionPointType.Float, createStrongRef(1.0));
129
+ /**
130
+ * Defines a multiplier applied to the foreground's alpha channel.
131
+ */
132
+ this.foregroundAlphaScale = this._registerOptionalInput(uniforms.foregroundAlphaScale, ConnectionPointType.Float, createStrongRef(1.0));
133
+ /**
134
+ * Defines blend mode of the composition.
135
+ */
136
+ this.alphaMode = __runInitializers(this, _alphaMode_initializers, ALPHA_COMBINE);
137
+ __runInitializers(this, _alphaMode_extraInitializers);
138
+ }
139
+ /**
140
+ * Get the class instance that binds all the required data to the shader (effect) when rendering.
141
+ * @returns The class instance that binds the data to the effect
142
+ */
143
+ getShaderBinding() {
144
+ const background = this._confirmRuntimeDataSupplied(this.background);
145
+ const foreground = this._confirmRuntimeDataSupplied(this.foreground);
146
+ const foregroundWidth = this.foregroundWidth.runtimeData;
147
+ const foregroundLeft = this.foregroundLeft.runtimeData;
148
+ const foregroundHeight = this.foregroundHeight.runtimeData;
149
+ const foregroundTop = this.foregroundTop.runtimeData;
150
+ const foregroundAlphaScale = this.foregroundAlphaScale.runtimeData;
151
+ return new CompositionShaderBinding(this, background, foreground, foregroundTop, foregroundLeft, foregroundWidth, foregroundHeight, foregroundAlphaScale);
152
+ }
153
+ },
154
+ (() => {
155
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
156
+ _alphaMode_decorators = [editableInPropertyPage("Alpha Mode", PropertyTypeForEdition.List, "PROPERTIES", {
157
+ notifiers: { rebuild: true },
158
+ options: [
159
+ { label: "Disable", value: ALPHA_DISABLE },
160
+ { label: "Add", value: ALPHA_ADD },
161
+ { label: "Combine", value: ALPHA_COMBINE },
162
+ { label: "Subtract", value: ALPHA_SUBTRACT },
163
+ { label: "Multiply", value: ALPHA_MULTIPLY },
164
+ ],
165
+ })];
166
+ __esDecorate(null, null, _alphaMode_decorators, { kind: "field", name: "alphaMode", static: false, private: false, access: { has: obj => "alphaMode" in obj, get: obj => obj.alphaMode, set: (obj, value) => { obj.alphaMode = value; } }, metadata: _metadata }, _alphaMode_initializers, _alphaMode_extraInitializers);
167
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
168
+ })(),
115
169
  /**
116
- * Defines the width of the texture in the composition.
170
+ * The class name of the block.
117
171
  */
118
- this.foregroundWidth = this._registerOptionalInput("foregroundWidth", ConnectionPointType.Float, createStrongRef(1.0));
172
+ _a.ClassName = compositionBlockType,
119
173
  /**
120
- * Defines the height of the texture in the composition.
174
+ * The namespace of the block.
121
175
  */
122
- this.foregroundHeight = this._registerOptionalInput("foregroundHeight", ConnectionPointType.Float, createStrongRef(1.0));
176
+ _a.Namespace = babylonDemoEffectsNamespace,
123
177
  /**
124
- * Defines a multiplier applied to the foreground's alpha channel.
178
+ * The shader program (vertex and fragment code) to use to render the block
125
179
  */
126
- this.foregroundAlphaScale = this._registerOptionalInput(uniforms.foregroundAlphaScale, ConnectionPointType.Float, createStrongRef(1.0));
127
- /**
128
- * Defines blend mode of the composition.
129
- */
130
- this.alphaMode = ALPHA_COMBINE;
131
- }
132
- /**
133
- * Get the class instance that binds all the required data to the shader (effect) when rendering.
134
- * @returns The class instance that binds the data to the effect
135
- */
136
- getShaderBinding() {
137
- const background = this._confirmRuntimeDataSupplied(this.background);
138
- const foreground = this._confirmRuntimeDataSupplied(this.foreground);
139
- const foregroundWidth = this.foregroundWidth.runtimeData;
140
- const foregroundLeft = this.foregroundLeft.runtimeData;
141
- const foregroundHeight = this.foregroundHeight.runtimeData;
142
- const foregroundTop = this.foregroundTop.runtimeData;
143
- const foregroundAlphaScale = this.foregroundAlphaScale.runtimeData;
144
- return new CompositionShaderBinding(this, background, foreground, foregroundTop, foregroundLeft, foregroundWidth, foregroundHeight, foregroundAlphaScale);
145
- }
146
- }
147
- /**
148
- * The class name of the block.
149
- */
150
- CompositionBlock.ClassName = compositionBlockType;
151
- /**
152
- * The namespace of the block.
153
- */
154
- CompositionBlock.Namespace = babylonDemoEffectsNamespace;
155
- /**
156
- * The shader program (vertex and fragment code) to use to render the block
157
- */
158
- CompositionBlock.ShaderCode = shaderProgram;
159
- __decorate([
160
- editableInPropertyPage("Alpha Mode", PropertyTypeForEdition.List, "PROPERTIES", {
161
- notifiers: { rebuild: true },
162
- options: [
163
- { label: "Disable", value: ALPHA_DISABLE },
164
- { label: "Add", value: ALPHA_ADD },
165
- { label: "Combine", value: ALPHA_COMBINE },
166
- { label: "Subtract", value: ALPHA_SUBTRACT },
167
- { label: "Multiply", value: ALPHA_MULTIPLY },
168
- ],
169
- })
170
- ], CompositionBlock.prototype, "alphaMode", void 0);
180
+ _a.ShaderCode = shaderProgram,
181
+ _a;
182
+ })();
183
+ export { CompositionBlock };
171
184
  //# sourceMappingURL=compositionBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compositionBlock.js","sourceRoot":"","sources":["../../../../../src/blocks/babylon/demo/effects/compositionBlock.ts"],"names":[],"mappings":"AAAA,yDAAyD;;AAGzD,OAAO,EACH,wBAAwB,EAExB,mBAAmB,EAEnB,sBAAsB,EAEtB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEzE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAC/B,4DAA4D;AAC5D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC;AAC3B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAC/B,uDAAuD;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAChC,gDAAgD;AAChD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAEhC;;;;GAIG;AACH,MAAM,OAAO,wBAAyB,SAAQ,wBAAwB;IASlE;;;;;;;;;;OAUG;IACH,YACI,WAA8B,EAC9B,iBAA2D,EAC3D,iBAA2D,EAC3D,aAAqD,EACrD,cAAsD,EACtD,eAAuD,EACvD,gBAAwD,EACxD,oBAA4D;QAE5D,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CA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CAAC,WAAW,CAAC;gBACrD,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;gBAEnE,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;YAC9J,CAAC;;;;qCAxDA,sBAAsB,CAAC,YAAY,EAAE,sBAAsB,CAAC,IAAI,EAAE,YAAY,EAAE;oBAC7E,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;oBAC5B,OAAO,EAAE;wBACL,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;wBAC1C,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE;wBAClC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;wBAC1C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE;wBAC5C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE;qBAC/C;iBACJ,CAAC;YACF,6KAAO,SAAS,6BAAT,SAAS,6FAAyB;;;QA1DzC;;WAEG;QACoB,YAAS,GAAG,oBAAqB;QAExD;;WAEG;QACoB,YAAS,GAAG,2BAA4B;QAoD/D;;WAEG;QACoB,aAAU,GAAG,aAAc;;;SAhEzC,gBAAgB"}
@@ -1,4 +1,4 @@
1
- import { __decorate } from "@onerjs/core/tslib.es6.js";
1
+ import { __esDecorate, __runInitializers } from "@onerjs/core/tslib.es6.js";
2
2
  import { ConnectionPointType, editableInPropertyPage, PropertyTypeForEdition, ShaderBinding, ShaderBlock, } from "@onerjs/smart-filters";
3
3
  import { directionalBlurBlockType } from "../../../blockTypes.js";
4
4
  import { babylonDemoEffectsNamespace } from "../../../blockNamespaces.js";
@@ -84,79 +84,96 @@ export class DirectionalBlurShaderBinding extends ShaderBinding {
84
84
  *
85
85
  * It is aggregated as part of the @see BlurBlock.
86
86
  */
87
- export class DirectionalBlurBlock extends ShaderBlock {
88
- /**
89
- * Instantiates a new Block.
90
- * @param smartFilter - The smart filter this block belongs to
91
- * @param name - The friendly name of the block
92
- */
93
- constructor(smartFilter, name) {
94
- super(smartFilter, name, true);
87
+ let DirectionalBlurBlock = (() => {
88
+ var _a;
89
+ let _classSuper = ShaderBlock;
90
+ let _blurTextureRatio_decorators;
91
+ let _blurTextureRatio_initializers = [];
92
+ let _blurTextureRatio_extraInitializers = [];
93
+ let _blurHorizontalWidth_decorators;
94
+ let _blurHorizontalWidth_initializers = [];
95
+ let _blurHorizontalWidth_extraInitializers = [];
96
+ let _blurVerticalWidth_decorators;
97
+ let _blurVerticalWidth_initializers = [];
98
+ let _blurVerticalWidth_extraInitializers = [];
99
+ return _a = class DirectionalBlurBlock extends _classSuper {
100
+ /**
101
+ * Instantiates a new Block.
102
+ * @param smartFilter - The smart filter this block belongs to
103
+ * @param name - The friendly name of the block
104
+ */
105
+ constructor(smartFilter, name) {
106
+ super(smartFilter, name, true);
107
+ /**
108
+ * The input texture connection point.
109
+ */
110
+ this.input = this._registerInput("input", ConnectionPointType.Texture);
111
+ /**
112
+ * Defines how smaller we should make the target compared to the screen size.
113
+ */
114
+ this.blurTextureRatio = __runInitializers(this, _blurTextureRatio_initializers, 0.5);
115
+ /**
116
+ * Defines the horizontal strength of the blur.
117
+ */
118
+ this.blurHorizontalWidth = (__runInitializers(this, _blurTextureRatio_extraInitializers), __runInitializers(this, _blurHorizontalWidth_initializers, 0));
119
+ /**
120
+ * Defines the vertical strength of the blur.
121
+ */
122
+ this.blurVerticalWidth = (__runInitializers(this, _blurHorizontalWidth_extraInitializers), __runInitializers(this, _blurVerticalWidth_initializers, 1));
123
+ __runInitializers(this, _blurVerticalWidth_extraInitializers);
124
+ }
125
+ /**
126
+ * Prepares the block for runtime.
127
+ * This is called by the smart filter just before creating the smart filter runtime.
128
+ */
129
+ prepareForRuntime() {
130
+ super.prepareForRuntime();
131
+ this.outputTextureOptions.ratio = this.blurTextureRatio;
132
+ }
133
+ /**
134
+ * Get the class instance that binds all the required data to the shader (effect) when rendering.
135
+ * @returns The class instance that binds the data to the effect
136
+ */
137
+ getShaderBinding() {
138
+ const input = this._confirmRuntimeDataSupplied(this.input);
139
+ return new DirectionalBlurShaderBinding(input, this.blurHorizontalWidth, this.blurVerticalWidth);
140
+ }
141
+ },
142
+ (() => {
143
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
144
+ _blurTextureRatio_decorators = [editableInPropertyPage("Texture Ratio", PropertyTypeForEdition.Float, "PROPERTIES", {
145
+ min: 0,
146
+ max: 1,
147
+ notifiers: { rebuild: true },
148
+ })];
149
+ _blurHorizontalWidth_decorators = [editableInPropertyPage("Horizontal strength", PropertyTypeForEdition.Float, "PROPERTIES", {
150
+ min: 0,
151
+ max: 1,
152
+ notifiers: { rebuild: true },
153
+ })];
154
+ _blurVerticalWidth_decorators = [editableInPropertyPage("Vertical strength", PropertyTypeForEdition.Float, "PROPERTIES", {
155
+ min: 0,
156
+ max: 1,
157
+ notifiers: { rebuild: true },
158
+ })];
159
+ __esDecorate(null, null, _blurTextureRatio_decorators, { kind: "field", name: "blurTextureRatio", static: false, private: false, access: { has: obj => "blurTextureRatio" in obj, get: obj => obj.blurTextureRatio, set: (obj, value) => { obj.blurTextureRatio = value; } }, metadata: _metadata }, _blurTextureRatio_initializers, _blurTextureRatio_extraInitializers);
160
+ __esDecorate(null, null, _blurHorizontalWidth_decorators, { kind: "field", name: "blurHorizontalWidth", static: false, private: false, access: { has: obj => "blurHorizontalWidth" in obj, get: obj => obj.blurHorizontalWidth, set: (obj, value) => { obj.blurHorizontalWidth = value; } }, metadata: _metadata }, _blurHorizontalWidth_initializers, _blurHorizontalWidth_extraInitializers);
161
+ __esDecorate(null, null, _blurVerticalWidth_decorators, { kind: "field", name: "blurVerticalWidth", static: false, private: false, access: { has: obj => "blurVerticalWidth" in obj, get: obj => obj.blurVerticalWidth, set: (obj, value) => { obj.blurVerticalWidth = value; } }, metadata: _metadata }, _blurVerticalWidth_initializers, _blurVerticalWidth_extraInitializers);
162
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
163
+ })(),
95
164
  /**
96
- * The input texture connection point.
165
+ * The class name of the block.
97
166
  */
98
- this.input = this._registerInput("input", ConnectionPointType.Texture);
167
+ _a.ClassName = directionalBlurBlockType,
99
168
  /**
100
- * Defines how smaller we should make the target compared to the screen size.
169
+ * The namespace of the block.
101
170
  */
102
- this.blurTextureRatio = 0.5;
171
+ _a.Namespace = babylonDemoEffectsNamespace,
103
172
  /**
104
- * Defines the horizontal strength of the blur.
173
+ * The shader program (vertex and fragment code) to use to render the block
105
174
  */
106
- this.blurHorizontalWidth = 0;
107
- /**
108
- * Defines the vertical strength of the blur.
109
- */
110
- this.blurVerticalWidth = 1;
111
- }
112
- /**
113
- * Prepares the block for runtime.
114
- * This is called by the smart filter just before creating the smart filter runtime.
115
- */
116
- prepareForRuntime() {
117
- super.prepareForRuntime();
118
- this.outputTextureOptions.ratio = this.blurTextureRatio;
119
- }
120
- /**
121
- * Get the class instance that binds all the required data to the shader (effect) when rendering.
122
- * @returns The class instance that binds the data to the effect
123
- */
124
- getShaderBinding() {
125
- const input = this._confirmRuntimeDataSupplied(this.input);
126
- return new DirectionalBlurShaderBinding(input, this.blurHorizontalWidth, this.blurVerticalWidth);
127
- }
128
- }
129
- /**
130
- * The class name of the block.
131
- */
132
- DirectionalBlurBlock.ClassName = directionalBlurBlockType;
133
- /**
134
- * The namespace of the block.
135
- */
136
- DirectionalBlurBlock.Namespace = babylonDemoEffectsNamespace;
137
- /**
138
- * The shader program (vertex and fragment code) to use to render the block
139
- */
140
- DirectionalBlurBlock.ShaderCode = ShaderProgram;
141
- __decorate([
142
- editableInPropertyPage("Texture Ratio", PropertyTypeForEdition.Float, "PROPERTIES", {
143
- min: 0,
144
- max: 1,
145
- notifiers: { rebuild: true },
146
- })
147
- ], DirectionalBlurBlock.prototype, "blurTextureRatio", void 0);
148
- __decorate([
149
- editableInPropertyPage("Horizontal strength", PropertyTypeForEdition.Float, "PROPERTIES", {
150
- min: 0,
151
- max: 1,
152
- notifiers: { rebuild: true },
153
- })
154
- ], DirectionalBlurBlock.prototype, "blurHorizontalWidth", void 0);
155
- __decorate([
156
- editableInPropertyPage("Vertical strength", PropertyTypeForEdition.Float, "PROPERTIES", {
157
- min: 0,
158
- max: 1,
159
- notifiers: { rebuild: true },
160
- })
161
- ], DirectionalBlurBlock.prototype, "blurVerticalWidth", void 0);
175
+ _a.ShaderCode = ShaderProgram,
176
+ _a;
177
+ })();
178
+ export { DirectionalBlurBlock };
162
179
  //# sourceMappingURL=directionalBlurBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"directionalBlurBlock.js","sourceRoot":"","sources":["../../../../../src/blocks/babylon/demo/effects/directionalBlurBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAGH,mBAAmB,EAEnB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EACb,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,aAAa,GAAkB;IACjC,QAAQ,EAAE;QACN,KAAK,EAAE;;aAEF;QACL,OAAO,EAAE;;;aAGJ;QAEL,aAAa,EAAE;;aAEV;QAEL,gBAAgB,EAAE,mBAAmB;QAErC,gBAAgB,EAAE,SAAS;QAE3B,SAAS,EAAE;YACP;gBACI,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;aAoBT;aACA;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,G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AK,EAAE,YAAY,EAAE;QACrF,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,CAAC;QACN,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC/B,CAAC;+DAC2B"}
1
+ {"version":3,"file":"directionalBlurBlock.js","sourceRoot":"","sources":["../../../../../src/blocks/babylon/demo/effects/directionalBlurBlock.ts"],"names":[],"mappings":";AAEA,OAAO,EAGH,mBAAmB,EAEnB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EACb,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,aAAa,GAAkB;IACjC,QAAQ,EAAE;QACN,KAAK,EAAE;;aAEF;QACL,OAAO,EAAE;;;aAGJ;QAEL,aAAa,EAAE;;aAEV;QAEL,gBAAgB,EAAE,mBAAmB;QAErC,gBAAgB,EAAE,SAAS;QAE3B,SAAS,EAAE;YACP;gBACI,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;aAoBT;aACA;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,OAAO,4BAA6B,SAAQ,aAAa;IAK3D;;;;;OAKG;IACH,YAAY,YAAsD,EAAE,mBAA2B,EAAE,iBAAyB;QACtH,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,oBAAoB,GAAG,mBAAmB,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAChD,CAAC;IAED;;;OAGG;IACa,IAAI,CAAC,MAAc;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"description": "Babylon.js Smart Filter Block Library",
5
5
  "keywords": [
6
6
  "video",
@@ -48,6 +48,6 @@
48
48
  "@onerjs/core": "^7.47.3 || ^8.0.1"
49
49
  },
50
50
  "dependencies": {
51
- "@onerjs/smart-filters": "8.53.4"
51
+ "@onerjs/smart-filters": "8.53.6"
52
52
  }
53
53
  }