assistsx-js 0.1.32 → 0.1.33
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/AssistsX.d.ts +2 -0
- package/dist/AssistsX.js +2 -1
- package/dist/AssistsXAsync.js +2 -1
- package/package.json +1 -1
- package/src/AssistsX.ts +4 -0
- package/src/AssistsXAsync.ts +2 -0
package/dist/AssistsX.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export interface WebFloatingWindowOptions {
|
|
|
51
51
|
showTopOperationArea?: boolean;
|
|
52
52
|
/** Whether to show bottom operation area (zoom, back/forward/refresh, etc.) */
|
|
53
53
|
showBottomOperationArea?: boolean;
|
|
54
|
+
/** Background color: hex string (e.g. "#ffffff") or Android color int */
|
|
55
|
+
backgroundColor?: string | number;
|
|
54
56
|
}
|
|
55
57
|
export declare const callbacks: Map<string, (data: string) => void>;
|
|
56
58
|
export declare const accessibilityEventListeners: AccessibilityEventListener[];
|
package/dist/AssistsX.js
CHANGED
|
@@ -240,7 +240,7 @@ export class AssistsX {
|
|
|
240
240
|
return data.value;
|
|
241
241
|
}
|
|
242
242
|
static async loadWebViewOverlay(url, options = {}) {
|
|
243
|
-
const { initialWidth, initialHeight, initialX, initialY, minWidth, minHeight, maxWidth, maxHeight, initialCenter, showTopOperationArea, showBottomOperationArea, timeout, } = options;
|
|
243
|
+
const { initialWidth, initialHeight, initialX, initialY, minWidth, minHeight, maxWidth, maxHeight, initialCenter, showTopOperationArea, showBottomOperationArea, backgroundColor, timeout, } = options;
|
|
244
244
|
const response = await this.asyncCall(CallMethod.loadWebViewOverlay, {
|
|
245
245
|
args: {
|
|
246
246
|
url,
|
|
@@ -255,6 +255,7 @@ export class AssistsX {
|
|
|
255
255
|
initialCenter,
|
|
256
256
|
showTopOperationArea,
|
|
257
257
|
showBottomOperationArea,
|
|
258
|
+
backgroundColor,
|
|
258
259
|
},
|
|
259
260
|
timeout,
|
|
260
261
|
});
|
package/dist/AssistsXAsync.js
CHANGED
|
@@ -203,7 +203,7 @@ export class AssistsXAsync {
|
|
|
203
203
|
return data.value;
|
|
204
204
|
}
|
|
205
205
|
static async loadWebViewOverlay(url, options = {}) {
|
|
206
|
-
const { initialWidth, initialHeight, initialX, initialY, minWidth, minHeight, maxWidth, maxHeight, initialCenter, showTopOperationArea, showBottomOperationArea, timeout, } = options;
|
|
206
|
+
const { initialWidth, initialHeight, initialX, initialY, minWidth, minHeight, maxWidth, maxHeight, initialCenter, showTopOperationArea, showBottomOperationArea, backgroundColor, timeout, } = options;
|
|
207
207
|
const response = await this.asyncCall(CallMethod.loadWebViewOverlay, {
|
|
208
208
|
args: {
|
|
209
209
|
url,
|
|
@@ -218,6 +218,7 @@ export class AssistsXAsync {
|
|
|
218
218
|
initialCenter,
|
|
219
219
|
showTopOperationArea,
|
|
220
220
|
showBottomOperationArea,
|
|
221
|
+
backgroundColor,
|
|
221
222
|
},
|
|
222
223
|
timeout,
|
|
223
224
|
});
|
package/package.json
CHANGED
package/src/AssistsX.ts
CHANGED
|
@@ -57,6 +57,8 @@ export interface WebFloatingWindowOptions {
|
|
|
57
57
|
showTopOperationArea?: boolean;
|
|
58
58
|
/** Whether to show bottom operation area (zoom, back/forward/refresh, etc.) */
|
|
59
59
|
showBottomOperationArea?: boolean;
|
|
60
|
+
/** Background color: hex string (e.g. "#ffffff") or Android color int */
|
|
61
|
+
backgroundColor?: string | number;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
// 回调函数存储对象
|
|
@@ -353,6 +355,7 @@ export class AssistsX {
|
|
|
353
355
|
initialCenter,
|
|
354
356
|
showTopOperationArea,
|
|
355
357
|
showBottomOperationArea,
|
|
358
|
+
backgroundColor,
|
|
356
359
|
timeout,
|
|
357
360
|
} = options;
|
|
358
361
|
const response = await this.asyncCall(CallMethod.loadWebViewOverlay, {
|
|
@@ -369,6 +372,7 @@ export class AssistsX {
|
|
|
369
372
|
initialCenter,
|
|
370
373
|
showTopOperationArea,
|
|
371
374
|
showBottomOperationArea,
|
|
375
|
+
backgroundColor,
|
|
372
376
|
},
|
|
373
377
|
timeout,
|
|
374
378
|
});
|
package/src/AssistsXAsync.ts
CHANGED
|
@@ -363,6 +363,7 @@ export class AssistsXAsync {
|
|
|
363
363
|
initialCenter,
|
|
364
364
|
showTopOperationArea,
|
|
365
365
|
showBottomOperationArea,
|
|
366
|
+
backgroundColor,
|
|
366
367
|
timeout,
|
|
367
368
|
} = options;
|
|
368
369
|
const response = await this.asyncCall(CallMethod.loadWebViewOverlay, {
|
|
@@ -379,6 +380,7 @@ export class AssistsXAsync {
|
|
|
379
380
|
initialCenter,
|
|
380
381
|
showTopOperationArea,
|
|
381
382
|
showBottomOperationArea,
|
|
383
|
+
backgroundColor,
|
|
382
384
|
},
|
|
383
385
|
timeout,
|
|
384
386
|
});
|