@univerjs-pro/shape-editor-ui 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +455 -49
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/toggle-shape-floating-toolbar.operation.d.ts +2 -0
- package/lib/types/common/formula-shape-en-us.d.ts +0 -19
- package/lib/types/config/config.d.ts +2 -25
- package/lib/types/controllers/components.controller.d.ts +3 -2
- package/lib/types/index.d.ts +21 -4
- package/lib/types/locale/en-US.d.ts +132 -21
- package/lib/types/menu/shape-floating-toolbar.menu.d.ts +3 -0
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/formula-binding.service.d.ts +34 -0
- package/lib/types/services/shape-floating-toolbar.service.d.ts +16 -0
- package/lib/types/utils/shape-contextual-ribbon-host.d.ts +2 -0
- package/lib/types/utils/shape-floating-toolbar-config.d.ts +3 -3
- package/lib/types/views/FormulaBindingEditorDialog.d.ts +1 -1
- package/lib/types/views/formula-shape/UseFormulaShapeToolbar.d.ts +3 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFillControls.d.ts +2 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -2
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbarPrimitives.d.ts +11 -2
- package/lib/types/views/shape-floating-toolbar/ShapeStrokeControls.d.ts +5 -0
- package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +3 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +7 -1
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-wheel.util.d.ts +1 -0
- package/lib/types/views/shape-format-ribbon/ShapeEffectControls.d.ts +19 -0
- package/lib/types/views/shape-format-ribbon/ShapeEffectPresetIcon.d.ts +11 -0
- package/lib/types/views/shape-format-ribbon/ShapeFormatRibbonControls.d.ts +27 -0
- package/lib/types/views/shape-format-ribbon/shape-effect-reference-paths.generated.d.ts +6 -0
- package/lib/types/views/shape-picker/ShapeChangePicker.d.ts +7 -0
- package/lib/types/views/shape-quick-style/ShapeQuickStyleGallery.d.ts +10 -0
- package/lib/types/views/shape-text-editor/DocParagraphTypeDropdown.d.ts +1 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- package/lib/types/views/shape-text-editor/shape-text-keyboard.d.ts +4 -0
- package/lib/types/views/shape-text-editor/types.d.ts +1 -0
- package/lib/types/views/smart-art/SmartArtColorGallery.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtLayoutIcon.d.ts +6 -0
- package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +10 -0
- package/lib/types/views/smart-art/SmartArtRibbonControl.d.ts +33 -0
- package/lib/types/views/smart-art/SmartArtTextPane.d.ts +14 -0
- package/lib/types/views/smart-art/smart-art-layout-catalog.generated.d.ts +35 -0
- package/lib/types/views/smart-art/smart-art-layout-gallery-catalog.generated.d.ts +5 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -24
- package/lib/types/services/formula-binding-unit-viewer.service.d.ts +0 -67
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ISmartArtData, ISmartArtDataNode, SmartArtOperation } from '@univerjs-pro/engine-shape';
|
|
2
|
+
export interface ISmartArtTextPaneProps {
|
|
3
|
+
data: ISmartArtData;
|
|
4
|
+
onOperation: (operation: SmartArtOperation, focusedNodeId?: string) => void;
|
|
5
|
+
selectedNodeId?: string;
|
|
6
|
+
onSelectNode?: (nodeId: string | undefined) => void;
|
|
7
|
+
showToolbar?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ISmartArtTextPaneRow {
|
|
10
|
+
depth: number;
|
|
11
|
+
node: ISmartArtDataNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function flattenSmartArtTextPaneRows(data: ISmartArtData): ISmartArtTextPaneRow[];
|
|
14
|
+
export declare function SmartArtTextPane(props: ISmartArtTextPaneProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type SmartArtLayoutIconElement = {
|
|
2
|
+
kind: 'ellipse';
|
|
3
|
+
cx: number;
|
|
4
|
+
cy: number;
|
|
5
|
+
rx: number;
|
|
6
|
+
ry: number;
|
|
7
|
+
transform?: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'line';
|
|
10
|
+
x1: number;
|
|
11
|
+
y1: number;
|
|
12
|
+
x2: number;
|
|
13
|
+
y2: number;
|
|
14
|
+
transform?: string;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'path';
|
|
17
|
+
d: string;
|
|
18
|
+
transform?: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'rect';
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
rx?: number;
|
|
26
|
+
transform?: string;
|
|
27
|
+
};
|
|
28
|
+
export interface ISmartArtLayoutCatalogItem {
|
|
29
|
+
category: string;
|
|
30
|
+
iconElements: SmartArtLayoutIconElement[];
|
|
31
|
+
iconFile: string;
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const SMART_ART_LAYOUT_CATALOG: readonly ISmartArtLayoutCatalogItem[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ISmartArtLayoutCatalogItem } from './smart-art-layout-catalog.generated';
|
|
2
|
+
export interface ISmartArtLayoutGalleryItem extends ISmartArtLayoutCatalogItem {
|
|
3
|
+
galleryId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const SMART_ART_LAYOUT_GALLERY_CATALOG: readonly ISmartArtLayoutGalleryItem[];
|