@tycoworks/tycoslide 0.14.0 → 0.14.1
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/engine/dom.js
CHANGED
|
@@ -346,9 +346,6 @@ export function rebuildParagraphs(shape, paragraphs, startIndex, relation, shape
|
|
|
346
346
|
continue;
|
|
347
347
|
const isBullet = para.bullet !== undefined;
|
|
348
348
|
const inLevel = para.bullet?.level ?? 0;
|
|
349
|
-
// Skip fully-empty text (matches previous fillText behavior).
|
|
350
|
-
if (para.runs.length === 1 && !para.runs[0].text)
|
|
351
|
-
continue;
|
|
352
349
|
// Bulleted content needs a bulleted specimen to model on. A plain-only shape
|
|
353
350
|
// (e.g. a designer "description" line, buNone) accepts plain text only, so
|
|
354
351
|
// bulleting it is an authoring error — fail fast rather than emit a run with
|
|
@@ -83,7 +83,9 @@ export function computeGeometry(frame, imgW, imgH, fit) {
|
|
|
83
83
|
if (scaleRatio > 1) {
|
|
84
84
|
warnings.push(`enlarged to ${Math.round(scaleRatio * 100)}% of native — will look soft; supply a larger image`);
|
|
85
85
|
}
|
|
86
|
-
else if (scaleRatio < MIN_SCALE) {
|
|
86
|
+
else if (scaleRatio < MIN_SCALE && fit !== ImageFit.ScaleDown) {
|
|
87
|
+
// An icon's contract is "never enlarge"; landing small in an icon well is
|
|
88
|
+
// its normal use, so only image and background warn about shrinking.
|
|
87
89
|
warnings.push(`shrunk to ${Math.round(scaleRatio * 100)}% of native — the slot is far smaller than the image`);
|
|
88
90
|
}
|
|
89
91
|
const shownW = imgW * scale;
|
package/package.json
CHANGED