@lvce-editor/rpc-registry 6.2.0 → 6.3.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.
package/dist/index.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ declare const registerMockRpc$8: (commandMap: Record<string, any>) => MockRpc;
|
|
|
216
216
|
declare const dispose$16: () => Promise<void>, invoke$16: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$16: (method: string, ...params: readonly unknown[]) => Promise<any>, set$16: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
217
217
|
declare const registerMockRpc$9: (commandMap: Record<string, any>) => MockRpc;
|
|
218
218
|
declare const measureTextWidth: (text: string, fontWeight: number, fontSize: number, fontFamily: string, letterSpacing: number, isMonoSpaceFont: boolean, charWidth: number) => Promise<number>;
|
|
219
|
+
declare const measureTextWidths: (texts: readonly string[], fontWeight: number, fontSize: number, fontFamily: string, letterSpacing: number, isMonoSpaceFont: boolean, charWidth: number) => Promise<readonly number[]>;
|
|
219
220
|
declare const dispose$17: () => Promise<void>, invoke$17: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$17: (method: string, ...params: readonly unknown[]) => Promise<any>, set$17: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
220
221
|
declare const search: (options: any) => Promise<any>;
|
|
221
222
|
declare const searchIncremental: (options: any) => Promise<any>;
|
|
@@ -303,7 +304,7 @@ declare namespace SourceControlWorker {
|
|
|
303
304
|
export { dispose$15 as dispose, invoke$15 as invoke, invokeAndTransfer$15 as invokeAndTransfer, registerMockRpc$8 as registerMockRpc, set$15 as set };
|
|
304
305
|
}
|
|
305
306
|
declare namespace TextMeasurementWorker {
|
|
306
|
-
export { dispose$16 as dispose, invoke$16 as invoke, invokeAndTransfer$16 as invokeAndTransfer, measureTextWidth, registerMockRpc$9 as registerMockRpc, set$16 as set };
|
|
307
|
+
export { dispose$16 as dispose, invoke$16 as invoke, invokeAndTransfer$16 as invokeAndTransfer, measureTextWidth, measureTextWidths, registerMockRpc$9 as registerMockRpc, set$16 as set };
|
|
307
308
|
}
|
|
308
309
|
declare namespace SearchProcess {
|
|
309
310
|
export { dispose$17 as dispose, getIncrementalResults, invoke$17 as invoke, invokeAndTransfer$17 as invokeAndTransfer, search, searchIncremental, set$17 as set };
|
|
@@ -10,3 +10,6 @@ export const registerMockRpc = (commandMap) => {
|
|
|
10
10
|
export const measureTextWidth = async (text, fontWeight, fontSize, fontFamily, letterSpacing, isMonoSpaceFont, charWidth) => {
|
|
11
11
|
return invoke('TextMeasurement.measureTextWidth', text, fontWeight, fontSize, fontFamily, letterSpacing, isMonoSpaceFont, charWidth);
|
|
12
12
|
};
|
|
13
|
+
export const measureTextWidths = async (texts, fontWeight, fontSize, fontFamily, letterSpacing, isMonoSpaceFont, charWidth) => {
|
|
14
|
+
return invoke('TextMeasurement.measureTextWidths', texts, fontWeight, fontSize, fontFamily, letterSpacing, isMonoSpaceFont, charWidth);
|
|
15
|
+
};
|