@markw65/monkeyc-optimizer 1.1.47 → 1.1.49
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/CHANGELOG.md +12 -1
- package/bin/cft-font-info.js +41 -24
- package/build/api.cjs +34 -34
- package/build/cftinfo.cjs +17 -4
- package/build/{chunk-2ATRIWWT.cjs → chunk-DZ7YMTUE.cjs} +391 -207
- package/build/optimizer.cjs +16 -16
- package/build/sdk-util.cjs +14 -14
- package/build/src/cftinfo.d.ts +21 -1
- package/build/worker-thread.cjs +3 -3
- package/package.json +1 -1
package/build/optimizer.cjs
CHANGED
|
@@ -18,28 +18,28 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var optimizer_exports = {};
|
|
20
20
|
__export(optimizer_exports, {
|
|
21
|
-
StateNodeAttributes: () =>
|
|
22
|
-
buildOptimizedProject: () =>
|
|
21
|
+
StateNodeAttributes: () => import_chunk_DZ7YMTUE.StateNodeAttributes,
|
|
22
|
+
buildOptimizedProject: () => import_chunk_DZ7YMTUE.buildOptimizedProject,
|
|
23
23
|
copyRecursiveAsNeeded: () => import_chunk_SG7ODKRM.copyRecursiveAsNeeded,
|
|
24
|
-
defaultConfig: () =>
|
|
25
|
-
display: () =>
|
|
26
|
-
generateOneConfig: () =>
|
|
27
|
-
generateOptimizedProject: () =>
|
|
28
|
-
getConfig: () =>
|
|
29
|
-
getProjectAnalysis: () =>
|
|
30
|
-
get_jungle: () =>
|
|
31
|
-
isErrorWithLocation: () =>
|
|
32
|
-
launchSimulator: () =>
|
|
33
|
-
manifestProducts: () =>
|
|
34
|
-
mctree: () =>
|
|
35
|
-
simulateProgram: () =>
|
|
24
|
+
defaultConfig: () => import_chunk_DZ7YMTUE.defaultConfig,
|
|
25
|
+
display: () => import_chunk_DZ7YMTUE.display,
|
|
26
|
+
generateOneConfig: () => import_chunk_DZ7YMTUE.generateOneConfig,
|
|
27
|
+
generateOptimizedProject: () => import_chunk_DZ7YMTUE.generateOptimizedProject,
|
|
28
|
+
getConfig: () => import_chunk_DZ7YMTUE.getConfig,
|
|
29
|
+
getProjectAnalysis: () => import_chunk_DZ7YMTUE.getProjectAnalysis,
|
|
30
|
+
get_jungle: () => import_chunk_DZ7YMTUE.get_jungle,
|
|
31
|
+
isErrorWithLocation: () => import_chunk_DZ7YMTUE.isErrorWithLocation,
|
|
32
|
+
launchSimulator: () => import_chunk_DZ7YMTUE.launchSimulator,
|
|
33
|
+
manifestProducts: () => import_chunk_DZ7YMTUE.manifestProducts,
|
|
34
|
+
mctree: () => import_chunk_DZ7YMTUE.mctree,
|
|
35
|
+
simulateProgram: () => import_chunk_DZ7YMTUE.simulateProgram
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(optimizer_exports);
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
|
|
39
39
|
var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
|
|
40
40
|
var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
|
|
41
41
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
42
|
-
(0,
|
|
42
|
+
(0, import_chunk_DZ7YMTUE.init_optimizer)();
|
|
43
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
44
|
0 && (module.exports = {
|
|
45
45
|
StateNodeAttributes,
|
package/build/sdk-util.cjs
CHANGED
|
@@ -18,25 +18,25 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var sdk_util_exports = {};
|
|
20
20
|
__export(sdk_util_exports, {
|
|
21
|
-
SectionKinds: () =>
|
|
22
|
-
appSupport: () =>
|
|
23
|
-
connectiq: () =>
|
|
24
|
-
getDeviceInfo: () =>
|
|
25
|
-
getFunctionDocumentation: () =>
|
|
26
|
-
getLanguages: () =>
|
|
27
|
-
getSdkPath: () =>
|
|
28
|
-
isWin: () =>
|
|
29
|
-
optimizeProgram: () =>
|
|
30
|
-
readPrg: () =>
|
|
31
|
-
readPrgWithOffsets: () =>
|
|
32
|
-
xmlUtil: () =>
|
|
21
|
+
SectionKinds: () => import_chunk_DZ7YMTUE.SectionKinds,
|
|
22
|
+
appSupport: () => import_chunk_DZ7YMTUE.appSupport,
|
|
23
|
+
connectiq: () => import_chunk_DZ7YMTUE.connectiq,
|
|
24
|
+
getDeviceInfo: () => import_chunk_DZ7YMTUE.getDeviceInfo,
|
|
25
|
+
getFunctionDocumentation: () => import_chunk_DZ7YMTUE.getFunctionDocumentation,
|
|
26
|
+
getLanguages: () => import_chunk_DZ7YMTUE.getLanguages,
|
|
27
|
+
getSdkPath: () => import_chunk_DZ7YMTUE.getSdkPath,
|
|
28
|
+
isWin: () => import_chunk_DZ7YMTUE.isWin,
|
|
29
|
+
optimizeProgram: () => import_chunk_DZ7YMTUE.optimizeProgram,
|
|
30
|
+
readPrg: () => import_chunk_DZ7YMTUE.readPrg,
|
|
31
|
+
readPrgWithOffsets: () => import_chunk_DZ7YMTUE.readPrgWithOffsets,
|
|
32
|
+
xmlUtil: () => import_chunk_DZ7YMTUE.xml_util_exports
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(sdk_util_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
|
|
36
36
|
var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
|
|
37
37
|
var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
|
|
38
38
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
39
|
-
(0,
|
|
39
|
+
(0, import_chunk_DZ7YMTUE.init_sdk_util)();
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
41
|
0 && (module.exports = {
|
|
42
42
|
SectionKinds,
|
package/build/src/cftinfo.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export
|
|
2
|
+
export type FontInfoOptions = {
|
|
3
|
+
chars?: string;
|
|
4
|
+
charInfoAsArray?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function getCFTFontInfoFromBuffer(name: string, data: Buffer, options?: FontInfoOptions | string): Promise<{
|
|
7
|
+
name: string;
|
|
8
|
+
height: number;
|
|
9
|
+
ascent: number;
|
|
10
|
+
internalLeading: number;
|
|
11
|
+
charInfo: (string | number)[][];
|
|
12
|
+
charInfoNames: string[];
|
|
13
|
+
} | {
|
|
3
14
|
name: string;
|
|
4
15
|
height: number;
|
|
5
16
|
ascent: number;
|
|
@@ -11,8 +22,16 @@ export declare function getCFTFontInfoFromBuffer(name: string, data: Buffer, cha
|
|
|
11
22
|
glyphAscent: number;
|
|
12
23
|
glyphDescent: number;
|
|
13
24
|
}[];
|
|
25
|
+
charInfoNames?: undefined;
|
|
14
26
|
}>;
|
|
15
27
|
export declare function getCFTFontInfo(filename: string, chars?: string): Promise<{
|
|
28
|
+
name: string;
|
|
29
|
+
height: number;
|
|
30
|
+
ascent: number;
|
|
31
|
+
internalLeading: number;
|
|
32
|
+
charInfo: (string | number)[][];
|
|
33
|
+
charInfoNames: string[];
|
|
34
|
+
} | {
|
|
16
35
|
name: string;
|
|
17
36
|
height: number;
|
|
18
37
|
ascent: number;
|
|
@@ -24,6 +43,7 @@ export declare function getCFTFontInfo(filename: string, chars?: string): Promis
|
|
|
24
43
|
glyphAscent: number;
|
|
25
44
|
glyphDescent: number;
|
|
26
45
|
}[];
|
|
46
|
+
charInfoNames?: undefined;
|
|
27
47
|
}>;
|
|
28
48
|
export declare function getDeviceFontInfo(dirname: string): Promise<{
|
|
29
49
|
device: string;
|
package/build/worker-thread.cjs
CHANGED
|
@@ -21,17 +21,17 @@ __export(worker_thread_exports, {
|
|
|
21
21
|
default: () => worker_thread_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(worker_thread_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
|
|
25
25
|
var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
|
|
26
26
|
var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
|
|
27
27
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
28
28
|
var import_node_worker_threads = require("node:worker_threads");
|
|
29
29
|
var require_worker_thread = (0, import_chunk_ABYVSU2C.__commonJS)({
|
|
30
30
|
"src/worker-thread.ts"() {
|
|
31
|
-
(0,
|
|
31
|
+
(0, import_chunk_DZ7YMTUE.init_worker_task)();
|
|
32
32
|
if (import_node_worker_threads.parentPort) {
|
|
33
33
|
import_node_worker_threads.parentPort.on("message", async (task) => {
|
|
34
|
-
return import_node_worker_threads.parentPort.postMessage(await (0,
|
|
34
|
+
return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_DZ7YMTUE.performTask)(task));
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED