"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.asyncGraphFromPort = void 0;
const AsyncWorker_1 = require("./AsyncWorker");
const _1 = require("./Class/$");
function asyncGraphFromPort(system, port) {
    const $graph = (0, AsyncWorker_1.AsyncWorkerGraph)(port);
    class AsyncGraph extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['$U', '$C', '$G'];
        }
        $setUnitName(data) {
            return $graph.$setUnitName(data);
        }
        $addListener(data, callback) {
            return $graph.$addListener(data, callback);
        }
        $emit(data, callback) {
            return $graph.$emit(data, callback);
        }
        $refEmitter(data) {
            return $graph.$refEmitter(data);
        }
        $getGlobalId(data, callback) {
            return $graph.$getGlobalId(data, callback);
        }
        $getEventNames(data, callback) {
            return $graph.$getEventNames(data, callback);
        }
        $play(data) {
            return $graph.$play(data);
        }
        $pause(data) {
            return $graph.$pause(data);
        }
        $push(data) {
            return $graph.$push(data);
        }
        $pullInput(data) {
            return $graph.$pullInput(data);
        }
        $takeInput(data) {
            return $graph.$takeInput(data);
        }
        $setPinData(data) {
            return $graph.$setPinData(data);
        }
        $removePinData(data) {
            return $graph.$removePinData(data);
        }
        $getPinData(data, callback) {
            return $graph.$getPinData(data, callback);
        }
        $getInputData(data, callback) {
            return $graph.$getInputData(data, callback);
        }
        $getRefInputData(data, callback) {
            return $graph.$getRefInputData(data, callback);
        }
        $reset(data) {
            return $graph.$reset(data);
        }
        $watch(data, callback) {
            return $graph.$watch(data, callback);
        }
        $refGlobalObj(data) {
            return $graph.$refGlobalObj(data);
        }
        $appendChild(data, callback) {
            return $graph.$appendChild(data, callback);
        }
        $removeChild(data, callback) {
            return $graph.$removeChild(data, callback);
        }
        $hasChild(data, callback) {
            return $graph.$hasChild(data, callback);
        }
        $child(data, callback) {
            return $graph.$child(data, callback);
        }
        $children(data, callback) {
            return $graph.$children(data, callback);
        }
        $refChild(data) {
            return $graph.$refChild(data);
        }
        $setUnitPinData(data) {
            return $graph.$setUnitPinData(data);
        }
        $removeUnitPinData(data) {
            return $graph.$removeUnitPinData(data);
        }
        $addUnit(data) {
            return $graph.$addUnit(data);
        }
        $cloneUnit(data) {
            return $graph.$cloneUnit(data);
        }
        $moveUnit(data) {
            return $graph.$moveUnit(data);
        }
        $addUnits(data) {
            return $graph.$addUnits(data);
        }
        $removeUnit(data) {
            return $graph.$removeUnit(data);
        }
        $exposePinSet(data) {
            return $graph.$exposePinSet(data);
        }
        $coverPinSet(data) {
            return $graph.$coverPinSet(data);
        }
        $exposePin(data) {
            return $graph.$exposePin(data);
        }
        $coverPin(data) {
            return $graph.$coverPin(data);
        }
        $plugPin(data) {
            return $graph.$plugPin(data);
        }
        $unplugPin(data) {
            return $graph.$unplugPin(data);
        }
        $exposeUnitPinSet(data) {
            return $graph.$exposeUnitPinSet(data);
        }
        $coverUnitPinSet(data) {
            return $graph.$coverUnitPinSet(data);
        }
        $setPinSetId(data) {
            throw new Error('Method not implemented.');
        }
        $setPinSetFunctional(data) {
            return $graph.$setPinSetFunctional(data);
        }
        $addMerge(data) {
            return $graph.$addMerge(data);
        }
        $removeMerge(data) {
            return $graph.$removeMerge(data);
        }
        $setUnitPinConstant(data) {
            return $graph.$setUnitPinConstant(data);
        }
        $setUnitPinIgnored(data) {
            return $graph.$setUnitPinIgnored(data);
        }
        $addMerges(data) {
            return $graph.$addMerges(data);
        }
        $setMergeData(data) {
            return $graph.$setMergeData(data);
        }
        $removeMergeData(data) {
            return $graph.$removeMergeData(data);
        }
        $addPinToMerge(data) {
            return $graph.$addPinToMerge(data);
        }
        $removePinFromMerge(data) {
            return $graph.$removePinFromMerge(data);
        }
        $mergeMerges(data) {
            return $graph.$mergeMerges(data);
        }
        $takeUnitErr(data) {
            return $graph.$takeUnitErr(data);
        }
        $moveSubComponentChild(data) {
            throw new Error('Method not implemented.');
        }
        $moveSubComponentChildren(data) {
            throw new Error('Method not implemented.');
        }
        $appendSubComponent(data) {
            throw new Error('Method not implemented.');
        }
        $moveSubgraphInto(data) {
            throw new Error('Method not implemented.');
        }
        $moveUnitInto(data) {
            return $graph.$moveUnitInto(data);
        }
        $movePlugInto(data) {
            throw new Error('Method not implemented.');
        }
        $moveLinkPinInto(data) {
            return $graph.$moveLinkPinInto(data);
        }
        $moveMergePinInto(data) {
            return $graph.$moveMergePinInto(data);
        }
        $explodeUnit(data) {
            return $graph.$explodeUnit(data);
        }
        $getUnitPinData(data, callback) {
            return $graph.$getUnitPinData(data, callback);
        }
        $getUnitState(data, callback) {
            return $graph.$getUnitState(data, callback);
        }
        $getGraphData(callback) {
            throw new Error('Method not implemented.');
        }
        $snapshot(data, callback) {
            throw new Error('Method not implemented.');
        }
        $snapshotUnit(data, callback) {
            throw new Error('Method not implemented.');
        }
        $addUnitGhost(data) {
            return $graph.$addUnitGhost(data);
        }
        $removeUnitGhost(data, callback) {
            return $graph.$removeUnitGhost(data, callback);
        }
        $getGraphState(data, callback) {
            return $graph.$getGraphState(data, callback);
        }
        $getGraphChildren(data, callback) {
            return $graph.$getGraphChildren(data, callback);
        }
        $getGraphPinData(data, callback) {
            return $graph.$getGraphPinData(data, callback);
        }
        $getGraphErr(data, callback) {
            return $graph.$getGraphErr(data, callback);
        }
        $getGraphMergeInputData(data, callback) {
            return $graph.$getGraphMergeInputData(data, callback);
        }
        $getUnitInputData(data, callback) {
            return $graph.$getUnitInputData(data, callback);
        }
        $getSpec(data, callback) {
            return $graph.$getSpec(data, callback);
        }
        $getBundle(data, callback) {
            return $graph.$getBundle(data, callback);
        }
        $setMetadata(data) {
            return $graph.$setMetadata(data);
        }
        $watchGraph(data, callback) {
            return $graph.$watchGraph(data, callback);
        }
        $watchUnit(data, callback) {
            return $graph.$watchUnit(data, callback);
        }
        $watchGraphUnit(data, callback) {
            return $graph.$watchGraphUnit(data, callback);
        }
        $watchUnitPath(data, callback) {
            return $graph.$watchUnitPath(data, callback);
        }
        $watchGraphUnitPath(data, callback) {
            return $graph.$watchGraphUnitPath(data, callback);
        }
        $compose(data) {
            return $graph.$compose(data);
        }
        $refSubComponent(data) {
            return $graph.$refSubComponent(data);
        }
        $refUnit(data) {
            return $graph.$refUnit(data);
        }
    }
    const $$graph = new AsyncGraph(system);
    return $$graph;
}
exports.asyncGraphFromPort = asyncGraphFromPort;
//# sourceMappingURL=graphFromPort.js.map