@univerjs/engine-render 0.4.2-nightly.202411041606 → 0.4.2-nightly.202411061606
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/lib/es/index.js +4 -5
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/es/index.js
CHANGED
|
@@ -23084,7 +23084,7 @@ function hyphenConfig(paragraphStyle, sectionBreakConfig) {
|
|
|
23084
23084
|
}
|
|
23085
23085
|
__name(hyphenConfig, "hyphenConfig");
|
|
23086
23086
|
function shaping(ctx, content, viewModel, paragraphNode, sectionBreakConfig, useOpenType = !1) {
|
|
23087
|
-
var _a10;
|
|
23087
|
+
var _a10, _b;
|
|
23088
23088
|
const {
|
|
23089
23089
|
gridType = GridType.LINES,
|
|
23090
23090
|
charSpace = 0,
|
|
@@ -23148,8 +23148,7 @@ function shaping(ctx, content, viewModel, paragraphNode, sectionBreakConfig, use
|
|
|
23148
23148
|
if (char === DataStreamTreeTokenType.TAB) {
|
|
23149
23149
|
const charSpaceApply = getCharSpaceApply(charSpace, defaultTabStop, gridType, snapToGrid);
|
|
23150
23150
|
newGlyph = createSkeletonTabGlyph(config, charSpaceApply);
|
|
23151
|
-
} else
|
|
23152
|
-
newGlyph = createSkeletonLetterGlyph(char, config);
|
|
23151
|
+
} else char === DataStreamTreeTokenType.PARAGRAPH && ((_b = sectionBreakConfig.renderConfig) == null ? void 0 : _b.zeroWidthParagraphBreak) === BooleanNumber.TRUE ? newGlyph = createSkeletonLetterGlyph(char, config, 0) : newGlyph = createSkeletonLetterGlyph(char, config);
|
|
23153
23152
|
shapedGlyphs.push(newGlyph), i += char.length, src = src.substring(char.length);
|
|
23154
23153
|
} else if (startWithEmoji(src)) {
|
|
23155
23154
|
const { step, glyphGroup } = emojiHandler(
|
|
@@ -24638,12 +24637,12 @@ let DocumentSkeleton = _DocumentSkeleton;
|
|
|
24638
24637
|
function createDocumentModelWithStyle(content, textStyle, config = {}) {
|
|
24639
24638
|
const contentLength = content.length, {
|
|
24640
24639
|
textRotation,
|
|
24641
|
-
paddingData
|
|
24640
|
+
paddingData,
|
|
24642
24641
|
horizontalAlign = HorizontalAlign.UNSPECIFIED,
|
|
24643
24642
|
verticalAlign = VerticalAlign.UNSPECIFIED,
|
|
24644
24643
|
wrapStrategy = WrapStrategy.UNSPECIFIED,
|
|
24645
24644
|
cellValueType
|
|
24646
|
-
} = config, { t: marginTop, r: marginRight, b: marginBottom, l: marginLeft } = paddingData, { vertexAngle, centerAngle } = convertTextRotation(textRotation), documentData = {
|
|
24645
|
+
} = config, { t: marginTop, r: marginRight, b: marginBottom, l: marginLeft } = paddingData || DEFAULT_PADDING_DATA, { vertexAngle, centerAngle } = convertTextRotation(textRotation), documentData = {
|
|
24647
24646
|
id: "d",
|
|
24648
24647
|
body: {
|
|
24649
24648
|
dataStream: `${content}${DEFAULT_EMPTY_DOCUMENT_VALUE}`,
|