UNPKG

clumsy-graphics

Version:

a tool for rapidly developing animations where frames are described using svg elements à la react 🙃

32 lines (31 loc) 1.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initialSaga = void 0; const storeEffects_1 = require("../helpers/storeEffects"); const animationDevelopmentSetupSaga_1 = require("./animationDevelopmentSetupSaga"); const animationModuleBundlerEventHandlerSaga_1 = require("./animationModuleBundlerEventHandlerSaga"); const clientServerEventHandlerSaga_1 = require("./clientServerEventHandlerSaga"); const graphicsRendererProcessManagerSaga_1 = require("./graphicsRendererProcessManagerSaga"); function* initialSaga(api) { const { animationModulePath, generatedAssetsDirectoryPath, clientServerPort, numberOfFrameRendererWorkers, } = api; const { animationModuleBundlerEventChannel, clientServerEventChannel, clientPageBundle, localStorageSessionCacheId, graphicsRendererProcessManagerActionChannel, } = yield* (0, storeEffects_1.call)(animationDevelopmentSetupSaga_1.animationDevelopmentSetupSaga, { animationModulePath, generatedAssetsDirectoryPath, clientServerPort, }); yield* (0, storeEffects_1.spawn)(animationModuleBundlerEventHandlerSaga_1.animationModuleBundlerEventHandlerSaga, { animationModuleBundlerEventChannel, }); yield* (0, storeEffects_1.spawn)(clientServerEventHandlerSaga_1.clientServerEventHandlerSaga, { animationModulePath, generatedAssetsDirectoryPath, numberOfFrameRendererWorkers, clientServerEventChannel, clientPageBundle, localStorageSessionCacheId, }); yield* (0, storeEffects_1.spawn)(graphicsRendererProcessManagerSaga_1.graphicsRendererProcessManagerSaga, { graphicsRendererProcessManagerActionChannel, }); } exports.initialSaga = initialSaga;