devexpress-richedit 24.2.8-build-25149-0115 → 24.2.8-build-25156-0116

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.
@@ -99,7 +99,7 @@ export declare class Field {
99
99
  static correctIntervalDueToFieldsWithoutUiChecks(subDocument: SubDocument, newInterval: FixedInterval): FixedInterval;
100
100
  private static correctIntervalDueToFieldsCaseSelectionCollapsed;
101
101
  static correctIntervalDueToFields(subDocument: SubDocument, newInterval: FixedInterval): number;
102
- private static isFloatingObjectSelected;
102
+ private static isResizableObjectSelected;
103
103
  static correctWhenPositionInStartCode(fields: Field[], position: number): number;
104
104
  clone(subDocument: SubDocument): Field;
105
105
  }
@@ -287,15 +287,16 @@ export class Field {
287
287
  return newInterval.start = Field.correctIntervalDueToFieldsCaseSelectionCollapsed(subDocument.fields, newInterval.start);
288
288
  const indexesInterval = Field.correctIntervalDueToFieldsWithoutUiChecks(subDocument, newInterval);
289
289
  ListUtils.forEach(fields, (field) => {
290
- if (field.getResultInterval().equals(newInterval) && !this.isFloatingObjectSelected(subDocument, newInterval))
290
+ if (field.getResultInterval().equals(newInterval) && !this.isResizableObjectSelected(subDocument, newInterval))
291
291
  newInterval.expand(field.getAllFieldInterval());
292
292
  }, indexesInterval.start, indexesInterval.end);
293
293
  }
294
- static isFloatingObjectSelected(subDocument, interval) {
294
+ static isResizableObjectSelected(subDocument, interval) {
295
295
  if (interval.length !== 1)
296
296
  return false;
297
297
  const run = subDocument.getRunByPosition(interval.start);
298
- return run && (run.getType() == RunType.AnchoredPictureRun || run.getType() == RunType.AnchoredTextBoxRun);
298
+ const runType = run && run.getType();
299
+ return runType == RunType.AnchoredPictureRun || runType == RunType.AnchoredTextBoxRun || runType == RunType.InlinePictureRun;
299
300
  }
300
301
  static correctWhenPositionInStartCode(fields, position) {
301
302
  if (fields.length < 1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devexpress-richedit",
3
- "version": "24.2.8-build-25149-0115",
3
+ "version": "24.2.8-build-25156-0116",
4
4
  "homepage": "https://www.devexpress.com/",
5
5
  "bugs": "https://www.devexpress.com/support/",
6
6
  "author": "Developer Express Inc.",
@@ -14,8 +14,8 @@
14
14
  "build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
15
15
  },
16
16
  "peerDependencies": {
17
- "devextreme": "24.2.8-build-25148-1935",
18
- "devextreme-dist": "24.2.8-build-25148-1935"
17
+ "devextreme": "24.2.8-build-25155-1935",
18
+ "devextreme-dist": "24.2.8-build-25155-1935"
19
19
  },
20
20
  "dependencies": {
21
21
  "jszip": "~3.10.1",