@univerjs-pro/sheets-print 0.2.7 → 0.2.8
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/es/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/types/commands/operations/sheet-print.operation.d.ts +0 -1
- package/lib/types/commands/operations/sheet-screenshot.operation.d.ts +0 -1
- package/lib/types/common/types.d.ts +0 -1
- package/lib/types/controllers/menu.d.ts +0 -1
- package/lib/types/controllers/sheet-print.controller.d.ts +0 -1
- package/lib/types/controllers/shortcut.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/sheet-print-license.service.d.ts +0 -1
- package/lib/types/services/sheet-print-manager.service.d.ts +0 -1
- package/lib/types/services/sheet-print.service.d.ts +0 -1
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +1 -1
- package/lib/types/views/components/sheet-print-page-preview.d.ts +2 -2
- package/lib/types/views/components/sheet-print-view.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +21 -21
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100
|
|
1
|
+
.univer-sheets-print{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden}.univer-sheets-print-limit{margin:var(--margin-base) auto;text-align:center}.univer-sheets-print-header{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:64px;padding-right:var(--padding-lg);padding-left:var(--padding-lg);background:rgb(var(--color-white));border-bottom:1px solid rgb(var(--border-color))}.univer-sheets-print-header-left{margin-left:var(--margin-xs);font-size:var(--font-size-lg);font-weight:500;font-style:normal;line-height:normal;color:rgb(var(--color-black))}.univer-sheets-print-header-right{position:relative}.univer-sheets-print-header-right :first-child{margin-right:var(--margin-xs)}.univer-sheets-print-content{overflow:hidden;display:flex;flex-direction:column;flex:1 1 0;flex-direction:row;box-sizing:border-box}.univer-sheets-print-content-preview{position:relative;overflow:hidden;flex:1 1 0;box-sizing:border-box;display:flex;flex-direction:column}.univer-sheets-print-content-preview-list{flex:1 1 0;overflow:auto;scrollbar-color:#73737366 transparent;scrollbar-gutter:stable;scrollbar-width:thin}.univer-sheets-print-content-preview-page{position:relative;flex:0 0 auto;margin:28px auto 0;background-color:rgb(var(--color-white));box-shadow:var(--box-shadow-lg)}.univer-sheets-print-content-preview-control{position:absolute;right:var(--margin-base);bottom:var(--margin-base);z-index:100}.univer-sheets-print-content-preview-control-item{cursor:pointer;z-index:100;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-top:var(--margin-xs);background-color:rgb(var(--color-white));border-radius:50%;box-shadow:var(--box-shadow-base)}.univer-sheets-print-content-setting{flex:0 0 auto;box-sizing:border-box;width:312px;height:100%;background:rgb(var(--color-white))}.univer-sheets-print-content-setting-form{padding:16px}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IAccessor } from '@univerjs/core';
|
|
2
2
|
import { IMenuButtonItem } from '@univerjs/ui';
|
|
3
|
-
|
|
4
3
|
export declare function PrintMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
5
4
|
export declare function ScreenshotMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -2,7 +2,6 @@ import { Disposable, ICommandService } from '@univerjs/core';
|
|
|
2
2
|
import { ComponentManager, IGlobalZoneService } from '@univerjs/ui';
|
|
3
3
|
import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
|
|
4
4
|
import { SheetPrintClientService } from '../services/sheet-print.service';
|
|
5
|
-
|
|
6
5
|
export declare class SheetPrintController extends Disposable {
|
|
7
6
|
private readonly _printService;
|
|
8
7
|
private readonly _commandService;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
|
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { IPrintMargin } from '@univerjs-pro/print';
|
|
7
7
|
import { ISheetPrintLayoutConfig, ISheetPrintRenderConfig } from '../common/types';
|
|
8
|
-
|
|
9
8
|
export interface IPrintSheetInfo {
|
|
10
9
|
unitId: string;
|
|
11
10
|
subUnitId: string;
|
|
@@ -4,7 +4,6 @@ import { IRenderManagerService } from '@univerjs/engine-render';
|
|
|
4
4
|
import { ISheetPrintRenderConfig } from '../common/types';
|
|
5
5
|
import { ISheetPrintLayoutInfo, ISheetPrintManagerService } from './sheet-print-manager.service';
|
|
6
6
|
import { SheetPrintLicenseService } from './sheet-print-license.service';
|
|
7
|
-
|
|
8
7
|
export declare class SheetPrintClientService {
|
|
9
8
|
private readonly _sheetPrintLicenseService;
|
|
10
9
|
private readonly _injector;
|
|
@@ -2,7 +2,6 @@ import { IAccessor, IFreeze, IRange, Disposable } from '@univerjs/core';
|
|
|
2
2
|
import { Engine } from '@univerjs/engine-render';
|
|
3
3
|
import { IPrintMargin } from '@univerjs-pro/print';
|
|
4
4
|
import { ISheetPrintRenderConfig } from '../../common/types';
|
|
5
|
-
|
|
6
5
|
export interface IPrintSheetPageInfo {
|
|
7
6
|
unitId: string;
|
|
8
7
|
subUnitId: string;
|
|
@@ -48,6 +47,7 @@ export declare class SheetPrintCanvasView extends Disposable {
|
|
|
48
47
|
private get paperSize();
|
|
49
48
|
private get margin();
|
|
50
49
|
private _initRenderer;
|
|
50
|
+
clearMemory(): void;
|
|
51
51
|
setPreviewScale(previewScale: number): void;
|
|
52
52
|
updateConfig(config: IPrintSheetPageInfo): void;
|
|
53
53
|
markDirty(dirty: boolean): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IPrintSheetPageInfo } from './sheet-print-canvas-view';
|
|
3
|
-
|
|
4
3
|
export interface ISheetPrintPageViewProps {
|
|
5
4
|
page: number;
|
|
6
5
|
previewScale: number;
|
|
7
6
|
config: IPrintSheetPageInfo;
|
|
8
7
|
}
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const DEFAULT_WIDTH = 794;
|
|
9
|
+
export declare const SheetPrintPagePreview: React.ForwardRefExoticComponent<ISheetPrintPageViewProps & React.RefAttributes<HTMLDivElement>>;
|