devexpress-richedit 24.1.11-build-25065-0103 → 24.1.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.
@@ -25480,6 +25480,7 @@ class LineNumberingProperties {
25480
25480
 
25481
25481
 
25482
25482
 
25483
+
25483
25484
  class SectionProperties {
25484
25485
  constructor() {
25485
25486
  this.margins = new margins/* Margins */.m(1440, 1440, 1440, 1440);
@@ -25497,6 +25498,8 @@ class SectionProperties {
25497
25498
  this.firstPageNumber = -1;
25498
25499
  this.continueNumbering = true;
25499
25500
  this.lineNumbering = new LineNumberingProperties();
25501
+ this.footNote = NoteProperties.createDefault();
25502
+ this.endNote = NoteProperties.createDefault();
25500
25503
  }
25501
25504
  static createSimpleSectionProperties(width, height) {
25502
25505
  const simpleSectionProperties = new SectionProperties();
@@ -25539,6 +25542,8 @@ class SectionProperties {
25539
25542
  else
25540
25543
  this.columnsInfo = obj.columnsInfo;
25541
25544
  this.lineNumbering.copyFrom(obj.lineNumbering);
25545
+ this.footNote.copyFrom(obj.footNote);
25546
+ this.endNote.copyFrom(obj.endNote);
25542
25547
  this.equalWidthColumns = obj.equalWidthColumns;
25543
25548
  this.marginBottom = obj.marginBottom;
25544
25549
  this.marginLeft = obj.marginLeft;
@@ -107634,19 +107639,33 @@ ResizeBoxListener.directionToSource = {
107634
107639
 
107635
107640
  ;// CONCATENATED MODULE: ./src/common/utils/size-utils.ts
107636
107641
  class SizeUtils {
107637
- static getClientWidth(element) {
107642
+ static getWidthInfo(element) {
107643
+ const offsetSize = SizeUtils.getOffsetWidth(element);
107638
107644
  const style = getComputedStyle(element);
107639
- const offset = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth) + parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
107640
- const sizeWithScrollBar = SizeUtils.getOffsetWidth(element) - offset;
107645
+ const inset = parseCssValue(style.borderLeftWidth)
107646
+ + parseCssValue(style.borderRightWidth)
107647
+ + parseCssValue(style.paddingLeft)
107648
+ + parseCssValue(style.paddingRight);
107649
+ const sizeWithScrollBar = offsetSize - inset;
107641
107650
  const scrollBarSize = Math.round(sizeWithScrollBar) - element.clientWidth;
107642
- return sizeWithScrollBar - scrollBarSize;
107651
+ return new DimensionInfo(offsetSize, sizeWithScrollBar - scrollBarSize, scrollBarSize);
107643
107652
  }
107644
- static getClientHeight(element) {
107653
+ static getClientWidth(element) {
107654
+ return this.getWidthInfo(element).clientSize;
107655
+ }
107656
+ static getHeightInfo(element) {
107657
+ const offsetSize = SizeUtils.getOffsetHeight(element);
107645
107658
  const style = getComputedStyle(element);
107646
- const offset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth) + parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
107647
- const sizeWithScrollBar = SizeUtils.getOffsetHeight(element) - offset;
107659
+ const inset = parseCssValue(style.borderTopWidth)
107660
+ + parseCssValue(style.borderBottomWidth)
107661
+ + parseCssValue(style.paddingTop)
107662
+ + parseCssValue(style.paddingBottom);
107663
+ const sizeWithScrollBar = offsetSize - inset;
107648
107664
  const scrollBarSize = Math.round(sizeWithScrollBar) - element.clientHeight;
107649
- return sizeWithScrollBar - scrollBarSize;
107665
+ return new DimensionInfo(offsetSize, sizeWithScrollBar - scrollBarSize, scrollBarSize);
107666
+ }
107667
+ static getClientHeight(element) {
107668
+ return this.getHeightInfo(element).clientSize;
107650
107669
  }
107651
107670
  static getOffsetSize(element) {
107652
107671
  return element.getBoundingClientRect();
@@ -107658,6 +107677,16 @@ class SizeUtils {
107658
107677
  return SizeUtils.getOffsetSize(element).height;
107659
107678
  }
107660
107679
  }
107680
+ function parseCssValue(value) {
107681
+ return value ? parseFloat(value) : 0;
107682
+ }
107683
+ class DimensionInfo {
107684
+ constructor(offsetSize, clientSize, scrollbarSize) {
107685
+ this.offsetSize = offsetSize;
107686
+ this.clientSize = clientSize;
107687
+ this.scrollbarSize = scrollbarSize;
107688
+ }
107689
+ }
107661
107690
 
107662
107691
  ;// CONCATENATED MODULE: ./src/common/canvas/canvas-manager.ts
107663
107692
 
@@ -108135,18 +108164,8 @@ class CanvasScrollManager {
108135
108164
  this.updateScrollVisibility();
108136
108165
  }
108137
108166
  updateScrollVisibility() {
108138
- if (!this.scrollMeasurer) {
108139
- this.scrollMeasurer = document.createElement("div");
108140
- this.scrollMeasurer.style.position = "absolute";
108141
- this.scrollMeasurer.style.top = "0";
108142
- this.scrollMeasurer.style.bottom = "0";
108143
- this.scrollMeasurer.style.right = "0";
108144
- this.scrollMeasurer.style.left = "0";
108145
- }
108146
- this.canvas.appendChild(this.scrollMeasurer);
108147
108167
  const prevScrollYVisibility = this.sizes.scrollYVisible;
108148
- this.sizes.updateScrollVisibility(this.scrollMeasurer.offsetWidth, this.scrollMeasurer.offsetHeight);
108149
- this.canvas.removeChild(this.scrollMeasurer);
108168
+ this.sizes.updateScrollVisibility(this.canvas);
108150
108169
  if (prevScrollYVisibility !== this.sizes.scrollYVisible && this.horizontalRuler)
108151
108170
  this.horizontalRuler.adjust();
108152
108171
  }
@@ -108221,6 +108240,7 @@ class CanvasScrollManager {
108221
108240
 
108222
108241
 
108223
108242
 
108243
+
108224
108244
  class CanvasSizeInfo {
108225
108245
  constructor() {
108226
108246
  this.topSpacing = -1;
@@ -108237,7 +108257,7 @@ class CanvasSizeInfo {
108237
108257
  this.pageVerticalInfo.init(dom.DomUtils.getCurrentStyle(page));
108238
108258
  this.topSpacing = this.pageVerticalInfo.topPageBorderWidth + this.pageVerticalInfo.topMargin;
108239
108259
  this.betweenPageSpacing = this.pageVerticalInfo.betweenPageSpacing;
108240
- this.setVisibleAreaSize(canvas.offsetWidth, canvas.offsetHeight);
108260
+ this.setVisibleAreaSize(SizeUtils.getClientWidth(canvas), SizeUtils.getClientHeight(canvas));
108241
108261
  }
108242
108262
  findPageIndexByOffsetY(pages, offsetY) {
108243
108263
  return Math.max(0, search.SearchUtils.normedInterpolationIndexOf(pages, (p) => this.getPageOffsetY(p), offsetY));
@@ -108250,22 +108270,27 @@ class CanvasSizeInfo {
108250
108270
  this.visibleAreaSize.height = height;
108251
108271
  }
108252
108272
  getVisibleAreaWidth(includeScrollBars) {
108253
- if (includeScrollBars)
108273
+ if (!includeScrollBars)
108254
108274
  return this.visibleAreaSize.width;
108255
- return this.scrollYVisible ? this.visibleAreaSize.width - this.scrollWidth : this.visibleAreaSize.width;
108275
+ return this.scrollYVisible ? this.visibleAreaSize.width + this.scrollWidth : this.visibleAreaSize.width;
108256
108276
  }
108257
108277
  getVisibleAreaHeight(includeScrollBars) {
108258
- if (includeScrollBars)
108278
+ if (!includeScrollBars)
108259
108279
  return this.visibleAreaSize.height;
108260
- return this.scrollXVisible ? this.visibleAreaSize.height - this.scrollWidth : this.visibleAreaSize.height;
108280
+ return this.scrollXVisible ? this.visibleAreaSize.height + this.scrollWidth : this.visibleAreaSize.height;
108261
108281
  }
108262
- updateScrollVisibility(measurerWidth, measurerHeight) {
108263
- this.scrollXVisible = measurerHeight < this.visibleAreaSize.height;
108264
- this.scrollYVisible = measurerWidth < this.visibleAreaSize.width;
108282
+ updateScrollVisibility(canvas) {
108283
+ this.scrollXVisible = SizeUtils.getHeightInfo(canvas).scrollbarSize > 0;
108284
+ this.scrollYVisible = SizeUtils.getWidthInfo(canvas).scrollbarSize > 0;
108265
108285
  }
108266
- isChanged(canvas) {
108267
- return this.visibleAreaSize.width !== canvas.offsetWidth ||
108268
- this.visibleAreaSize.height !== canvas.offsetHeight;
108286
+ updateSize(canvas) {
108287
+ const width = SizeUtils.getClientWidth(canvas);
108288
+ const height = SizeUtils.getClientHeight(canvas);
108289
+ if (this.visibleAreaSize.width !== width || this.visibleAreaSize.height !== height) {
108290
+ this.setVisibleAreaSize(width, height);
108291
+ return true;
108292
+ }
108293
+ return false;
108269
108294
  }
108270
108295
  }
108271
108296
 
@@ -109529,7 +109554,6 @@ class SelectionRenderer extends SelectionRendererBase {
109529
109554
 
109530
109555
 
109531
109556
 
109532
-
109533
109557
 
109534
109558
 
109535
109559
  class ViewManager {
@@ -109589,11 +109613,8 @@ class ViewManager {
109589
109613
  this.canvasListener.onCanvasScroll();
109590
109614
  }
109591
109615
  }
109592
- else if (this.sizes.isChanged(this.canvas)) {
109593
- const size = SizeUtils.getOffsetSize(this.canvas);
109594
- this.sizes.setVisibleAreaSize(size.width, size.height);
109616
+ else if (this.sizes.updateSize(this.canvas))
109595
109617
  this.scroll.onCanvasSizeChanged();
109596
- }
109597
109618
  }
109598
109619
  NotifyPagesReady(pageChanges) {
109599
109620
  this.canvasListener.onPagesReady(pageChanges);
@@ -141567,7 +141588,7 @@ class ClientRichEdit {
141567
141588
  this.contextMenuSettings = settings.contextMenuSettings;
141568
141589
  this.fullScreenHelper = new FullScreenHelper(element);
141569
141590
  if (true)
141570
- external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVZIWXphbFZEUnpoV1ZUSTRWMUZOYkVaUlJrVlRVU0lLZlE9PS5QMlRnaUloY2ZZcHl5Vi9KTjFoL3ptVWtUaGh5MW1Za0NpbUdzVHJ4alpTRlRGUENjQ3h6aS9nZXY0L3VhMU8wUDQyYlJKaGZFRnFPSTI1WE95YmZ1UW5FRTFMeGFrWDFuQkRMOVdPYTNTcVFDQ3dSQnJycnowcmZLTUtzS2Rma08xSlVWZz09In0=')));
141591
+ external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVRXOVZka0ZEZWsxcVRsTmFiMjEyTmpsYVRGbHBlQ0lLZlE9PS5WN0NsMFNmUGxxMmpzWklzVVRDYSt3bUJ5VTRwazl1OFk1OVNMUEJWdWVRL2lrZWRHd3ljZDMrakpRejZ1cG9Sa3lPTGNuOEJJSitqa3MycGkyaHhyZjBRNkJoUW5zbjdZMDF5OXY5MWpWeDVVTW5XZWZaUlR6bWllK1M4TGl5OTVoUjJIQT09In0=')));
141571
141592
  this.prepareElement(element, settings);
141572
141593
  this.initDefaultFontsAndStyles();
141573
141594
  this.initBars(settings.ribbon, settings.fonts);