@xviewer.js/postprocessing 1.0.0-alpha.10 → 1.0.0-alpha.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/dist/main.js +37 -38
- package/dist/main.js.map +1 -1
- package/dist/module.js +37 -38
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
package/dist/module.js
CHANGED
|
@@ -64,12 +64,35 @@ class EffectComposerPlugin extends Plugin {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
/******************************************************************************
|
|
68
|
+
Copyright (c) Microsoft Corporation.
|
|
69
|
+
|
|
70
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
71
|
+
purpose with or without fee is hereby granted.
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
74
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
75
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
76
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
77
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
78
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
79
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
80
|
+
***************************************************************************** */
|
|
81
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
function __decorate(decorators, target, key, desc) {
|
|
85
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
87
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
88
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
72
89
|
}
|
|
90
|
+
|
|
91
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
92
|
+
var e = new Error(message);
|
|
93
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
94
|
+
};
|
|
95
|
+
|
|
73
96
|
class PassPlugin extends Plugin {
|
|
74
97
|
get enable() {
|
|
75
98
|
return this.pass.enabled;
|
|
@@ -84,16 +107,10 @@ class PassPlugin extends Plugin {
|
|
|
84
107
|
this.composer.activePass(this.pass, v);
|
|
85
108
|
}
|
|
86
109
|
}
|
|
87
|
-
|
|
110
|
+
__decorate([
|
|
88
111
|
property
|
|
89
112
|
], PassPlugin.prototype, "enable", null);
|
|
90
113
|
|
|
91
|
-
function _ts_decorate$3(decorators, target, key, desc) {
|
|
92
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
-
}
|
|
97
114
|
class ToneMappingPlugin extends PassPlugin {
|
|
98
115
|
get mode() {
|
|
99
116
|
return this.effect.mode;
|
|
@@ -112,18 +129,12 @@ class ToneMappingPlugin extends PassPlugin {
|
|
|
112
129
|
};
|
|
113
130
|
}
|
|
114
131
|
}
|
|
115
|
-
|
|
132
|
+
__decorate([
|
|
116
133
|
property({
|
|
117
134
|
value: ToneMappingMode
|
|
118
135
|
})
|
|
119
136
|
], ToneMappingPlugin.prototype, "mode", null);
|
|
120
137
|
|
|
121
|
-
function _ts_decorate$2(decorators, target, key, desc) {
|
|
122
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
123
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
124
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
125
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
126
|
-
}
|
|
127
138
|
class BloomPlugin extends PassPlugin {
|
|
128
139
|
get intensity() {
|
|
129
140
|
return this.effect.intensity;
|
|
@@ -157,21 +168,21 @@ class BloomPlugin extends PassPlugin {
|
|
|
157
168
|
};
|
|
158
169
|
}
|
|
159
170
|
}
|
|
160
|
-
|
|
171
|
+
__decorate([
|
|
161
172
|
property({
|
|
162
173
|
min: 0,
|
|
163
174
|
max: 2,
|
|
164
175
|
step: 0.01
|
|
165
176
|
})
|
|
166
177
|
], BloomPlugin.prototype, "intensity", null);
|
|
167
|
-
|
|
178
|
+
__decorate([
|
|
168
179
|
property({
|
|
169
180
|
min: 0,
|
|
170
181
|
max: 10,
|
|
171
182
|
step: 0.01
|
|
172
183
|
})
|
|
173
184
|
], BloomPlugin.prototype, "luminanceThreshold", null);
|
|
174
|
-
|
|
185
|
+
__decorate([
|
|
175
186
|
property({
|
|
176
187
|
min: 0,
|
|
177
188
|
max: 10,
|
|
@@ -191,12 +202,6 @@ class FXAAPlugin extends PassPlugin {
|
|
|
191
202
|
}
|
|
192
203
|
}
|
|
193
204
|
|
|
194
|
-
function _ts_decorate$1(decorators, target, key, desc) {
|
|
195
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
197
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
198
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
199
|
-
}
|
|
200
205
|
class SMAAPlugin extends PassPlugin {
|
|
201
206
|
get preset() {
|
|
202
207
|
return this._preset;
|
|
@@ -231,28 +236,22 @@ class SMAAPlugin extends PassPlugin {
|
|
|
231
236
|
};
|
|
232
237
|
}
|
|
233
238
|
}
|
|
234
|
-
|
|
239
|
+
__decorate([
|
|
235
240
|
property({
|
|
236
241
|
value: SMAAPreset
|
|
237
242
|
})
|
|
238
243
|
], SMAAPlugin.prototype, "preset", null);
|
|
239
|
-
|
|
244
|
+
__decorate([
|
|
240
245
|
property({
|
|
241
246
|
value: EdgeDetectionMode
|
|
242
247
|
})
|
|
243
248
|
], SMAAPlugin.prototype, "edgeDetectionMode", null);
|
|
244
|
-
|
|
249
|
+
__decorate([
|
|
245
250
|
property({
|
|
246
251
|
value: PredicationMode
|
|
247
252
|
})
|
|
248
253
|
], SMAAPlugin.prototype, "predicationMode", null);
|
|
249
254
|
|
|
250
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
251
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
252
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
253
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
254
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
255
|
-
}
|
|
256
255
|
class MSAAPlugin extends Plugin {
|
|
257
256
|
get enable() {
|
|
258
257
|
return this.composer.multisampling > 0;
|
|
@@ -276,7 +275,7 @@ class MSAAPlugin extends Plugin {
|
|
|
276
275
|
};
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
|
-
|
|
278
|
+
__decorate([
|
|
280
279
|
property
|
|
281
280
|
], MSAAPlugin.prototype, "enable", null);
|
|
282
281
|
|