Uniscript
Facade API | Paid Version | Univer Server | Univer on Node.js | Preset |
---|---|---|---|---|
✅ | - | - | - | ❌ import via plugins |
This feature includes the following plugin packages:
Presets Installation
npm install @univerjs/uniscript
import { createUniver, defaultTheme, LocaleType, Tools } from '@univerjs/presets';
import { UniverSheetsCorePreset } from '@univerjs/presets/preset-sheets-core';
import UniverPresetSheetsCoreEnUS from '@univerjs/presets/preset-sheets-core/locales/en-US';
import { UniverUniscriptPlugin } from '@univerjs/uniscript';
import UniscriptEnUS from '@univerjs/uniscript/locale/en-US';
import '@univerjs/uniscript/lib/index.css';
import '@univerjs/uniscript/facade';
const { univerAPI } = createUniver({
locale: LocaleType.EN_US,
locales: {
enUS: Tools.deepMerge(
{},
UniverPresetSheetsCoreEnUS,
UniscriptEnUS
),
},
theme: defaultTheme,
presets: [
UniverSheetsCorePreset(),
],
plugins: [
UniverUniscriptPlugin
],
});
Advanced Installation
npm install @univerjs/uniscript
import { LocaleType, Tools } from '@univerjs/core';
import { UniverUniscriptPlugin } from '@univerjs/uniscript';
import UniscriptEnUS from '@univerjs/uniscript/locale/en-US';
import '@univerjs/uniscript/lib/index.css';
const univer = new Univer({
theme: defaultTheme,
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: Tools.deepMerge(
UniscriptEnUS
),
},
});
univer.registerPlugin(UniverUniscriptPlugin);