oasis-editor 0.0.10 → 0.0.11
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/dist/{OasisEditorApp-B31W8Nmj.js → OasisEditorApp-BgOoWqpC.js} +459 -94
- package/dist/core/commands/shape.d.ts +9 -0
- package/dist/core/editorCommands.d.ts +1 -0
- package/dist/export/pdf/OasisPdfWriter.d.ts +30 -0
- package/dist/export/pdf/draw/drawBlockList.d.ts +2 -2
- package/dist/export/pdf/draw/drawTextBoxShape.d.ts +34 -0
- package/dist/i18n/locales/en.d.ts +7 -0
- package/dist/i18n/locales/pt-BR.d.ts +7 -0
- package/dist/{index--RsWcVrx.js → index-L71R0x7D.js} +411 -156
- package/dist/layoutProjection/presetGeometry.d.ts +31 -0
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +1 -0
- package/dist/ui/canvas/presetGeometry.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outline geometry for DrawingML preset shapes (`a:prstGeom/@prst`), expressed
|
|
3
|
+
* as backend-agnostic path segments so the canvas renderer and the PDF exporter
|
|
4
|
+
* paint identical shapes. Coordinates are in a top-left origin coordinate space
|
|
5
|
+
* (px on canvas, pt in the PDF exporter — the segments are affine in the input
|
|
6
|
+
* rectangle, so either unit works).
|
|
7
|
+
*
|
|
8
|
+
* Only the "basic shapes" handled by the editor are mapped explicitly; any
|
|
9
|
+
* unknown or absent preset falls back to a plain rectangle, preserving the
|
|
10
|
+
* historical behaviour for ordinary text boxes.
|
|
11
|
+
*/
|
|
12
|
+
export type PresetPathSegment = {
|
|
13
|
+
type: "move";
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
} | {
|
|
17
|
+
type: "line";
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
} | {
|
|
21
|
+
type: "cubic";
|
|
22
|
+
x1: number;
|
|
23
|
+
y1: number;
|
|
24
|
+
x2: number;
|
|
25
|
+
y2: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | {
|
|
29
|
+
type: "close";
|
|
30
|
+
};
|
|
31
|
+
export declare function getPresetPathSegments(preset: string | undefined, x: number, y: number, width: number, height: number): PresetPathSegment[];
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aT, bI, bJ, bK, bL, bM, b8, bN, aU, aP, bO, bP, bQ, aS, bR, aN, bS, bT, bU, bV, bW, bE, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, bd, c7, bD, c8, bK as bK2, bP as bP2, bR as bR2, b$ as b$2, c1 as c12, c6 as c62, aR, aL, c9, ca, cb, aO, cc, cd, aQ } from "./index-L71R0x7D.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
3
|
+
aT as BalloonShell,
|
|
4
|
+
bI as Button,
|
|
5
|
+
bJ as Checkbox,
|
|
6
|
+
bK as ColorPicker,
|
|
7
|
+
bL as CommandRegistry,
|
|
8
|
+
bM as DEFAULT_PALETTE,
|
|
9
|
+
b8 as Dialog,
|
|
10
|
+
bN as DialogFooter,
|
|
11
|
+
aU as DocumentShell,
|
|
12
|
+
aP as Editor,
|
|
13
|
+
bO as FloatingActionButton,
|
|
14
|
+
bP as GridPicker,
|
|
15
|
+
bQ as IconButton,
|
|
16
|
+
aS as InlineShell,
|
|
17
|
+
bR as Menu,
|
|
18
|
+
aN as MenuRegistry,
|
|
19
|
+
bS as OASIS_BUILTIN_COMMANDS,
|
|
20
|
+
bT as OASIS_MENU_ITEMS,
|
|
21
|
+
bU as OASIS_TOOLBAR_ITEMS,
|
|
22
|
+
bV as OasisEditorAppLazy,
|
|
23
|
+
bW as OasisEditorContainer,
|
|
24
|
+
bE as OasisEditorLoading,
|
|
25
|
+
bX as PluginCollection,
|
|
26
|
+
bY as Popover,
|
|
27
|
+
bZ as RIBBON_TABS,
|
|
28
|
+
b_ as RIBBON_TAB_DEFINITIONS,
|
|
29
|
+
b$ as Select,
|
|
30
|
+
c0 as SelectField,
|
|
31
|
+
c1 as Separator,
|
|
32
|
+
c2 as SidePanel,
|
|
33
|
+
c3 as SidePanelBody,
|
|
34
|
+
c4 as SidePanelFooter,
|
|
35
|
+
c5 as SidePanelHeader,
|
|
36
|
+
c6 as SplitButton,
|
|
37
|
+
bd as Tabs,
|
|
38
|
+
c7 as TextField,
|
|
39
|
+
bD as Toolbar,
|
|
40
|
+
c8 as ToolbarButton,
|
|
41
|
+
bK2 as ToolbarColorPicker,
|
|
42
|
+
bP2 as ToolbarGridPicker,
|
|
43
|
+
bR2 as ToolbarMenu,
|
|
44
|
+
b$2 as ToolbarSelect,
|
|
45
|
+
c12 as ToolbarSeparator,
|
|
46
|
+
c62 as ToolbarSplitButton,
|
|
47
|
+
aR as commandRefName,
|
|
48
|
+
aL as createDefaultToolbarPreset,
|
|
49
|
+
c9 as createEditorCommandBus,
|
|
50
|
+
ca as createOasisEditor,
|
|
51
|
+
cb as createOasisEditorContainer,
|
|
52
|
+
aO as createToolbarRegistry,
|
|
53
|
+
cc as mount,
|
|
54
|
+
cd as registerToolbarRenderer,
|
|
55
|
+
aQ as resolveCommandRef
|
|
56
56
|
};
|