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