@ones-editor/editor 0.0.3-beta.120 → 0.0.3-beta.122
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/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/core/src/utils/index.d.ts +1 -0
- package/@ones-editor/core/src/utils/overflow-text.d.ts +1 -0
- package/@ones-editor/image-embed/src/drag-drop/drag-handler.d.ts +1 -0
- package/@ones-editor/image-embed/src/image-data.d.ts +1 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +4 -1
- package/dist/index.js +153 -153
- package/package.json +1 -1
- package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
|
@@ -135,6 +135,7 @@ export interface CommandItem {
|
|
|
135
135
|
childrenOffset?: [number, number];
|
|
136
136
|
subText?: string;
|
|
137
137
|
defaultCheckedChildren?: string[];
|
|
138
|
+
ellipsisTooltip?: string;
|
|
138
139
|
disableTooltip?: boolean;
|
|
139
140
|
disableReason?: string;
|
|
140
141
|
setCloseable?: (closeable: Closeable) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function overflowText(text: string, fontSize: number, maxwidth: number): string | null;
|
|
@@ -7,7 +7,7 @@ export declare function isRemoteImage(data: ImageItemData): boolean;
|
|
|
7
7
|
export declare function calcImagesFlexIfNeeded(images: ImageItemData[]): void;
|
|
8
8
|
export declare function getImages(data: ImageEmbedData): ImageItemData[];
|
|
9
9
|
export declare function getWidthPercent(blockData: DocEmbedBlock): number | undefined;
|
|
10
|
-
export declare function calImageBlockStyleWidth(editor: OnesEditor, blockData: DocEmbedBlock, failedLoad?: boolean): string;
|
|
10
|
+
export declare function calImageBlockStyleWidth(editor: OnesEditor, blockData: DocEmbedBlock, parentContainerElement: ContainerElement, failedLoad?: boolean): string;
|
|
11
11
|
export declare function toImageEmbedData(images: ImageItemData[], widthPercent?: number): ImageEmbedData;
|
|
12
12
|
export declare function calBlockHeight(editor: OnesEditor, imageData: DocEmbedBlock, parentContainerElement: ContainerElement, failedLoad?: boolean): number | "";
|
|
13
13
|
export declare function getTotalFlex(images: ImageItemData[]): number;
|