@thewtex/vtk.js-esm
Version:
Visualization Toolkit for the Web
16 lines (11 loc) • 423 B
JavaScript
import { T as Transform } from './polyfill-node__stream_transform.js';
import { u as util } from '../vendor/util/util.js';
util.inherits(PassThrough, Transform);
function PassThrough(options) {
if (!(this instanceof PassThrough)) return new PassThrough(options);
Transform.call(this, options);
}
PassThrough.prototype._transform = function (chunk, encoding, cb) {
cb(null, chunk);
};
export { PassThrough as P };