@univerjs/sheets-drawing 0.1.13-nightly.202406041140
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/README.md +16 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +123 -0
- package/lib/types/commands/mutations/set-drawing-apply.mutation.d.ts +15 -0
- package/lib/types/controllers/sheet-drawing.controller.d.ts +17 -0
- package/lib/types/index.d.ts +19 -0
- package/lib/types/plugin.d.ts +11 -0
- package/lib/types/services/sheet-drawing.service.d.ts +42 -0
- package/lib/umd/index.js +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @univerjs/sheets-drawing
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/packages/@univerjs/sheets-drawing)
|
|
4
|
+
[](https://img.shields.io/npm/l/@univerjs/sheets-drawing)
|
|
5
|
+
|
|
6
|
+
## Introduction
|
|
7
|
+
|
|
8
|
+
> This plugin adds drawing features to Univer.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Installation
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
npm i @univerjs/sheets-drawing
|
|
16
|
+
```
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var E=Object.defineProperty;var I=(e,r,t)=>r in e?E(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var v=(e,r,t)=>(I(e,typeof r!="symbol"?r+"":r,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@univerjs/core"),_=require("@wendellhu/redi"),l=require("@univerjs/drawing");var N=(e=>(e.Position="0",e.Both="1",e.None="2",e))(N||{});class R extends l.UnitDrawingService{}const h=_.createIdentifier("sheets-drawing.sheet-drawing.service");var U=(e=>(e[e.INSERT=0]="INSERT",e[e.REMOVE=1]="REMOVE",e[e.UPDATE=2]="UPDATE",e[e.ARRANGE=3]="ARRANGE",e[e.GROUP=4]="GROUP",e[e.UNGROUP=5]="UNGROUP",e))(U||{});const f={id:"sheet.mutation.set-drawing-apply",type:n.CommandType.MUTATION,handler:(e,r)=>{const t=e.get(l.IDrawingManagerService),i=e.get(h),{op:a,unitId:s,subUnitId:c,type:m,objects:o}=r;switch(t.applyJson1(s,c,a),i.applyJson1(s,c,a),m){case 0:t.addNotification(o),i.addNotification(o);break;case 1:t.removeNotification(o),i.removeNotification(o);break;case 2:t.updateNotification(o),i.updateNotification(o);break;case 3:t.orderNotification(o),i.orderNotification(o);break;case 4:t.groupUpdateNotification(o);break;case 5:t.ungroupUpdateNotification(o);break}return!0}};var D=(e,r,t,i)=>{for(var a=r,s=e.length-1,c;s>=0;s--)(c=e[s])&&(a=c(a)||a);return a},S=(e,r)=>(t,i)=>r(t,i,e);const w="SHEET_DRAWING_PLUGIN";let u=class extends n.Disposable{constructor(e){super(),this._commandService=e,this.disposeWithMe(this._commandService.registerCommand(f))}};u=D([n.OnLifecycle(n.LifecycleStages.Starting,u),S(0,n.ICommandService)],u);let d=class extends n.Disposable{constructor(e,r,t){super(),this._sheetDrawingService=e,this._drawingManagerService=r,this._resourceManagerService=t,this._init()}_init(){this._initSnapshot()}_initSnapshot(){const e=t=>{const i=this._sheetDrawingService.getDrawingDataForUnit(t);return i?JSON.stringify(i):""},r=t=>{if(!t)return{};try{return JSON.parse(t)}catch{return{}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:w,businesses:[n.UniverInstanceType.UNIVER_SHEET],toJson:t=>e(t),parseJson:t=>r(t),onUnLoad:t=>{this._sheetDrawingService.removeDrawingDataForUnit(t),this._drawingManagerService.removeDrawingDataForUnit(t)},onLoad:(t,i)=>{this._sheetDrawingService.registerDrawingData(t,i),this._drawingManagerService.registerDrawingData(t,i)}}))}};d=D([n.OnLifecycle(n.LifecycleStages.Ready,d),S(0,h),S(1,l.IDrawingManagerService),S(2,n.IResourceManagerService)],d);var P=(e,r,t,i)=>{for(var a=r,s=e.length-1,c;s>=0;s--)(c=e[s])&&(a=c(a)||a);return a},M=(e,r)=>(t,i)=>r(t,i,e),g;exports.UniverSheetsDrawingPlugin=(g=class extends n.Plugin{constructor(r,t){super(),this._config=r,this._injector=t}onStarting(r){[[u],[d],[h,{useClass:R}]].forEach(t=>r.add(t))}},v(g,"pluginName",w),v(g,"type",n.UniverInstanceType.UNIVER_SHEET),g);exports.UniverSheetsDrawingPlugin=P([M(1,_.Inject(_.Injector))],exports.UniverSheetsDrawingPlugin);exports.DrawingApplyType=U;exports.ISheetDrawingService=h;exports.SetDrawingApplyMutation=f;exports.SheetDrawingAnchorType=N;
|
package/lib/es/index.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var D = (e, r, t) => r in e ? I(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
|
+
var u = (e, r, t) => (D(e, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
+
import { CommandType as M, OnLifecycle as _, LifecycleStages as N, Disposable as m, ICommandService as P, UniverInstanceType as f, IResourceManagerService as w, Plugin as b } from "@univerjs/core";
|
|
5
|
+
import { createIdentifier as k, Inject as G, Injector as O } from "@wendellhu/redi";
|
|
6
|
+
import { UnitDrawingService as C, IDrawingManagerService as U } from "@univerjs/drawing";
|
|
7
|
+
var J = /* @__PURE__ */ ((e) => (e.Position = "0", e.Both = "1", e.None = "2", e))(J || {});
|
|
8
|
+
class L extends C {
|
|
9
|
+
}
|
|
10
|
+
const S = k("sheets-drawing.sheet-drawing.service");
|
|
11
|
+
var x = /* @__PURE__ */ ((e) => (e[e.INSERT = 0] = "INSERT", e[e.REMOVE = 1] = "REMOVE", e[e.UPDATE = 2] = "UPDATE", e[e.ARRANGE = 3] = "ARRANGE", e[e.GROUP = 4] = "GROUP", e[e.UNGROUP = 5] = "UNGROUP", e))(x || {});
|
|
12
|
+
const H = {
|
|
13
|
+
id: "sheet.mutation.set-drawing-apply",
|
|
14
|
+
type: M.MUTATION,
|
|
15
|
+
handler: (e, r) => {
|
|
16
|
+
const t = e.get(U), i = e.get(S), { op: a, unitId: n, subUnitId: o, type: R, objects: s } = r;
|
|
17
|
+
switch (t.applyJson1(n, o, a), i.applyJson1(n, o, a), R) {
|
|
18
|
+
case 0:
|
|
19
|
+
t.addNotification(s), i.addNotification(s);
|
|
20
|
+
break;
|
|
21
|
+
case 1:
|
|
22
|
+
t.removeNotification(s), i.removeNotification(s);
|
|
23
|
+
break;
|
|
24
|
+
case 2:
|
|
25
|
+
t.updateNotification(s), i.updateNotification(s);
|
|
26
|
+
break;
|
|
27
|
+
case 3:
|
|
28
|
+
t.orderNotification(s), i.orderNotification(s);
|
|
29
|
+
break;
|
|
30
|
+
case 4:
|
|
31
|
+
t.groupUpdateNotification(s);
|
|
32
|
+
break;
|
|
33
|
+
case 5:
|
|
34
|
+
t.ungroupUpdateNotification(s);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var E = (e, r, t, i) => {
|
|
41
|
+
for (var a = r, n = e.length - 1, o; n >= 0; n--)
|
|
42
|
+
(o = e[n]) && (a = o(a) || a);
|
|
43
|
+
return a;
|
|
44
|
+
}, g = (e, r) => (t, i) => r(t, i, e);
|
|
45
|
+
const l = "SHEET_DRAWING_PLUGIN";
|
|
46
|
+
let d = class extends m {
|
|
47
|
+
constructor(e) {
|
|
48
|
+
super(), this._commandService = e, this.disposeWithMe(this._commandService.registerCommand(H));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
d = E([
|
|
52
|
+
_(N.Starting, d),
|
|
53
|
+
g(0, P)
|
|
54
|
+
], d);
|
|
55
|
+
let h = class extends m {
|
|
56
|
+
constructor(e, r, t) {
|
|
57
|
+
super(), this._sheetDrawingService = e, this._drawingManagerService = r, this._resourceManagerService = t, this._init();
|
|
58
|
+
}
|
|
59
|
+
_init() {
|
|
60
|
+
this._initSnapshot();
|
|
61
|
+
}
|
|
62
|
+
_initSnapshot() {
|
|
63
|
+
const e = (t) => {
|
|
64
|
+
const i = this._sheetDrawingService.getDrawingDataForUnit(t);
|
|
65
|
+
return i ? JSON.stringify(i) : "";
|
|
66
|
+
}, r = (t) => {
|
|
67
|
+
if (!t)
|
|
68
|
+
return {};
|
|
69
|
+
try {
|
|
70
|
+
return JSON.parse(t);
|
|
71
|
+
} catch {
|
|
72
|
+
return {};
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
this.disposeWithMe(
|
|
76
|
+
this._resourceManagerService.registerPluginResource({
|
|
77
|
+
pluginName: l,
|
|
78
|
+
businesses: [f.UNIVER_SHEET],
|
|
79
|
+
toJson: (t) => e(t),
|
|
80
|
+
parseJson: (t) => r(t),
|
|
81
|
+
onUnLoad: (t) => {
|
|
82
|
+
this._sheetDrawingService.removeDrawingDataForUnit(t), this._drawingManagerService.removeDrawingDataForUnit(t);
|
|
83
|
+
},
|
|
84
|
+
onLoad: (t, i) => {
|
|
85
|
+
this._sheetDrawingService.registerDrawingData(t, i), this._drawingManagerService.registerDrawingData(t, i);
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
h = E([
|
|
92
|
+
_(N.Ready, h),
|
|
93
|
+
g(0, S),
|
|
94
|
+
g(1, U),
|
|
95
|
+
g(2, w)
|
|
96
|
+
], h);
|
|
97
|
+
var V = (e, r, t, i) => {
|
|
98
|
+
for (var a = r, n = e.length - 1, o; n >= 0; n--)
|
|
99
|
+
(o = e[n]) && (a = o(a) || a);
|
|
100
|
+
return a;
|
|
101
|
+
}, W = (e, r) => (t, i) => r(t, i, e), c;
|
|
102
|
+
let v = (c = class extends b {
|
|
103
|
+
constructor(e, r) {
|
|
104
|
+
super(), this._config = e, this._injector = r;
|
|
105
|
+
}
|
|
106
|
+
onStarting(e) {
|
|
107
|
+
[
|
|
108
|
+
[d],
|
|
109
|
+
[h],
|
|
110
|
+
[S, { useClass: L }]
|
|
111
|
+
].forEach((r) => e.add(r));
|
|
112
|
+
}
|
|
113
|
+
}, u(c, "pluginName", l), u(c, "type", f.UNIVER_SHEET), c);
|
|
114
|
+
v = V([
|
|
115
|
+
W(1, G(O))
|
|
116
|
+
], v);
|
|
117
|
+
export {
|
|
118
|
+
x as DrawingApplyType,
|
|
119
|
+
S as ISheetDrawingService,
|
|
120
|
+
H as SetDrawingApplyMutation,
|
|
121
|
+
J as SheetDrawingAnchorType,
|
|
122
|
+
v as UniverSheetsDrawingPlugin
|
|
123
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IDrawingJson1Type } from '@univerjs/drawing';
|
|
3
|
+
|
|
4
|
+
export declare enum DrawingApplyType {
|
|
5
|
+
INSERT = 0,
|
|
6
|
+
REMOVE = 1,
|
|
7
|
+
UPDATE = 2,
|
|
8
|
+
ARRANGE = 3,
|
|
9
|
+
GROUP = 4,
|
|
10
|
+
UNGROUP = 5
|
|
11
|
+
}
|
|
12
|
+
export interface ISetDrawingApplyMutationParams extends IDrawingJson1Type {
|
|
13
|
+
type: DrawingApplyType;
|
|
14
|
+
}
|
|
15
|
+
export declare const SetDrawingApplyMutation: IMutation<ISetDrawingApplyMutationParams>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IResourceManagerService } from '@univerjs/core';
|
|
2
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
3
|
+
import { ISheetDrawingService } from '../services/sheet-drawing.service';
|
|
4
|
+
|
|
5
|
+
export declare const SHEET_DRAWING_PLUGIN = "SHEET_DRAWING_PLUGIN";
|
|
6
|
+
export declare class SheetsDrawingLoadController extends Disposable {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
constructor(_commandService: ICommandService);
|
|
9
|
+
}
|
|
10
|
+
export declare class SheetsDrawingController extends Disposable {
|
|
11
|
+
private readonly _sheetDrawingService;
|
|
12
|
+
private readonly _drawingManagerService;
|
|
13
|
+
private _resourceManagerService;
|
|
14
|
+
constructor(_sheetDrawingService: ISheetDrawingService, _drawingManagerService: IDrawingManagerService, _resourceManagerService: IResourceManagerService);
|
|
15
|
+
private _init;
|
|
16
|
+
private _initSnapshot;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { UniverSheetsDrawingPlugin } from './plugin';
|
|
17
|
+
export { DrawingApplyType, SetDrawingApplyMutation } from './commands/mutations/set-drawing-apply.mutation';
|
|
18
|
+
export { ISheetDrawingService, SheetDrawingAnchorType } from './services/sheet-drawing.service';
|
|
19
|
+
export type { IFloatDomData, ISheetDrawing, ISheetDrawingPosition, ISheetFloatDom } from './services/sheet-drawing.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
|
|
4
|
+
export declare class UniverSheetsDrawingPlugin extends Plugin {
|
|
5
|
+
private readonly _config;
|
|
6
|
+
readonly _injector: Injector;
|
|
7
|
+
static pluginName: string;
|
|
8
|
+
static type: UniverInstanceType;
|
|
9
|
+
constructor(_config: unknown, _injector: Injector);
|
|
10
|
+
onStarting(_injector: Injector): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IDrawingParam, IImageData, IRotationSkewFlipTransform, IUnitDrawingService, UnitDrawingService } from '@univerjs/drawing';
|
|
2
|
+
|
|
3
|
+
interface ICellPosition {
|
|
4
|
+
column: number;
|
|
5
|
+
columnOffset: number;
|
|
6
|
+
row: number;
|
|
7
|
+
rowOffset: number;
|
|
8
|
+
}
|
|
9
|
+
export declare enum SheetDrawingAnchorType {
|
|
10
|
+
Position = "0",
|
|
11
|
+
Both = "1",
|
|
12
|
+
None = "2"
|
|
13
|
+
}
|
|
14
|
+
export interface ISheetDrawingPosition extends IRotationSkewFlipTransform {
|
|
15
|
+
from: ICellPosition;
|
|
16
|
+
to: ICellPosition;
|
|
17
|
+
}
|
|
18
|
+
export interface ISheetDrawingBase {
|
|
19
|
+
sheetTransform: ISheetDrawingPosition;
|
|
20
|
+
anchorType?: SheetDrawingAnchorType;
|
|
21
|
+
}
|
|
22
|
+
export interface ISheetImage extends IImageData, ISheetDrawingBase {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* test type
|
|
26
|
+
*/
|
|
27
|
+
export interface ISheetShape extends IDrawingParam, ISheetDrawingBase {
|
|
28
|
+
}
|
|
29
|
+
export interface IFloatDomData extends IDrawingParam {
|
|
30
|
+
componentKey: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ISheetFloatDom extends IFloatDomData, ISheetDrawingBase {
|
|
33
|
+
}
|
|
34
|
+
export type ISheetDrawing = ISheetImage | ISheetShape | ISheetFloatDom;
|
|
35
|
+
type OptionalField<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
36
|
+
export type ISheetUpdateDrawing = OptionalField<ISheetImage | ISheetShape, 'sheetTransform'>;
|
|
37
|
+
export declare class SheetDrawingService extends UnitDrawingService<ISheetDrawing> {
|
|
38
|
+
}
|
|
39
|
+
export interface ISheetDrawingService extends IUnitDrawingService<ISheetDrawing> {
|
|
40
|
+
}
|
|
41
|
+
export declare const ISheetDrawingService: import('@wendellhu/redi').IdentifierDecorator<ISheetDrawingService>;
|
|
42
|
+
export {};
|
package/lib/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@univerjs/core"),require("@wendellhu/redi"),require("@univerjs/drawing")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@wendellhu/redi","@univerjs/drawing"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.UniverSheetsDrawing={},n.UniverCore,n["@wendellhu/redi"],n.UniverDrawing))})(this,function(n,t,u,l){"use strict";var M=Object.defineProperty;var O=(n,t,u)=>t in n?M(n,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):n[t]=u;var _=(n,t,u)=>(O(n,typeof t!="symbol"?t+"":t,u),u);var f;var U=(e=>(e.Position="0",e.Both="1",e.None="2",e))(U||{});class E extends l.UnitDrawingService{}const d=u.createIdentifier("sheets-drawing.sheet-drawing.service");var N=(e=>(e[e.INSERT=0]="INSERT",e[e.REMOVE=1]="REMOVE",e[e.UPDATE=2]="UPDATE",e[e.ARRANGE=3]="ARRANGE",e[e.GROUP=4]="GROUP",e[e.UNGROUP=5]="UNGROUP",e))(N||{});const w={id:"sheet.mutation.set-drawing-apply",type:t.CommandType.MUTATION,handler:(e,a)=>{const i=e.get(l.IDrawingManagerService),r=e.get(d),{op:s,unitId:o,subUnitId:g,type:P,objects:c}=a;switch(i.applyJson1(o,g,s),r.applyJson1(o,g,s),P){case 0:i.addNotification(c),r.addNotification(c);break;case 1:i.removeNotification(c),r.removeNotification(c);break;case 2:i.updateNotification(c),r.updateNotification(c);break;case 3:i.orderNotification(c),r.orderNotification(c);break;case 4:i.groupUpdateNotification(c);break;case 5:i.ungroupUpdateNotification(c);break}return!0}};var D=(e,a,i,r)=>{for(var s=a,o=e.length-1,g;o>=0;o--)(g=e[o])&&(s=g(s)||s);return s},h=(e,a)=>(i,r)=>a(i,r,e);const m="SHEET_DRAWING_PLUGIN";let v=class extends t.Disposable{constructor(e){super(),this._commandService=e,this.disposeWithMe(this._commandService.registerCommand(w))}};v=D([t.OnLifecycle(t.LifecycleStages.Starting,v),h(0,t.ICommandService)],v);let S=class extends t.Disposable{constructor(e,a,i){super(),this._sheetDrawingService=e,this._drawingManagerService=a,this._resourceManagerService=i,this._init()}_init(){this._initSnapshot()}_initSnapshot(){const e=i=>{const r=this._sheetDrawingService.getDrawingDataForUnit(i);return r?JSON.stringify(r):""},a=i=>{if(!i)return{};try{return JSON.parse(i)}catch{return{}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:m,businesses:[t.UniverInstanceType.UNIVER_SHEET],toJson:i=>e(i),parseJson:i=>a(i),onUnLoad:i=>{this._sheetDrawingService.removeDrawingDataForUnit(i),this._drawingManagerService.removeDrawingDataForUnit(i)},onLoad:(i,r)=>{this._sheetDrawingService.registerDrawingData(i,r),this._drawingManagerService.registerDrawingData(i,r)}}))}};S=D([t.OnLifecycle(t.LifecycleStages.Ready,S),h(0,d),h(1,l.IDrawingManagerService),h(2,t.IResourceManagerService)],S);var I=(e,a,i,r)=>{for(var s=a,o=e.length-1,g;o>=0;o--)(g=e[o])&&(s=g(s)||s);return s},R=(e,a)=>(i,r)=>a(i,r,e);n.UniverSheetsDrawingPlugin=(f=class extends t.Plugin{constructor(a,i){super(),this._config=a,this._injector=i}onStarting(a){[[v],[S],[d,{useClass:E}]].forEach(i=>a.add(i))}},_(f,"pluginName",m),_(f,"type",t.UniverInstanceType.UNIVER_SHEET),f),n.UniverSheetsDrawingPlugin=I([R(1,u.Inject(u.Injector))],n.UniverSheetsDrawingPlugin),n.DrawingApplyType=N,n.ISheetDrawingService=d,n.SetDrawingApplyMutation=w,n.SheetDrawingAnchorType=U,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs/sheets-drawing",
|
|
3
|
+
"version": "0.1.13-nightly.202406041140",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "",
|
|
6
|
+
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"funding": {
|
|
9
|
+
"type": "opencollective",
|
|
10
|
+
"url": "https://opencollective.com/univer"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://univer.ai",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/dream-num/univer"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./lib/es/index.js",
|
|
24
|
+
"require": "./lib/cjs/index.js",
|
|
25
|
+
"types": "./lib/types/index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./*": {
|
|
28
|
+
"import": "./lib/es/*",
|
|
29
|
+
"require": "./lib/cjs/*",
|
|
30
|
+
"types": "./lib/types/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./lib/*": "./lib/*"
|
|
33
|
+
},
|
|
34
|
+
"main": "./lib/cjs/index.js",
|
|
35
|
+
"module": "./lib/es/index.js",
|
|
36
|
+
"types": "./lib/types/index.d.ts",
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"directories": {
|
|
41
|
+
"lib": "lib"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"lib"
|
|
45
|
+
],
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@wendellhu/redi": "0.15.2",
|
|
48
|
+
"@univerjs/core": "0.1.13-nightly.202406041140",
|
|
49
|
+
"@univerjs/drawing": "0.1.13-nightly.202406041140"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@wendellhu/redi": "^0.15.2",
|
|
54
|
+
"typescript": "^5.4.5",
|
|
55
|
+
"vite": "^5.2.12",
|
|
56
|
+
"vitest": "^1.6.0",
|
|
57
|
+
"@univerjs/core": "0.1.13-nightly.202406041140",
|
|
58
|
+
"@univerjs/drawing": "0.1.13-nightly.202406041140",
|
|
59
|
+
"@univerjs/shared": "0.1.13",
|
|
60
|
+
"@univerjs/sheets": "0.1.13-nightly.202406041140"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"coverage": "vitest run --coverage",
|
|
66
|
+
"lint:types": "tsc --noEmit",
|
|
67
|
+
"build": "tsc && vite build"
|
|
68
|
+
}
|
|
69
|
+
}
|