devexpress-richedit 24.2.3 → 24.2.4-build-24355-1908
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/bin/gulpfile.js +1 -1
- package/bin/index-custom.js +1 -1
- package/bin/localization-builder.js +1 -1
- package/bin/nspell-index.js +1 -1
- package/bin/nspell.webpack.config.js +1 -1
- package/bin/webpack-externals.js +1 -1
- package/bin/webpack.config.js +1 -1
- package/dist/dx.richedit.d.ts +1 -1
- package/dist/dx.richedit.js +131 -2560
- package/dist/dx.richedit.min.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/common/layout-formatter/formatter/utils/restart-preparer.js +2 -2
- package/lib/common/model/caches/images.d.ts +1 -0
- package/lib/common/model/caches/images.js +5 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -127,8 +127,8 @@ export class RestartPreparer {
|
|
127
127
|
const ancPosInfo = this.manager.layout.anchorObjectsPositionInfo;
|
128
128
|
const rowPos = this.manager.invalidator.getStartModelPositionOfRow(lp);
|
129
129
|
lp.page.anchoredObjectHolder.objects = NumberMapUtils.reducedMap(lp.page.anchoredObjectHolder.objects, (obj) => {
|
130
|
-
if (ancPosInfo.getPosition(obj.objectId) >= rowPos) {
|
131
|
-
if (obj.getType()
|
130
|
+
if (ancPosInfo.getPosition(obj.objectId) >= rowPos && lp.pageArea.subDocument.id === obj.belongsToSubDocId) {
|
131
|
+
if (obj.getType() === LayoutBoxType.AnchorTextBox) {
|
132
132
|
const id = obj.internalSubDocId;
|
133
133
|
delete lp.page.otherPageAreas[id];
|
134
134
|
pageChange.otherPageAreaChanges.push(new PageAreaChange(id, LayoutChangeType.Deleted));
|
@@ -55,18 +55,21 @@ export class CacheImageInfo {
|
|
55
55
|
const data = this.getImageHeader();
|
56
56
|
if (data[0] === 0xff && data[1] === 0xd8)
|
57
57
|
return true;
|
58
|
-
else if (data[0] === 0x89 &&
|
58
|
+
else if (data[0] === 0x89 && this.toString(data, 1, 4) === 'PNG')
|
59
59
|
return true;
|
60
60
|
}
|
61
61
|
return false;
|
62
62
|
}
|
63
|
+
toString(data, start, end) {
|
64
|
+
return Array.from(data.slice(start, end)).map(b => String.fromCharCode(b)).join("");
|
65
|
+
}
|
63
66
|
setPdfCompatibleBase64(val) {
|
64
67
|
this._convertedBase64 = Base64Utils.normalizeToDataUrl(val, "image/png");
|
65
68
|
}
|
66
69
|
getImageHeader() {
|
67
70
|
const match = /^data:.+;base64,(.*)$/.exec(this.base64);
|
68
71
|
const header = match[1].substring(0, 8);
|
69
|
-
return
|
72
|
+
return Uint8Array.from(atob(header), c => c.charCodeAt(0));
|
70
73
|
}
|
71
74
|
}
|
72
75
|
CacheImageInfo.emptyPicDimension = UnitConverter.pixelsToTwips(32);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devexpress-richedit",
|
3
|
-
"version": "24.2.
|
3
|
+
"version": "24.2.4-build-24355-1908",
|
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.
|
18
|
-
"devextreme-dist": "24.2.
|
17
|
+
"devextreme": "24.2.4-build-24354-1936",
|
18
|
+
"devextreme-dist": "24.2.4-build-24354-1936"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"jszip": "~3.10.1",
|