@ones-editor/editor 2.2.19-beta.4 → 2.2.19

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/index.js CHANGED
@@ -10665,7 +10665,7 @@ var __publicField = (obj, key, value) => {
10665
10665
  __publicField(this, "getScrollingDirection", (e2) => {
10666
10666
  const { x, y } = e2;
10667
10667
  const { top, bottom, left, right } = this.scrollDomInfo;
10668
- const edge = this.edge;
10668
+ const { edge } = this.options;
10669
10669
  if (edge.top && y <= edge.top + top) {
10670
10670
  return "top";
10671
10671
  }
@@ -10682,7 +10682,7 @@ var __publicField = (obj, key, value) => {
10682
10682
  });
10683
10683
  __publicField(this, "handleMouseMove", (e2) => {
10684
10684
  var _a;
10685
- const { scrollElement, onDirectionChange } = this.options;
10685
+ const { scrollElement, step = 10, onDirectionChange } = this.options;
10686
10686
  const direction = this.getScrollingDirection(e2);
10687
10687
  if (direction) {
10688
10688
  if (this.scrolling) {
@@ -10691,7 +10691,7 @@ var __publicField = (obj, key, value) => {
10691
10691
  logger$4z.debug(`scroll direction: ${direction}`);
10692
10692
  this.cancelScroll = continuousScroll(scrollElement, {
10693
10693
  direction,
10694
- step: this.step
10694
+ step
10695
10695
  });
10696
10696
  onDirectionChange == null ? void 0 : onDirectionChange(direction);
10697
10697
  this.scrolling = true;
@@ -10703,12 +10703,6 @@ var __publicField = (obj, key, value) => {
10703
10703
  this.options = options;
10704
10704
  this.scrollDomInfo = this.getScrollDomInfo();
10705
10705
  }
10706
- get edge() {
10707
- return window.edge || 50;
10708
- }
10709
- get step() {
10710
- return window.step || 10;
10711
- }
10712
10706
  getScrollDomInfo() {
10713
10707
  const { scrollElement } = this.options;
10714
10708
  const rect = scrollElement.getBoundingClientRect();
@@ -28216,9 +28210,10 @@ var __publicField = (obj, key, value) => {
28216
28210
  this.autoScroll = new AutoScroll({
28217
28211
  scrollElement: editor.scrollContainer,
28218
28212
  edge: {
28219
- top: 50,
28220
- bottom: 50
28221
- }
28213
+ top: 5,
28214
+ bottom: 5
28215
+ },
28216
+ step: 30
28222
28217
  });
28223
28218
  }
28224
28219
  isSelecting() {
@@ -88496,7 +88491,7 @@ ${data2.flowchartText}
88496
88491
  }
88497
88492
  }
88498
88493
  });
88499
- editor.version = "2.2.19-beta.4";
88494
+ editor.version = "2.2.19";
88500
88495
  return editor;
88501
88496
  }
88502
88497
  function isDoc(doc2) {
@@ -88591,7 +88586,7 @@ ${data2.flowchartText}
88591
88586
  });
88592
88587
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88593
88588
  OnesEditorToolbar.register(editor);
88594
- editor.version = "2.2.19-beta.4";
88589
+ editor.version = "2.2.19";
88595
88590
  return editor;
88596
88591
  }
88597
88592
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.2.19-beta.4",
3
+ "version": "2.2.19",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",