@mce/bigesj 0.15.24 → 0.15.26

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.
@@ -0,0 +1 @@
1
+ export declare const editorOptions: Partial<Mce.Options>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { plugin } from './plugin';
2
2
  export * from './composables';
3
3
  export * from './convert';
4
+ export * from './editorOptions';
4
5
  export * from './loaders';
5
6
  export * from './plugin';
6
7
  export default plugin;
package/dist/index.js CHANGED
@@ -1885,6 +1885,26 @@ async function setupFonts(editor, api) {
1885
1885
  await loadBigeFonts(api.fonts, true);
1886
1886
  });
1887
1887
  }
1888
+ const editorOptions = {
1889
+ checkerboard: true,
1890
+ checkerboardStyle: "grid",
1891
+ pixelGrid: true,
1892
+ camera: true,
1893
+ ruler: true,
1894
+ scrollbar: true,
1895
+ statusbar: true,
1896
+ frameGap: 48,
1897
+ frameOutline: true,
1898
+ zoomToFit: "width",
1899
+ typographyStrategy: "autoHeight",
1900
+ locale: { locale: "zhHans" },
1901
+ defaultFont: { family: "SourceHanSansCN-Normal", src: "https://bige.cdn.bcebos.com/files/202006/cBNrzOsE_rAQB.woff" },
1902
+ transformControls: {
1903
+ handleShape: "circle",
1904
+ handleStrategy: "point",
1905
+ rotator: true
1906
+ }
1907
+ };
1888
1908
  export {
1889
1909
  bidTidLoader,
1890
1910
  bigeLoader,
@@ -1900,6 +1920,7 @@ export {
1900
1920
  convertTextStyle,
1901
1921
  croppingToCropRect,
1902
1922
  plugin as default,
1923
+ editorOptions,
1903
1924
  getStyle,
1904
1925
  getTextContents,
1905
1926
  parseAnimations,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/bigesj",
3
3
  "type": "module",
4
- "version": "0.15.24",
4
+ "version": "0.15.26",
5
5
  "description": "Plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "modern-openxml": "^1.10.1"
50
50
  },
51
51
  "devDependencies": {
52
- "mce": "0.15.24"
52
+ "mce": "0.15.26"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "mce": "^0"