@midscene/core 0.1.0 → 0.1.2

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/lib/utils.js CHANGED
@@ -103,7 +103,7 @@ function writeDumpFile(opts) {
103
103
  gitIgnorePath,
104
104
  `${gitIgnoreContent}
105
105
  # MidScene.js dump files
106
- ${logDirName}/midscene-report
106
+ ${logDirName}/report
107
107
  ${logDirName}/dump-logger
108
108
  `,
109
109
  "utf-8"
@@ -1,6 +1,5 @@
1
- import { Buffer } from 'buffer';
1
+ import { Buffer } from 'node:buffer';
2
2
  import { S as Size, R as Rect, g as UISection, U as UIContext, t as Color } from './types-1f7912d5.js';
3
- import { Buffer as Buffer$1 } from 'node:buffer';
4
3
  import 'openai/resources';
5
4
 
6
5
  /**
@@ -79,7 +78,7 @@ declare function calculateNewDimensions(originalWidth: number, originalHeight: n
79
78
  * @param image - The image to be trimmed. This can be a file path or a Buffer object containing the image data
80
79
  * @returns A Promise that resolves to an object containing the trimming information. If the image does not need to be trimmed, this object will be null
81
80
  */
82
- declare function trimImage(image: string | Buffer$1): Promise<{
81
+ declare function trimImage(image: string | Buffer): Promise<{
83
82
  trimOffsetLeft: number;
84
83
  trimOffsetTop: number;
85
84
  width: number;
@@ -101,7 +100,7 @@ declare function trimImage(image: string | Buffer$1): Promise<{
101
100
  * @returns A Promise that resolves to a rectangle object representing the aligned coordinates
102
101
  * @throws Error if there is an error during image processing
103
102
  */
104
- declare function alignCoordByTrim(image: string | Buffer$1, center: Rect): Promise<Rect>;
103
+ declare function alignCoordByTrim(image: string | Buffer, centerRect: Rect): Promise<Rect>;
105
104
 
106
105
  /**
107
106
  * Composes a section diagram based on the given sections and context
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "Hello, It's MidScene",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "jsnext:source": "./src/index.ts",
6
6
  "main": "./dist/lib/index.js",
7
7
  "module": "./dist/es/index.js",