Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

1.4 KB
Raw Blame
/**
 * Copyright 2023-present DreamNum Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { FEnum } from '@univerjs/core/facade';
import { SHEET_VIEWPORT_KEY } from '@univerjs/engine-render';

/**
 * @ignore
 */
export interface IFSheetsUIEnumMixin {
    /**
     * Sheet value change command types. These commands affect the content or style of cells.
     * Includes operations like setting cell values, moving ranges, merging cells, and applying styles.
     */
    SHEET_VIEWPORT_KEY: typeof SHEET_VIEWPORT_KEY;
}

export class FSheetsUIEnumMixin extends FEnum implements IFSheetsUIEnumMixin {
    override get SHEET_VIEWPORT_KEY(): typeof SHEET_VIEWPORT_KEY {
        return SHEET_VIEWPORT_KEY;
    }
}

FEnum.extend(FSheetsUIEnumMixin);
declare module '@univerjs/core/facade' {
    // eslint-disable-next-line ts/naming-convention
    export interface FEnum extends IFSheetsUIEnumMixin {
    }
}