@lvce-editor/chat-view 4.0.0 → 4.1.0
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.
|
@@ -1138,6 +1138,9 @@ const getPreference = async key => {
|
|
|
1138
1138
|
const openExternal = async uri => {
|
|
1139
1139
|
await invoke('Open.openExternal', uri);
|
|
1140
1140
|
};
|
|
1141
|
+
const measureTextBlockHeight$1 = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
1142
|
+
return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
1143
|
+
};
|
|
1141
1144
|
|
|
1142
1145
|
const toCommandId = key => {
|
|
1143
1146
|
const dotIndex = key.indexOf('.');
|
|
@@ -1260,7 +1263,7 @@ const terminate = () => {
|
|
|
1260
1263
|
};
|
|
1261
1264
|
|
|
1262
1265
|
const measureTextBlockHeight = async (text, fontFamily, fontSize, lineHeight, width) => {
|
|
1263
|
-
return
|
|
1266
|
+
return measureTextBlockHeight$1(text, fontFamily, fontSize, lineHeight, width);
|
|
1264
1267
|
};
|
|
1265
1268
|
|
|
1266
1269
|
const getComposerWidth = width => {
|