| 1234567891011121314151617181920212223242526 |
- /**
- * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
- * SPDX-License-Identifier: MIT
- */
- import { definePluginCreator } from '@flowgram.ai/core';
- import { StackingContextManager } from './manager';
- export const createFreeStackPlugin = definePluginCreator({
- onBind({ bind }) {
- bind(StackingContextManager).toSelf().inSingletonScope();
- },
- onInit(ctx) {
- const stackingContextManager = ctx.get<StackingContextManager>(StackingContextManager);
- stackingContextManager.init();
- },
- onReady(ctx) {
- const stackingContextManager = ctx.get<StackingContextManager>(StackingContextManager);
- stackingContextManager.ready();
- },
- onDispose(ctx) {
- const stackingContextManager = ctx.get<StackingContextManager>(StackingContextManager);
- stackingContextManager.dispose();
- },
- });
|