@chix/flow
Version:
32 lines • 1.42 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var events_1 = require("../../events");
var output_1 = require("../output");
var util_1 = require("./util");
var ExternalOutputPort = (function (_super) {
__extends(ExternalOutputPort, _super);
function ExternalOutputPort(externalPort, internalPort) {
var _this = _super.call(this, util_1.externalToInternalFilter(externalPort, internalPort)) || this;
_this.nodeId = externalPort.nodeId;
_this.name = externalPort.name;
_this._port = internalPort;
internalPort.on(events_1.PortEvents.DATA, function (packet) { return _this.write(packet); });
return _this;
}
return ExternalOutputPort;
}(output_1.OutputPort));
exports.ExternalOutputPort = ExternalOutputPort;
//# sourceMappingURL=output.js.map