@thinkfree.dev/tfo-sdk 0.3.0 → 0.4.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/README.md +37 -3
- package/dist/apiReference.generated.js +3159 -2887
- package/dist/apiReference.generated.js.map +1 -1
- package/dist/index.d.ts +3823 -3191
- package/dist/index.js +1954 -793
- package/dist/index.js.map +1 -1
- package/dist/version.json +4 -4
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -11,23 +11,23 @@ var MODULE_APP_ID = {
|
|
|
11
11
|
};
|
|
12
12
|
var API_NAMESPACE = "ThinkfreeWeboffice";
|
|
13
13
|
var API_VERSION = "v1.0";
|
|
14
|
-
var SDK_VERSION = true ? "0.
|
|
14
|
+
var SDK_VERSION = true ? "0.4.0" : "0.0.0-dev";
|
|
15
15
|
var RESULT_CODE = {
|
|
16
16
|
SUCCEED: 1,
|
|
17
17
|
FAIL: -1
|
|
18
18
|
};
|
|
19
19
|
var SDK_ERROR_CODE = {
|
|
20
|
-
/** options
|
|
20
|
+
/** Invalid options or arguments (module, origin, target and so on) */
|
|
21
21
|
INVALID_ARGUMENT: 1001,
|
|
22
|
-
/**
|
|
22
|
+
/** The editor did not respond within the timeout */
|
|
23
23
|
TIMEOUT: 1002,
|
|
24
|
-
/** disconnect()
|
|
24
|
+
/** Used after `disconnect()` */
|
|
25
25
|
DESTROYED: 1003,
|
|
26
|
-
/**
|
|
26
|
+
/** The editor's response could not be parsed or has an unexpected structure */
|
|
27
27
|
INVALID_RESPONSE: 1004,
|
|
28
|
-
/** postMessage
|
|
28
|
+
/** Sending the postMessage itself failed */
|
|
29
29
|
NETWORK_ERROR: 1005,
|
|
30
|
-
/**
|
|
30
|
+
/** The editor responded with a failure — when the response carries a failure code, `code` uses that value as is */
|
|
31
31
|
FRAMEWORK_ERROR: 2e3
|
|
32
32
|
};
|
|
33
33
|
var SDKError = class _SDKError extends Error {
|
|
@@ -158,9 +158,9 @@ function referenceToolSchema(module) {
|
|
|
158
158
|
type: "object",
|
|
159
159
|
properties: {
|
|
160
160
|
name: {
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
//
|
|
161
|
+
// A single type only: Gemini function declarations reject type unions (string | array), and
|
|
162
|
+
// collapsing to the first member leaves a dangling `items` that gets the whole tool list rejected.
|
|
163
|
+
// The executor still accepts a plain string (backward compatible); only the schema is pinned to an array.
|
|
164
164
|
type: "array",
|
|
165
165
|
items: { type: "string" },
|
|
166
166
|
minItems: 1,
|
|
@@ -180,7 +180,7 @@ function executeScriptSchema(module) {
|
|
|
180
180
|
const root = SCRIPT_ROOT_BY_MODULE[module];
|
|
181
181
|
return {
|
|
182
182
|
name: "execute_script",
|
|
183
|
-
description: `\uC5EC\uB7EC \uB2E8\uACC4\xB7\uBC18\uBCF5\xB7\uC870\uAC74\uC774 \uD544\uC694\uD55C \uD3B8\uC9D1\uC744 JavaScript \uCF54\uB4DC\uB85C \uD55C \uBC88\uC5D0 \uC2E4\uD589\uD569\uB2C8\uB2E4. [\uC2A4\uCF54\uD504] \uBB38\uC11C SDK \uB8E8\uD2B8\uAC00 \`${root}\` \uB85C \uC8FC\uC5B4\uC9C0\uACE0 \uD2B8\uB9AC\uB97C \uB530\uB77C \uC870\uD68C\xB7\uD3B8\uC9D1\uD569\uB2C8\uB2E4. \`log(...)\` \uB85C \uC9C4\uD589 \uAE30\uB85D\uC744 \uB0A8\uAE38 \uC218 \uC788\uACE0(\uBAA8\uB4C8\uC5D0 \uB530\uB77C \`constants\` \uB4F1 \uCD94\uAC00 \uC2A4\uCF54\uD504), \uCD5C\uC0C1\uC704 await \uB97C \uC4F8 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC815\uD655\uD55C \uBA54\uC11C\uB4DC \uC2DC\uADF8\uB2C8\uCC98\uB294 \uBA3C\uC800 get_api_reference \uB85C \uC870\uD68C\uD558\uC138\uC694 \u2014 \uC2DC\uADF8\uB2C8\uCC98\uB97C \uCD94\uCE21\uD558\uC9C0 \uB9C8\uC138\uC694. [\uACB0\uACFC] \uC131\uACF5\uC740 {ok:true, result, logs}, \uC2E4\uD328\uB294 {ok:false, error:{name,message}, status, logs} \uC785\uB2C8\uB2E4. \uC2E4\uD328\uB3C4 \uC624\uB958 \uC751\uB2F5\uC774 \uC544\uB2C8\uB77C \uC815\uC0C1 \uC751\uB2F5\uC73C\uB85C \uC624\uBBC0\uB85C \uBC18\uB4DC\uC2DC ok \uD544\uB4DC\uB85C \uD310\uBCC4\uD558\uC138\uC694. [status \uBCC4 \uD589\uB3D9] "not_started": \uCF54\uB4DC\uAC00 \uD55C \uC904\uB3C4 \uC2E4\uD589\uB418\uC9C0 \uC54A\uC74C \u2014 \uACE0\uCCD0\uC11C \uADF8\uB300\uB85C \uC7AC\uC2DC\uB3C4. "partial": \uC5D0\uB7EC \uC9C1\uC804\uAE4C\uC9C0\uC758 \uD3B8\uC9D1\uC774 \uBB38\uC11C\uC5D0 \uB0A8\uC74C \u2014 \uAC19\uC740 \uCF54\uB4DC \uC7AC\uC2E4\uD589\uC740 \uC911\uBCF5 \uC801\uC6A9\uB418\uB2C8, \uC801\uC6A9\uB41C \uAC83\uC744 \uBA3C\uC800 \uC870\uD68C\uD55C \uB4A4 \uB098\uBA38\uC9C0\uB9CC \uCC98\uB9AC. "timeout": \uC2E4\uD589\uC774 \uC544\uC9C1 \uBB38\uC11C\uB97C \uACE0\uCE58\uACE0 \uC788\uC744 \uC218 \uC788\uC74C \u2014 \uC774\uC5B4\uC11C \uD3B8\uC9D1\uD558\uC9C0 \uB9D0\uACE0, \uC870\uD68C\uB9CC \uD558\uAC70\uB098 \uC0AC\uC6A9\uC790\uC5D0\uAC8C \uC54C\uB9AC\uACE0 \uC9C0\uC2DC\uB97C \uAE30\uB2E4\uB9AC\uC138\uC694. [\uC2E4\uD589 \uC2DC\uAC04] \uD55C \uBC88\uC758 \uC2E4\uD589\uC740 4.5\uCD08 \uC548\uC5D0 \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4 \u2014 \uB300\uC0C1\uC774 \uB9CE\uC73C\uBA74 \uB098\uB220\uC11C \uC5EC\uB7EC \uBC88 \uD638\uCD9C\uD558\uC138\uC694. [\uB85C\uADF8] \uC2E4\uD328 \uC9C0\uC810\uC744 \uC54C \uC218 \uC788\uB294 \uB2E8\uC11C\uB294 log \uBFD0\uC774\uBBC0\uB85C \uBC18\uBCF5\uBB38\uC5D0\uC11C\uB294 \uB9E4 \uD68C\uCC28 log \uB97C \uB0A8\uAE30\uC138\uC694. [\uBC18\uD658\uAC12] return \uAC12\uC740 \uBB38\uC790\uC5F4/\uC22B\uC790/\uC77C\uBC18 \uAC1D\uCCB4 \uB4F1 \uC9C1\uB82C\uD654 \uAC00\uB2A5\uD55C \uB370\uC774\uD130\uB85C \uC8FC\uC138\uC694. \uC5EC\uB7EC \uB300\uC0C1\uC744 \uC21C\uD68C\uD588\uB2E4\uBA74 { applied, skipped } \uB97C return \uD558\uC138\uC694(skipped \uC5D0 \uAC74\uB108\uB6F4 \uC774\uC720 \uD3EC\uD568).`,
|
|
183
|
+
description: `\uC5EC\uB7EC \uB2E8\uACC4\xB7\uBC18\uBCF5\xB7\uC870\uAC74\uC774 \uD544\uC694\uD55C \uD3B8\uC9D1\uC744 JavaScript \uCF54\uB4DC\uB85C \uD55C \uBC88\uC5D0 \uC2E4\uD589\uD569\uB2C8\uB2E4. [\uC2A4\uCF54\uD504] \uBB38\uC11C SDK \uB8E8\uD2B8\uAC00 \`${root}\` \uB85C \uC8FC\uC5B4\uC9C0\uACE0 \uD2B8\uB9AC\uB97C \uB530\uB77C \uC870\uD68C\xB7\uD3B8\uC9D1\uD569\uB2C8\uB2E4. \`log(...)\` \uB85C \uC9C4\uD589 \uAE30\uB85D\uC744 \uB0A8\uAE38 \uC218 \uC788\uACE0(\uBAA8\uB4C8\uC5D0 \uB530\uB77C \`constants\` \uB4F1 \uCD94\uAC00 \uC2A4\uCF54\uD504), \uCD5C\uC0C1\uC704 await \uB97C \uC4F8 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC815\uD655\uD55C \uBA54\uC11C\uB4DC \uC2DC\uADF8\uB2C8\uCC98\uB294 \uBA3C\uC800 get_api_reference \uB85C \uC870\uD68C\uD558\uC138\uC694 \u2014 \uC2DC\uADF8\uB2C8\uCC98\uB97C \uCD94\uCE21\uD558\uC9C0 \uB9C8\uC138\uC694. [\uACF5\uAC1C \uBC94\uC704] get_api_reference \uC5D0 \uB098\uC624\uB294 \uD074\uB798\uC2A4\xB7\uBA54\uC11C\uB4DC\uB9CC \uC0AC\uC6A9\uD558\uC138\uC694. \uB808\uD37C\uB7F0\uC2A4\uC5D0 \uC5C6\uB294 \uC18D\uC131\xB7\uBA54\uC11C\uB4DC\uC640 \uADF8 \uB108\uBA38 \uAC1D\uCCB4\uB294 \uD3B8\uC9D1\uAE30 \uB0B4\uBD80 \uAD6C\uD604\uC774\uBBC0\uB85C \uC4F0\uC9C0 \uB9D0\uACE0, Object.keys\xB7for...in\xB7\uD504\uB85C\uD1A0\uD0C0\uC785 \uC870\uD68C\uB85C \uAC1D\uCCB4\uB97C \uB4A4\uC838 \uC4F8 \uBA64\uBC84\uB97C \uCC3E\uC9C0 \uB9C8\uC138\uC694. \uACF5\uAC1C \uBA54\uC11C\uB4DC\uAC00 \uC2E4\uD328\uD558\uBA74 \uB808\uD37C\uB7F0\uC2A4\uB85C \uD638\uCD9C\uC744 \uBC14\uB85C\uC7A1\uACE0, \uADF8\uB798\uB3C4 \uC548 \uB418\uBA74 \uB354 \uB0AE\uC740 \uC218\uC900\uC758 \uAC1D\uCCB4\uB85C \uC6B0\uD68C\uD558\uC9C0 \uB9D0\uACE0 SDK \uB85C \uD560 \uC218 \uC5C6\uB2E4\uACE0 \uC54C\uB9AC\uC138\uC694. [\uACB0\uACFC] \uC131\uACF5\uC740 {ok:true, result, logs}, \uC2E4\uD328\uB294 {ok:false, error:{name,message}, status, logs} \uC785\uB2C8\uB2E4. \uC2E4\uD328\uB3C4 \uC624\uB958 \uC751\uB2F5\uC774 \uC544\uB2C8\uB77C \uC815\uC0C1 \uC751\uB2F5\uC73C\uB85C \uC624\uBBC0\uB85C \uBC18\uB4DC\uC2DC ok \uD544\uB4DC\uB85C \uD310\uBCC4\uD558\uC138\uC694. [status \uBCC4 \uD589\uB3D9] "not_started": \uCF54\uB4DC\uAC00 \uD55C \uC904\uB3C4 \uC2E4\uD589\uB418\uC9C0 \uC54A\uC74C \u2014 \uACE0\uCCD0\uC11C \uADF8\uB300\uB85C \uC7AC\uC2DC\uB3C4. "partial": \uC5D0\uB7EC \uC9C1\uC804\uAE4C\uC9C0\uC758 \uD3B8\uC9D1\uC774 \uBB38\uC11C\uC5D0 \uB0A8\uC74C \u2014 \uAC19\uC740 \uCF54\uB4DC \uC7AC\uC2E4\uD589\uC740 \uC911\uBCF5 \uC801\uC6A9\uB418\uB2C8, \uC801\uC6A9\uB41C \uAC83\uC744 \uBA3C\uC800 \uC870\uD68C\uD55C \uB4A4 \uB098\uBA38\uC9C0\uB9CC \uCC98\uB9AC. "timeout": \uC2E4\uD589\uC774 \uC544\uC9C1 \uBB38\uC11C\uB97C \uACE0\uCE58\uACE0 \uC788\uC744 \uC218 \uC788\uC74C \u2014 \uC774\uC5B4\uC11C \uD3B8\uC9D1\uD558\uC9C0 \uB9D0\uACE0, \uC870\uD68C\uB9CC \uD558\uAC70\uB098 \uC0AC\uC6A9\uC790\uC5D0\uAC8C \uC54C\uB9AC\uACE0 \uC9C0\uC2DC\uB97C \uAE30\uB2E4\uB9AC\uC138\uC694. [\uC2E4\uD589 \uC2DC\uAC04] \uD55C \uBC88\uC758 \uC2E4\uD589\uC740 4.5\uCD08 \uC548\uC5D0 \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4 \u2014 \uB300\uC0C1\uC774 \uB9CE\uC73C\uBA74 \uB098\uB220\uC11C \uC5EC\uB7EC \uBC88 \uD638\uCD9C\uD558\uC138\uC694. [\uB85C\uADF8] \uC2E4\uD328 \uC9C0\uC810\uC744 \uC54C \uC218 \uC788\uB294 \uB2E8\uC11C\uB294 log \uBFD0\uC774\uBBC0\uB85C \uBC18\uBCF5\uBB38\uC5D0\uC11C\uB294 \uB9E4 \uD68C\uCC28 log \uB97C \uB0A8\uAE30\uC138\uC694. [\uBC18\uD658\uAC12] return \uAC12\uC740 \uBB38\uC790\uC5F4/\uC22B\uC790/\uC77C\uBC18 \uAC1D\uCCB4 \uB4F1 \uC9C1\uB82C\uD654 \uAC00\uB2A5\uD55C \uB370\uC774\uD130\uB85C \uC8FC\uC138\uC694. \uC5EC\uB7EC \uB300\uC0C1\uC744 \uC21C\uD68C\uD588\uB2E4\uBA74 { applied, skipped } \uB97C return \uD558\uC138\uC694(skipped \uC5D0 \uAC74\uB108\uB6F4 \uC774\uC720 \uD3EC\uD568).`,
|
|
184
184
|
inputSchema: {
|
|
185
185
|
type: "object",
|
|
186
186
|
properties: {
|
|
@@ -235,7 +235,7 @@ function defaultFormatResult(result) {
|
|
|
235
235
|
function defaultFormatError(error) {
|
|
236
236
|
const err = error;
|
|
237
237
|
const code = typeof err?.code === "string" || typeof err?.code === "number" ? err.code : "TOOL_EXECUTE_ERROR";
|
|
238
|
-
const message = typeof err?.message === "string" ? err.message : "
|
|
238
|
+
const message = typeof err?.message === "string" ? err.message : "An error occurred while executing the tool.";
|
|
239
239
|
return { isError: true, content: [{ type: "text", text: JSON.stringify({ code, message }) }] };
|
|
240
240
|
}
|
|
241
241
|
function extractTools(schemas) {
|
|
@@ -331,9 +331,588 @@ async function getSystemPrompt(execute) {
|
|
|
331
331
|
return normalizePrompt(modulePrompt);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
+
// src/presets.ts
|
|
335
|
+
var TOOLKIT_PRESETS = ["core", "review", "full"];
|
|
336
|
+
var SDK_TOOL_API_REFERENCE = "get_api_reference";
|
|
337
|
+
var SDK_TOOL_EXECUTE_SCRIPT = "execute_script";
|
|
338
|
+
var READ_PREFIXES = ["get_", "find_", "search", "is_", "list_", "has_", "count_", "preview_"];
|
|
339
|
+
var READ_NAMES = /* @__PURE__ */ new Set([
|
|
340
|
+
"go_to_slide",
|
|
341
|
+
"go_to_bookmark",
|
|
342
|
+
"set_selection",
|
|
343
|
+
"select_all",
|
|
344
|
+
"set_view_mode"
|
|
345
|
+
]);
|
|
346
|
+
function categoryOf(tool) {
|
|
347
|
+
const declared = tool.category;
|
|
348
|
+
if (declared === "read" || declared === "write" || declared === "comment" || declared === "script") {
|
|
349
|
+
return declared;
|
|
350
|
+
}
|
|
351
|
+
const name = tool.name;
|
|
352
|
+
if (name === SDK_TOOL_EXECUTE_SCRIPT) {
|
|
353
|
+
return "script";
|
|
354
|
+
}
|
|
355
|
+
if (name === SDK_TOOL_API_REFERENCE) {
|
|
356
|
+
return "read";
|
|
357
|
+
}
|
|
358
|
+
if (name.includes("comment")) {
|
|
359
|
+
return "comment";
|
|
360
|
+
}
|
|
361
|
+
if (READ_NAMES.has(name) || READ_PREFIXES.some((p) => name.startsWith(p))) {
|
|
362
|
+
return "read";
|
|
363
|
+
}
|
|
364
|
+
return "write";
|
|
365
|
+
}
|
|
366
|
+
function presetIncludes(preset, tool) {
|
|
367
|
+
const category = categoryOf(tool);
|
|
368
|
+
switch (preset) {
|
|
369
|
+
case "full":
|
|
370
|
+
return true;
|
|
371
|
+
case "core":
|
|
372
|
+
return category !== "script";
|
|
373
|
+
case "review":
|
|
374
|
+
return category === "read" || category === "comment";
|
|
375
|
+
default:
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
function isToolkitPreset(value) {
|
|
380
|
+
return typeof value === "string" && TOOLKIT_PRESETS.includes(value);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// src/toolResult.ts
|
|
384
|
+
var TOOL_FAILURE_CODES = [
|
|
385
|
+
"stale",
|
|
386
|
+
"no-op",
|
|
387
|
+
"capability",
|
|
388
|
+
"permission",
|
|
389
|
+
"invalid",
|
|
390
|
+
"internal"
|
|
391
|
+
];
|
|
392
|
+
function failure(code, message, detail, extra) {
|
|
393
|
+
const out = { success: false, failure: { code, message } };
|
|
394
|
+
if (detail && Object.keys(detail).length > 0) {
|
|
395
|
+
out.failure.detail = detail;
|
|
396
|
+
}
|
|
397
|
+
if (extra?.revision !== void 0) {
|
|
398
|
+
out.revision = extra.revision;
|
|
399
|
+
}
|
|
400
|
+
if (extra?.partial !== void 0) {
|
|
401
|
+
out.partial = extra.partial;
|
|
402
|
+
}
|
|
403
|
+
return out;
|
|
404
|
+
}
|
|
405
|
+
function classifyModuleCode(code) {
|
|
406
|
+
const c = code.toUpperCase();
|
|
407
|
+
if (c === "STALE_TARGET" || c === "REVISION_MISMATCH" || c.endsWith("_NOT_FOUND")) {
|
|
408
|
+
return "stale";
|
|
409
|
+
}
|
|
410
|
+
if (c === "NO_MATCH" || c === "NO_OP" || c === "NOOP" || c === "NOT_CHANGED") {
|
|
411
|
+
return "no-op";
|
|
412
|
+
}
|
|
413
|
+
if (c === "LOCKED" || c === "READ_ONLY" || c === "PERMISSION_DENIED" || c.startsWith("PERMISSION")) {
|
|
414
|
+
return "permission";
|
|
415
|
+
}
|
|
416
|
+
if (c === "UNSUPPORTED_OPERATION" || c === "METHOD_NOT_ALLOWED" || c === "NOT_SUPPORTED" || c.endsWith("_LIMIT") || c.startsWith("UNSUPPORTED")) {
|
|
417
|
+
return "capability";
|
|
418
|
+
}
|
|
419
|
+
if (c === "INVALID_ARGUMENT" || c === "INVALID_NAME" || c.startsWith("INVALID_")) {
|
|
420
|
+
return "invalid";
|
|
421
|
+
}
|
|
422
|
+
return "internal";
|
|
423
|
+
}
|
|
424
|
+
function isRecord(value) {
|
|
425
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
426
|
+
}
|
|
427
|
+
function isToolResult(value) {
|
|
428
|
+
if (!isRecord(value) || typeof value.success !== "boolean") {
|
|
429
|
+
return false;
|
|
430
|
+
}
|
|
431
|
+
if (value.success) {
|
|
432
|
+
return true;
|
|
433
|
+
}
|
|
434
|
+
return isRecord(value.failure) && typeof value.failure.code === "string" && typeof value.failure.message === "string";
|
|
435
|
+
}
|
|
436
|
+
function isMcpLike(value) {
|
|
437
|
+
return isRecord(value) && Array.isArray(value.content);
|
|
438
|
+
}
|
|
439
|
+
function isScriptLike(value) {
|
|
440
|
+
return isRecord(value) && typeof value.ok === "boolean";
|
|
441
|
+
}
|
|
442
|
+
var INSTRUCTION_META_KEY = "tf-agent/instruction";
|
|
443
|
+
function isInstructionBlock(item) {
|
|
444
|
+
return isRecord(item) && item.type === "text" && isRecord(item._meta) && item._meta[INSTRUCTION_META_KEY] === true;
|
|
445
|
+
}
|
|
446
|
+
function mcpText(value) {
|
|
447
|
+
const items = Array.isArray(value.content) ? value.content : [];
|
|
448
|
+
return items.filter((item) => isRecord(item) && typeof item.text === "string" && !isInstructionBlock(item)).map((item) => item.text).join("\n");
|
|
449
|
+
}
|
|
450
|
+
function tryParseJson(text) {
|
|
451
|
+
const t = text.trim();
|
|
452
|
+
if (!(t.startsWith("{") || t.startsWith("["))) {
|
|
453
|
+
return void 0;
|
|
454
|
+
}
|
|
455
|
+
try {
|
|
456
|
+
return JSON.parse(t);
|
|
457
|
+
} catch {
|
|
458
|
+
return void 0;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function readMeta(value) {
|
|
462
|
+
return isRecord(value._meta) ? value._meta : {};
|
|
463
|
+
}
|
|
464
|
+
function pickErrorFields(parsed) {
|
|
465
|
+
if (!isRecord(parsed)) {
|
|
466
|
+
return {};
|
|
467
|
+
}
|
|
468
|
+
const src = isRecord(parsed.error) ? parsed.error : parsed;
|
|
469
|
+
return {
|
|
470
|
+
...typeof src.code === "string" ? { code: src.code } : {},
|
|
471
|
+
...typeof src.message === "string" ? { message: src.message } : {}
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function toolResultFromRaw(result) {
|
|
475
|
+
if (isToolResult(result)) {
|
|
476
|
+
return result;
|
|
477
|
+
}
|
|
478
|
+
if (isScriptLike(result)) {
|
|
479
|
+
return toolResultFromScript(result);
|
|
480
|
+
}
|
|
481
|
+
if (isMcpLike(result)) {
|
|
482
|
+
return toolResultFromMcp(result);
|
|
483
|
+
}
|
|
484
|
+
return { success: true, data: result };
|
|
485
|
+
}
|
|
486
|
+
function toolResultFromScript(r) {
|
|
487
|
+
const logs = Array.isArray(r.logs) ? r.logs : void 0;
|
|
488
|
+
if (r.ok === true) {
|
|
489
|
+
const out = { success: true, data: r.result };
|
|
490
|
+
if (isRecord(r.result) && typeof r.result.applied === "number") {
|
|
491
|
+
out.changed = r.result.applied > 0;
|
|
492
|
+
}
|
|
493
|
+
return out;
|
|
494
|
+
}
|
|
495
|
+
const err = isRecord(r.error) ? r.error : {};
|
|
496
|
+
const message = typeof err.message === "string" ? err.message : typeof r.error === "string" ? r.error : "execute_script failed";
|
|
497
|
+
const detail = {};
|
|
498
|
+
if (typeof err.name === "string") {
|
|
499
|
+
detail.errorName = err.name;
|
|
500
|
+
}
|
|
501
|
+
if (logs) {
|
|
502
|
+
detail.logs = logs;
|
|
503
|
+
}
|
|
504
|
+
switch (r.status) {
|
|
505
|
+
case "not_started":
|
|
506
|
+
return failure("invalid", message, detail);
|
|
507
|
+
case "partial":
|
|
508
|
+
return failure("internal", message, detail, { partial: true });
|
|
509
|
+
case "timeout":
|
|
510
|
+
return failure("internal", message, { ...detail, timeout: true });
|
|
511
|
+
default:
|
|
512
|
+
return failure("internal", message, detail);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
var mcpPassthrough = /* @__PURE__ */ new WeakMap();
|
|
516
|
+
function toolResultFromMcp(r) {
|
|
517
|
+
const result = toolResultFromMcpCore(r);
|
|
518
|
+
const blocks = r.content.filter(
|
|
519
|
+
(item) => isRecord(item) && (item.type !== "text" || isInstructionBlock(item))
|
|
520
|
+
);
|
|
521
|
+
if (result.success && blocks.length > 0) {
|
|
522
|
+
mcpPassthrough.set(result, blocks);
|
|
523
|
+
}
|
|
524
|
+
return result;
|
|
525
|
+
}
|
|
526
|
+
function toolResultFromMcpCore(r) {
|
|
527
|
+
const meta = readMeta(r);
|
|
528
|
+
const text = mcpText(r);
|
|
529
|
+
const parsed = tryParseJson(text);
|
|
530
|
+
const revision = typeof meta.revision === "string" ? meta.revision : void 0;
|
|
531
|
+
const isError = r.isError === true || meta.status === "failed";
|
|
532
|
+
if (!isError && meta.status === "no-op") {
|
|
533
|
+
const msg = typeof meta.code === "string" ? `${meta.code}: ${text || "no changes"}` : text || "no changes";
|
|
534
|
+
return failure(
|
|
535
|
+
"no-op",
|
|
536
|
+
msg,
|
|
537
|
+
typeof meta.code === "string" ? { moduleCode: meta.code } : {},
|
|
538
|
+
revision !== void 0 ? { revision } : {}
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
if (isError) {
|
|
542
|
+
const fields = pickErrorFields(parsed);
|
|
543
|
+
const moduleCode = typeof meta.code === "string" ? meta.code : fields.code;
|
|
544
|
+
const message = fields.message ?? (text || "tool failed");
|
|
545
|
+
const detail = {};
|
|
546
|
+
if (moduleCode) {
|
|
547
|
+
detail.moduleCode = moduleCode;
|
|
548
|
+
}
|
|
549
|
+
return failure(
|
|
550
|
+
moduleCode ? classifyModuleCode(moduleCode) : "internal",
|
|
551
|
+
message,
|
|
552
|
+
detail,
|
|
553
|
+
revision !== void 0 ? { revision } : {}
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
const out = { success: true, text };
|
|
557
|
+
if (parsed !== void 0) {
|
|
558
|
+
out.data = parsed;
|
|
559
|
+
}
|
|
560
|
+
if (revision !== void 0) {
|
|
561
|
+
out.revision = revision;
|
|
562
|
+
}
|
|
563
|
+
if (typeof meta.changed === "number") {
|
|
564
|
+
out.changed = meta.changed > 0;
|
|
565
|
+
} else if (meta.status === "applied") {
|
|
566
|
+
out.changed = true;
|
|
567
|
+
}
|
|
568
|
+
if (Array.isArray(meta.targets)) {
|
|
569
|
+
out.targets = meta.targets.filter((t) => typeof t === "string");
|
|
570
|
+
}
|
|
571
|
+
return out;
|
|
572
|
+
}
|
|
573
|
+
function toolResultFromError(error) {
|
|
574
|
+
if (error instanceof SDKError) {
|
|
575
|
+
const transport = transportName(error.code);
|
|
576
|
+
if (error.code === SDK_ERROR_CODE.INVALID_ARGUMENT) {
|
|
577
|
+
return failure("invalid", error.message, { transport });
|
|
578
|
+
}
|
|
579
|
+
return failure("internal", error.message, { transport });
|
|
580
|
+
}
|
|
581
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
582
|
+
return failure("internal", message);
|
|
583
|
+
}
|
|
584
|
+
function transportName(code) {
|
|
585
|
+
for (const [name, value] of Object.entries(SDK_ERROR_CODE)) {
|
|
586
|
+
if (value === code) {
|
|
587
|
+
return name;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return String(code);
|
|
591
|
+
}
|
|
592
|
+
function toolResultToMcp(result) {
|
|
593
|
+
const text = JSON.stringify(result);
|
|
594
|
+
if (!result.success) {
|
|
595
|
+
return { content: [{ type: "text", text }], isError: true };
|
|
596
|
+
}
|
|
597
|
+
return {
|
|
598
|
+
content: [{ type: "text", text }, ...mcpPassthrough.get(result) ?? []]
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// src/toolkit.ts
|
|
603
|
+
var TOOLKIT_PROVIDERS = [
|
|
604
|
+
"openai",
|
|
605
|
+
"anthropic",
|
|
606
|
+
"vercel",
|
|
607
|
+
"generic"
|
|
608
|
+
];
|
|
609
|
+
var DEFAULT_TOOLKIT_RULES = { maxTurns: 12 };
|
|
610
|
+
var EMPTY_OBJECT_SCHEMA = { type: "object", properties: {} };
|
|
611
|
+
function normalizeSchema(input) {
|
|
612
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input)) {
|
|
613
|
+
const schema = input;
|
|
614
|
+
return schema.type === void 0 ? { type: "object", ...schema } : schema;
|
|
615
|
+
}
|
|
616
|
+
return EMPTY_OBJECT_SCHEMA;
|
|
617
|
+
}
|
|
618
|
+
function toProviderTool(schema, provider) {
|
|
619
|
+
const description = schema.description ?? "";
|
|
620
|
+
const parameters = normalizeSchema(schema.inputSchema);
|
|
621
|
+
switch (provider) {
|
|
622
|
+
case "openai":
|
|
623
|
+
return { type: "function", function: { name: schema.name, description, parameters } };
|
|
624
|
+
case "anthropic":
|
|
625
|
+
return { name: schema.name, description, input_schema: parameters };
|
|
626
|
+
case "vercel":
|
|
627
|
+
case "generic":
|
|
628
|
+
return { name: schema.name, description, inputSchema: parameters };
|
|
629
|
+
default:
|
|
630
|
+
throw new SDKError(
|
|
631
|
+
`[TFO-SDK] createOfficeToolkit(): unknown provider '${String(provider)}'.`,
|
|
632
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
function withExecute(toolkit) {
|
|
637
|
+
return toolkit.catalog.map((schema) => ({
|
|
638
|
+
name: schema.name,
|
|
639
|
+
description: schema.description ?? "",
|
|
640
|
+
inputSchema: normalizeSchema(schema.inputSchema),
|
|
641
|
+
execute: (args) => toolkit.dispatch(schema.name, args)
|
|
642
|
+
}));
|
|
643
|
+
}
|
|
644
|
+
function withMcpExecute(toolkit) {
|
|
645
|
+
return toolkit.catalog.map((schema) => ({
|
|
646
|
+
name: schema.name,
|
|
647
|
+
description: schema.description ?? "",
|
|
648
|
+
inputSchema: normalizeSchema(schema.inputSchema),
|
|
649
|
+
execute: async (args) => toolResultToMcp(await toolkit.dispatch(schema.name, args))
|
|
650
|
+
}));
|
|
651
|
+
}
|
|
652
|
+
function composeSystemPrompt(input) {
|
|
653
|
+
const parts = [];
|
|
654
|
+
const modulePrompt = input.modulePrompt.trim();
|
|
655
|
+
if (modulePrompt) {
|
|
656
|
+
parts.push(modulePrompt);
|
|
657
|
+
}
|
|
658
|
+
const rules = [
|
|
659
|
+
`- \uD55C \uC694\uCCAD\uC5D0\uC11C \uB3C4\uAD6C \uD638\uCD9C\uC740 \uCD5C\uB300 ${input.rules.maxTurns}\uD68C\uB2E4. \uB118\uC73C\uBA74 \uC9C4\uD589 \uC0C1\uD669\uC744 \uBCF4\uACE0\uD558\uACE0 \uBA48\uCD98\uB2E4.`,
|
|
660
|
+
"- \uC81C\uACF5\uB41C \uB3C4\uAD6C \uC774\uB984\uB9CC \uD638\uCD9C\uD55C\uB2E4. \uC774\uB984\uC744 \uC9C0\uC5B4\uB0B4\uC9C0 \uC54A\uB294\uB2E4.",
|
|
661
|
+
"- \uB3C4\uAD6C \uACB0\uACFC\uB294 { success, failure?: { code, message } } \uD615\uD0DC\uB2E4. success \uB85C \uD310\uC815\uD55C\uB2E4.",
|
|
662
|
+
" - failure.code \uAC00 stale \uC774\uBA74 \uC870\uD68C \uB3C4\uAD6C\uB85C \uB300\uC0C1\uC744 \uB2E4\uC2DC \uCC3E\uC740 \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD55C\uB2E4.",
|
|
663
|
+
" - invalid \uBA74 \uC778\uC790\uB97C \uACE0\uCCD0 \uD55C \uBC88\uB9CC \uB2E4\uC2DC \uC2DC\uB3C4\uD55C\uB2E4.",
|
|
664
|
+
" - capability \uB610\uB294 permission \uC774\uBA74 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC9C0 \uC54A\uACE0 \uC0AC\uC6A9\uC790\uC5D0\uAC8C \uC774\uC720\uB97C \uC54C\uB9B0\uB2E4.",
|
|
665
|
+
" - internal \uC5D0 partial \uC774 true \uBA74 \uC801\uC6A9\uB41C \uBD80\uBD84\uC744 \uBA3C\uC800 \uC870\uD68C\uD55C \uB4A4 \uB098\uBA38\uC9C0\uB9CC \uC774\uC5B4\uC11C \uD55C\uB2E4.",
|
|
666
|
+
" - no-op \uB294 \uC2E4\uD589\uB410\uC9C0\uB9CC \uBB38\uC11C\uAC00 \uBC14\uB00C\uC9C0 \uC54A\uC740 \uAC83\uC774\uB2E4. \uC644\uB8CC\uB85C \uBCF4\uACE0\uD558\uC9C0 \uC54A\uB294\uB2E4.",
|
|
667
|
+
"- \uC218\uC815 \uB3C4\uAD6C\uAC00 \uD55C \uBC88\uB3C4 success \uD558\uC9C0 \uC54A\uC558\uC73C\uBA74 \uC791\uC5C5\uC744 \uC644\uB8CC\uD588\uB2E4\uACE0 \uBCF4\uACE0\uD558\uC9C0 \uC54A\uB294\uB2E4."
|
|
668
|
+
];
|
|
669
|
+
if (input.hasExecuteScript) {
|
|
670
|
+
rules.push(
|
|
671
|
+
"- execute_script \uB294 \uC5EC\uB7EC \uB2E8\uACC4\xB7\uBC18\uBCF5\uC774 \uD544\uC694\uD55C \uD3B8\uC9D1\uC5D0\uB9CC \uC4F0\uACE0, \uBA54\uC11C\uB4DC \uC2DC\uADF8\uB2C8\uCC98\uB294 get_api_reference \uB85C \uBA3C\uC800 \uD655\uC778\uD55C\uB2E4."
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
parts.push(`[\uB3C4\uAD6C \uC0AC\uC6A9 \uADDC\uCE59]
|
|
675
|
+
${rules.join("\n")}`);
|
|
676
|
+
if (input.actions.length > 0) {
|
|
677
|
+
const lines = input.actions.map((a) => `- ${a.name}: ${a.description}`);
|
|
678
|
+
parts.push(`[\uCEE4\uC2A4\uD140 \uC561\uC158]
|
|
679
|
+
${lines.join("\n")}`);
|
|
680
|
+
}
|
|
681
|
+
const extra = input.extra?.trim();
|
|
682
|
+
if (extra) {
|
|
683
|
+
parts.push(extra);
|
|
684
|
+
}
|
|
685
|
+
return parts.join("\n\n");
|
|
686
|
+
}
|
|
687
|
+
function toIncludeFilter2(include) {
|
|
688
|
+
if (include === void 0) {
|
|
689
|
+
return () => true;
|
|
690
|
+
}
|
|
691
|
+
if (typeof include === "function") {
|
|
692
|
+
return include;
|
|
693
|
+
}
|
|
694
|
+
const allowed = new Set(include);
|
|
695
|
+
return (tool) => allowed.has(tool.name);
|
|
696
|
+
}
|
|
697
|
+
var CUSTOM_ACTION_PREFIX = "partner_";
|
|
698
|
+
var PROVIDER_TOOL_NAME_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
699
|
+
function validateActions(actions) {
|
|
700
|
+
const seen = /* @__PURE__ */ new Set();
|
|
701
|
+
for (const action of actions) {
|
|
702
|
+
if (!action.name.startsWith(CUSTOM_ACTION_PREFIX) || action.name.length <= CUSTOM_ACTION_PREFIX.length) {
|
|
703
|
+
throw new SDKError(
|
|
704
|
+
`[TFO-SDK] createOfficeToolkit(): custom action name must start with '${CUSTOM_ACTION_PREFIX}' (got '${action.name}').`,
|
|
705
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
if (!PROVIDER_TOOL_NAME_PATTERN.test(action.name)) {
|
|
709
|
+
throw new SDKError(
|
|
710
|
+
`[TFO-SDK] createOfficeToolkit(): custom action name '${action.name}' must match ${String(PROVIDER_TOOL_NAME_PATTERN)} (OpenAI/Anthropic tool name rule).`,
|
|
711
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
712
|
+
);
|
|
713
|
+
}
|
|
714
|
+
if (seen.has(action.name)) {
|
|
715
|
+
throw new SDKError(
|
|
716
|
+
`[TFO-SDK] createOfficeToolkit(): duplicate custom action '${action.name}'.`,
|
|
717
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
if (!action.run && !(action.steps && action.steps.length > 0)) {
|
|
721
|
+
throw new SDKError(
|
|
722
|
+
`[TFO-SDK] createOfficeToolkit(): custom action '${action.name}' needs run() or steps.`,
|
|
723
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
seen.add(action.name);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
function toSchema(tool) {
|
|
730
|
+
const schema = { name: tool.name };
|
|
731
|
+
if (tool.description !== void 0) {
|
|
732
|
+
schema.description = tool.description;
|
|
733
|
+
}
|
|
734
|
+
if (tool.inputSchema !== void 0) {
|
|
735
|
+
schema.inputSchema = tool.inputSchema;
|
|
736
|
+
}
|
|
737
|
+
return schema;
|
|
738
|
+
}
|
|
739
|
+
function hasWhenReady(app) {
|
|
740
|
+
return typeof app.whenReady === "function";
|
|
741
|
+
}
|
|
742
|
+
async function createOfficeToolkit(app, options) {
|
|
743
|
+
if (!options || !TOOLKIT_PROVIDERS.includes(options.provider)) {
|
|
744
|
+
throw new SDKError(
|
|
745
|
+
`[TFO-SDK] createOfficeToolkit(): options.provider must be one of ${TOOLKIT_PROVIDERS.join(" | ")}.`,
|
|
746
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
const preset = options.preset ?? "core";
|
|
750
|
+
if (!isToolkitPreset(preset)) {
|
|
751
|
+
throw new SDKError(
|
|
752
|
+
`[TFO-SDK] createOfficeToolkit(): options.preset must be 'core' | 'review' | 'full'.`,
|
|
753
|
+
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
const actions = options.customActions ?? [];
|
|
757
|
+
validateActions(actions);
|
|
758
|
+
const rules = { ...DEFAULT_TOOLKIT_RULES, ...options.prompt?.rules ?? {} };
|
|
759
|
+
const userInclude = toIncludeFilter2(options.include);
|
|
760
|
+
const provider = options.provider;
|
|
761
|
+
const module = app.module;
|
|
762
|
+
if (hasWhenReady(app)) {
|
|
763
|
+
await app.whenReady();
|
|
764
|
+
}
|
|
765
|
+
let catalogTools = [];
|
|
766
|
+
let catalog = [];
|
|
767
|
+
let tools = [];
|
|
768
|
+
let systemPrompt = "";
|
|
769
|
+
let lastRevision;
|
|
770
|
+
const executors = /* @__PURE__ */ new Map();
|
|
771
|
+
const runCatalogTool = async (tool, args) => {
|
|
772
|
+
try {
|
|
773
|
+
return toolResultFromRaw(await tool.execute(args ?? {}));
|
|
774
|
+
} catch (error) {
|
|
775
|
+
if (error instanceof SDKError && error.code === SDK_ERROR_CODE.DESTROYED) {
|
|
776
|
+
throw error;
|
|
777
|
+
}
|
|
778
|
+
return toolResultFromError(error);
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
const dispatch = async (name, args, dispatchOptions = {}) => {
|
|
782
|
+
const run = executors.get(name);
|
|
783
|
+
if (!run) {
|
|
784
|
+
return failure("invalid", `unknown tool '${name}' \u2014 not advertised by this toolkit`, {
|
|
785
|
+
advertised: catalog.map((t) => t.name)
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
if (dispatchOptions.signal?.aborted) {
|
|
789
|
+
return failure("internal", "dispatch aborted before execution", { aborted: true });
|
|
790
|
+
}
|
|
791
|
+
const expected = dispatchOptions.expectedRevision ?? (options.revisionGuard ? lastRevision : void 0);
|
|
792
|
+
if (expected !== void 0 && lastRevision !== void 0 && expected !== lastRevision) {
|
|
793
|
+
return failure(
|
|
794
|
+
"stale",
|
|
795
|
+
`document revision changed (expected ${expected}, now ${lastRevision})`,
|
|
796
|
+
{
|
|
797
|
+
expectedRevision: expected,
|
|
798
|
+
revision: lastRevision
|
|
799
|
+
}
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
const result = await run(args);
|
|
803
|
+
if (result.revision !== void 0) {
|
|
804
|
+
lastRevision = result.revision;
|
|
805
|
+
}
|
|
806
|
+
return result;
|
|
807
|
+
};
|
|
808
|
+
const dispatchAll = async (calls, allOptions = {}) => {
|
|
809
|
+
const stopOnFailure = allOptions.stopOnFailure ?? true;
|
|
810
|
+
const results = [];
|
|
811
|
+
let failed = false;
|
|
812
|
+
for (const call of calls) {
|
|
813
|
+
if (failed && stopOnFailure) {
|
|
814
|
+
results.push(
|
|
815
|
+
failure("internal", "skipped: an earlier call in the batch failed", {
|
|
816
|
+
skipped: true,
|
|
817
|
+
atomic: false
|
|
818
|
+
})
|
|
819
|
+
);
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
822
|
+
const result = await dispatch(call.name, call.args, allOptions);
|
|
823
|
+
results.push(result);
|
|
824
|
+
if (!result.success) {
|
|
825
|
+
failed = true;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return results;
|
|
829
|
+
};
|
|
830
|
+
const buildActionExecutor = (action) => {
|
|
831
|
+
return async (args) => {
|
|
832
|
+
try {
|
|
833
|
+
if (action.run) {
|
|
834
|
+
const ctx = {
|
|
835
|
+
app,
|
|
836
|
+
document: app.getDocument(),
|
|
837
|
+
dispatch: (name, a) => dispatch(name, a)
|
|
838
|
+
};
|
|
839
|
+
return toolResultFromRaw(await action.run(ctx, args ?? {}));
|
|
840
|
+
}
|
|
841
|
+
const results = await dispatchAll(action.steps ?? [], { stopOnFailure: true });
|
|
842
|
+
const firstFailure = results.find((r) => !r.success);
|
|
843
|
+
if (firstFailure && !firstFailure.success) {
|
|
844
|
+
return failure(
|
|
845
|
+
firstFailure.failure.code,
|
|
846
|
+
`${action.name}: ${firstFailure.failure.message}`,
|
|
847
|
+
{
|
|
848
|
+
...firstFailure.failure.detail ?? {},
|
|
849
|
+
steps: results
|
|
850
|
+
}
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
return { success: true, data: results };
|
|
854
|
+
} catch (error) {
|
|
855
|
+
if (error instanceof SDKError && error.code === SDK_ERROR_CODE.DESTROYED) {
|
|
856
|
+
throw error;
|
|
857
|
+
}
|
|
858
|
+
return toolResultFromError(error);
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
const load = async () => {
|
|
863
|
+
catalogTools = await app.getTools({
|
|
864
|
+
include: (tool) => presetIncludes(preset, tool) && userInclude(tool)
|
|
865
|
+
});
|
|
866
|
+
const actionSchemas = actions.map((a) => ({
|
|
867
|
+
name: a.name,
|
|
868
|
+
description: a.description,
|
|
869
|
+
inputSchema: a.inputSchema ?? EMPTY_OBJECT_SCHEMA
|
|
870
|
+
}));
|
|
871
|
+
catalog = [...catalogTools.map(toSchema), ...actionSchemas];
|
|
872
|
+
tools = catalog.map((schema) => toProviderTool(schema, provider));
|
|
873
|
+
executors.clear();
|
|
874
|
+
for (const tool of catalogTools) {
|
|
875
|
+
executors.set(tool.name, (args) => runCatalogTool(tool, args));
|
|
876
|
+
}
|
|
877
|
+
for (const action of actions) {
|
|
878
|
+
executors.set(action.name, buildActionExecutor(action));
|
|
879
|
+
}
|
|
880
|
+
const modulePrompt = await app.getSystemPrompt();
|
|
881
|
+
systemPrompt = composeSystemPrompt({
|
|
882
|
+
modulePrompt,
|
|
883
|
+
preset,
|
|
884
|
+
rules,
|
|
885
|
+
hasExecuteScript: executors.has(SDK_TOOL_EXECUTE_SCRIPT),
|
|
886
|
+
actions,
|
|
887
|
+
extra: options.prompt?.extra
|
|
888
|
+
});
|
|
889
|
+
};
|
|
890
|
+
await load();
|
|
891
|
+
return {
|
|
892
|
+
module,
|
|
893
|
+
provider,
|
|
894
|
+
preset,
|
|
895
|
+
get tools() {
|
|
896
|
+
return tools;
|
|
897
|
+
},
|
|
898
|
+
get systemPrompt() {
|
|
899
|
+
return systemPrompt;
|
|
900
|
+
},
|
|
901
|
+
get catalog() {
|
|
902
|
+
return catalog;
|
|
903
|
+
},
|
|
904
|
+
get lastRevision() {
|
|
905
|
+
return lastRevision;
|
|
906
|
+
},
|
|
907
|
+
dispatch,
|
|
908
|
+
dispatchAll,
|
|
909
|
+
refresh: load
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
|
|
334
913
|
// src/proxyConstants.ts
|
|
335
914
|
var PROXY_TYPE = {
|
|
336
|
-
// show
|
|
915
|
+
// show module
|
|
337
916
|
DOCUMENT: "Document",
|
|
338
917
|
SLIDE: "Slide",
|
|
339
918
|
SHAPE: "Shape",
|
|
@@ -347,7 +926,7 @@ var PROXY_TYPE = {
|
|
|
347
926
|
DIAGRAM: "Diagram",
|
|
348
927
|
OLE_OBJECT: "OleObject",
|
|
349
928
|
CONTROL: "Control",
|
|
350
|
-
// cell
|
|
929
|
+
// cell module (CHART/TABLE reuse the strings above)
|
|
351
930
|
WORKBOOK: "Workbook",
|
|
352
931
|
WORKSHEET: "Worksheet",
|
|
353
932
|
RANGE: "Range",
|
|
@@ -370,7 +949,6 @@ var SHOW_GUARD_METHODS = {
|
|
|
370
949
|
var CELL_NAVIGATION_MAP = {
|
|
371
950
|
[PROXY_TYPE.WORKBOOK]: {
|
|
372
951
|
getObjectById: PROXY_TYPE.CHART,
|
|
373
|
-
getTable: PROXY_TYPE.TABLE,
|
|
374
952
|
getDefinedName: PROXY_TYPE.NAME
|
|
375
953
|
},
|
|
376
954
|
[PROXY_TYPE.WORKSHEET]: {
|
|
@@ -428,8 +1006,8 @@ function sendCommand(ctx, method, params, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
428
1006
|
[API_NAMESPACE]: {
|
|
429
1007
|
app: ctx.appId,
|
|
430
1008
|
version: API_VERSION,
|
|
431
|
-
//
|
|
432
|
-
//
|
|
1009
|
+
// The caller's SDK version, so the editor can gate APIs and tools by a minimum SDK version.
|
|
1010
|
+
// Older editors check only the fields they know and ignore this one.
|
|
433
1011
|
sdkVersion: SDK_VERSION,
|
|
434
1012
|
type: "cmd",
|
|
435
1013
|
method,
|
|
@@ -732,6 +1310,20 @@ function createOffice(options) {
|
|
|
732
1310
|
}
|
|
733
1311
|
return raw;
|
|
734
1312
|
};
|
|
1313
|
+
const fetchAiProviderConfig = async () => {
|
|
1314
|
+
const raw = await execute("SDK.aiProviderConfig", []);
|
|
1315
|
+
if (raw == null) {
|
|
1316
|
+
return null;
|
|
1317
|
+
}
|
|
1318
|
+
if (typeof raw !== "object") {
|
|
1319
|
+
throw new SDKError(
|
|
1320
|
+
"[TFO-SDK] SDK.aiProviderConfig returned an invalid response.",
|
|
1321
|
+
SDK_ERROR_CODE.INVALID_RESPONSE,
|
|
1322
|
+
raw
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
return raw;
|
|
1326
|
+
};
|
|
735
1327
|
const documentCommonApi = {
|
|
736
1328
|
async getFileName() {
|
|
737
1329
|
return (await fetchAppInfo()).fileName ?? null;
|
|
@@ -774,7 +1366,7 @@ function createOffice(options) {
|
|
|
774
1366
|
assertConnected();
|
|
775
1367
|
return registerTools(execute, modelContext, { ...registerOptions, module });
|
|
776
1368
|
},
|
|
777
|
-
//
|
|
1369
|
+
// The return casts stay inside the implementation; the public signature is exactly DocumentHandle<M>.
|
|
778
1370
|
getDocument() {
|
|
779
1371
|
assertConnected();
|
|
780
1372
|
if (module === "show") {
|
|
@@ -791,7 +1383,7 @@ function createOffice(options) {
|
|
|
791
1383
|
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
792
1384
|
);
|
|
793
1385
|
},
|
|
794
|
-
//
|
|
1386
|
+
// Application type: the connected module as is (same literal as the OfficeType value; synchronous, no round trip).
|
|
795
1387
|
getApplicationType() {
|
|
796
1388
|
return module;
|
|
797
1389
|
},
|
|
@@ -803,7 +1395,11 @@ function createOffice(options) {
|
|
|
803
1395
|
assertConnected();
|
|
804
1396
|
return fetchAppInfo().then((info) => info.version ?? null);
|
|
805
1397
|
},
|
|
806
|
-
|
|
1398
|
+
getAiProviderConfig() {
|
|
1399
|
+
assertConnected();
|
|
1400
|
+
return fetchAiProviderConfig();
|
|
1401
|
+
},
|
|
1402
|
+
// Client bundle version: a constant, so no assertConnected (still valid after disconnect).
|
|
807
1403
|
getVersion() {
|
|
808
1404
|
return SDK_VERSION;
|
|
809
1405
|
},
|
|
@@ -811,16 +1407,285 @@ function createOffice(options) {
|
|
|
811
1407
|
};
|
|
812
1408
|
}
|
|
813
1409
|
|
|
1410
|
+
// src/builtin/ui-names.generated.ts
|
|
1411
|
+
var UI_NAMES = { "word": { "titleBar": { "logo": 0 }, "menuBar": { "file": { "save": 0, "saveAs": 0, "share": 0, "rename": 0, "download": 0, "downloadPdf": 0, "print": 0 }, "edit": { "undo": 0, "redo": 0, "cut": 0, "copy": 0, "paste": 0, "copyFormat": 0, "clearFormat": 0, "select": 0, "findReplace": 0 }, "view": { "zoom": 0, "formattingMarks": 0, "ruler": 0, "taskPane": 0 }, "insert": { "shape": 0, "image": 0, "table": 0, "chart": 0, "textBox": 0, "webVideo": 0, "symbols": 0, "note": { "footnote": 0, "endnote": 0 }, "memo": 0, "bookmark": 0, "hyperlink": 0 }, "format": { "fontName": 0, "text": { "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "textScript": 0, "fontSize": 0, "letterSpacing": 0, "fontColor": 0, "fontHighlightColor": 0 }, "align": 0, "lineSpacing": 0, "increaseIndent": 0, "decreaseIndent": 0, "paragraphSpacing": { "spaceBefore": 0, "spaceAfter": 0 }, "bulletList": 0, "numberList": 0, "multilevelList": 0, "paragraphStyle": 0, "outlineLevel": 0 }, "page": { "pageSetup": 0, "column": 0, "pageHeader": 0, "pageFooter": 0, "pageNumber": 0, "pageBreak": 0 }, "review": { "trackChanges": 0 }, "tools": { "chat": 0, "storageSearch": 0, "aiAgent": 0 }, "help": { "onlineHelp": 0, "shortcutInfo": 0, "about": 0 } }, "toolBar": { "save": 0, "copyFormat": 0, "clearFormat": 0, "select": 0, "findReplace": 0, "shape": 0, "image": 0, "table": 0, "chart": 0, "textBox": 0, "webVideo": 0, "footnote": 0, "endnote": 0, "memo": 0, "bookmark": 0, "hyperlink": 0, "symbols": 0, "pageSetup": 0, "pageBreak": 0, "taskPane": 0, "storageSearch": 0, "safeFont": 0, "hancomAssistant": 0 }, "sideBar": { "properties": 0, "comments": 0, "trackChanges": 0, "collaborators": 0, "chat": 0, "aiAgent": 0 }, "styleBar": { "undo": 0, "redo": 0, "paragraphStyle": 0, "fontName": 0, "fontSize": 0, "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "fontColor": 0, "fontHighlightColor": 0, "textScript": 0, "letterSpacing": 0, "align": 0, "list": 0, "decreaseIndent": 0, "increaseIndent": 0, "lineSpacing": 0, "spaceBefore": 0, "spaceAfter": 0 } }, "cell": { "titleBar": { "logo": 0 }, "menuBar": { "file": { "save": 0, "saveAs": 0, "share": 0, "rename": 0, "download": 0, "downloadPdf": 0, "downloadCsv": 0, "print": 0 }, "edit": { "undo": 0, "redo": 0, "cut": 0, "copy": 0, "paste": 0, "copyFormat": 0, "fill": 0, "clear": { "clearAll": 0, "clearFormat": 0, "clearContents": 0 }, "row": { "insertRow": 0, "deleteRow": 0, "hideRow": 0, "unhideRow": 0, "rowHeight": 0 }, "column": { "insertColumn": 0, "deleteColumn": 0, "hideColumn": 0, "unhideColumn": 0, "columnWidth": 0 }, "sheet": { "insertSheet": 0, "deleteSheet": 0, "moveCopySheet": 0, "renameSheet": 0, "hideSheet": 0, "unhideSheet": 0, "tabColor": 0 }, "selectAll": 0, "find": { "findReplace": 0, "goTo": 0 } }, "view": { "zoom": 0, "viewerMode": 0, "freezePanes": 0, "showAllMemos": 0, "documentWindow": { "formulaBar": 0, "gridlines": 0 }, "taskPane": 0 }, "insert": { "insertRow": 0, "insertColumn": 0, "insertSheet": 0, "shape": 0, "image": 0, "chart": 0, "textBox": 0, "symbols": 0, "memo": 0, "hyperlink": 0 }, "format": { "fontName": 0, "text": { "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "fontSize": 0, "fontColor": 0 }, "align": { "align": 0, "verticalAlign": 0 }, "increaseIndent": 0, "decreaseIndent": 0, "mergeCenter": 0, "wrapText": 0, "border": 0, "backgroundColor": 0, "increaseDecimal": 0, "decreaseDecimal": 0, "numberFormat": 0, "conditionalFormatting": 0 }, "formula": { "functions": 0, "autoSum": 0, "defineName": 0 }, "data": { "sort": 0, "filter": 0, "pivotTable": 0, "table": 0, "sparkline": 0, "dataValidation": { "dataValidation": 0, "markInvalidData": 0, "clearValidationMarks": 0 }, "textToColumns": 0, "combineText": 0 }, "tools": { "chat": 0, "storageSearch": 0, "aiAgent": 0 }, "help": { "onlineHelp": 0, "shortcutInfo": 0, "about": 0 } }, "toolBar": { "save": 0, "copyFormat": 0, "clear": 0, "find": 0, "shape": 0, "image": 0, "table": 0, "chart": 0, "memo": 0, "hyperlink": 0, "symbols": 0, "conditionalFormatting": 0, "functions": 0, "autoSum": 0, "defineName": 0, "filter": 0, "pivotTable": 0, "sparkline": 0, "textToColumns": 0, "combineText": 0, "freezePanes": 0, "taskPane": 0, "storageSearch": 0, "safeFont": 0, "hancomAssistant": 0 }, "sideBar": { "properties": 0, "pivotTable": 0, "table": 0, "collaborators": 0, "chat": 0, "aiAgent": 0 }, "styleBar": { "undo": 0, "redo": 0, "fontName": 0, "fontSize": 0, "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "fontColor": 0, "align": 0, "verticalAlign": 0, "decreaseIndent": 0, "increaseIndent": 0, "border": 0, "backgroundColor": 0, "wrapText": 0, "mergeCenter": 0, "numberFormat": 0, "currency": 0, "percent": 0, "comma": 0, "increaseDecimal": 0, "decreaseDecimal": 0 } }, "show": { "titleBar": { "logo": 0 }, "menuBar": { "file": { "save": 0, "saveAs": 0, "share": 0, "rename": 0, "download": 0, "downloadPdf": 0, "print": 0 }, "edit": { "undo": 0, "redo": 0, "cut": 0, "copy": 0, "paste": 0, "duplicate": 0, "resetSlide": 0, "deleteSlide": 0, "selectAll": 0, "findReplace": 0 }, "view": { "zoom": 0, "slideShow": 0, "slideNote": 0, "taskPane": 0 }, "insert": { "newSlide": 0, "duplicateSlide": 0, "shape": 0, "image": 0, "table": 0, "chart": 0, "textBox": 0, "webVideo": 0, "symbols": 0, "memo": { "newMemo": 0, "showAllMemos": 0 }, "headerFooter": 0, "dateTime": 0, "slideNumber": 0, "hyperlink": 0 }, "format": { "fontName": 0, "text": { "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "textScript": 0, "fontSize": 0, "fontColor": 0 }, "align": 0, "lineSpacing": 0, "paragraphFormat": 0, "increaseIndent": 0, "decreaseIndent": 0, "bulletList": 0, "numberList": 0, "layout": 0, "themeColor": { "builtinThemeColors": 0, "newThemeColor": 0 }, "themeFonts": 0, "themeEffects": 0 }, "transition": { "previewTransition": 0, "slideTransition": 0, "effectOptions": 0, "applyToAllSlides": 0 }, "slide": { "slideShow": 0, "slideShowFromCurrent": 0, "hideSlide": 0, "unhideSlide": 0 }, "tools": { "chat": 0, "storageSearch": 0, "aiAgent": 0 }, "help": { "onlineHelp": 0, "shortcutInfo": 0, "about": 0 } }, "toolBar": { "save": 0, "selectAll": 0, "findReplace": 0, "newSlide": 0, "shape": 0, "image": 0, "table": 0, "chart": 0, "textBox": 0, "webVideo": 0, "memo": 0, "hyperlink": 0, "symbols": 0, "headerFooter": 0, "dateTime": 0, "slideNumber": 0, "layout": 0, "slideShow": 0, "slideShowFromCurrent": 0, "previewTransition": 0, "slideTransition": 0, "effectOptions": 0, "taskPane": 0, "storageSearch": 0, "safeFont": 0, "hancomAssistant": 0 }, "sideBar": { "properties": 0, "comments": 0, "collaborators": 0, "chat": 0, "aiAgent": 0 }, "styleBar": { "undo": 0, "redo": 0, "fontName": 0, "fontSize": 0, "bold": 0, "italic": 0, "underline": 0, "strikethrough": 0, "fontColor": 0, "textScript": 0, "align": 0, "list": 0, "decreaseIndent": 0, "increaseIndent": 0, "lineSpacing": 0 } } };
|
|
1412
|
+
|
|
1413
|
+
// src/ui.ts
|
|
1414
|
+
var UI_CONFIG_VERSION = 1;
|
|
1415
|
+
var UI_CONFIG_PARAM = "uiConfig";
|
|
1416
|
+
var UI_CONFIG_MAX_LENGTH = 8192;
|
|
1417
|
+
var MODE_LIST_KEYS = /* @__PURE__ */ new Set(["disable"]);
|
|
1418
|
+
var ATTR_KEYS = /* @__PURE__ */ new Set(["visible", "items", "url"]);
|
|
1419
|
+
var ITEMS_MARKERS = /* @__PURE__ */ new Set(["separator", "..."]);
|
|
1420
|
+
function invalid(message) {
|
|
1421
|
+
return new SDKError(`[TFO-SDK] ${message}`, SDK_ERROR_CODE.INVALID_ARGUMENT);
|
|
1422
|
+
}
|
|
1423
|
+
function isPlainObject2(value) {
|
|
1424
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
1425
|
+
return false;
|
|
1426
|
+
}
|
|
1427
|
+
const proto = Object.getPrototypeOf(value);
|
|
1428
|
+
return proto === Object.prototype || proto === null;
|
|
1429
|
+
}
|
|
1430
|
+
function checkStringList(value, where) {
|
|
1431
|
+
if (!Array.isArray(value) || value.some((v) => typeof v !== "string")) {
|
|
1432
|
+
throw invalid(`uiConfig: ${where} must be an array of strings.`);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
function checkLevel(level, where) {
|
|
1436
|
+
if (!isPlainObject2(level)) {
|
|
1437
|
+
throw invalid(`uiConfig: ${where} must be an object (e.g. { visible: false }).`);
|
|
1438
|
+
}
|
|
1439
|
+
for (const [key, value] of Object.entries(level)) {
|
|
1440
|
+
const at = `${where}.${key}`;
|
|
1441
|
+
if (key === "visible") {
|
|
1442
|
+
if (typeof value !== "boolean") {
|
|
1443
|
+
throw invalid(`uiConfig: ${at} must be true or false.`);
|
|
1444
|
+
}
|
|
1445
|
+
} else if (key === "items") {
|
|
1446
|
+
checkStringList(value, at);
|
|
1447
|
+
} else if (key === "url") {
|
|
1448
|
+
if (value !== null && typeof value !== "string") {
|
|
1449
|
+
throw invalid(`uiConfig: ${at} must be a string or null.`);
|
|
1450
|
+
}
|
|
1451
|
+
} else {
|
|
1452
|
+
checkLevel(value, at);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
function checkMode(mode, where) {
|
|
1457
|
+
if (!isPlainObject2(mode)) {
|
|
1458
|
+
throw invalid(`uiConfig: ${where} must be an object.`);
|
|
1459
|
+
}
|
|
1460
|
+
for (const [key, value] of Object.entries(mode)) {
|
|
1461
|
+
if (MODE_LIST_KEYS.has(key)) {
|
|
1462
|
+
checkStringList(value, `${where}.${key}`);
|
|
1463
|
+
} else {
|
|
1464
|
+
checkLevel(value, `${where}.${key}`);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
function normalize(config) {
|
|
1469
|
+
if (!isPlainObject2(config)) {
|
|
1470
|
+
throw invalid(
|
|
1471
|
+
"uiConfig: settings must be an object like { editor: { \u2026 }, viewer: { \u2026 } }."
|
|
1472
|
+
);
|
|
1473
|
+
}
|
|
1474
|
+
for (const key of Object.keys(config)) {
|
|
1475
|
+
if (key === "version" || key === "editor" || key === "viewer") {
|
|
1476
|
+
continue;
|
|
1477
|
+
}
|
|
1478
|
+
throw invalid(
|
|
1479
|
+
ATTR_KEYS.has(key) || /Bar$/.test(key) || MODE_LIST_KEYS.has(key) ? `uiConfig: put '${key}' under editor or viewer \u2014 { editor: { ${key}: \u2026 } }.` : `uiConfig: unknown key '${key}'. Use version, editor and viewer.`
|
|
1480
|
+
);
|
|
1481
|
+
}
|
|
1482
|
+
if (config.version !== void 0 && config.version !== UI_CONFIG_VERSION) {
|
|
1483
|
+
throw invalid(
|
|
1484
|
+
`uiConfig: unsupported version ${String(config.version)} (supported: ${UI_CONFIG_VERSION}).`
|
|
1485
|
+
);
|
|
1486
|
+
}
|
|
1487
|
+
for (const mode of ["editor", "viewer"]) {
|
|
1488
|
+
if (config[mode] !== void 0) {
|
|
1489
|
+
checkMode(config[mode], mode);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
const copy = JSON.parse(JSON.stringify(config));
|
|
1493
|
+
copy.version = UI_CONFIG_VERSION;
|
|
1494
|
+
return copy;
|
|
1495
|
+
}
|
|
1496
|
+
var MODULES = Object.keys(UI_NAMES);
|
|
1497
|
+
var disableNames;
|
|
1498
|
+
function getDisableNames() {
|
|
1499
|
+
if (!disableNames) {
|
|
1500
|
+
const names = /* @__PURE__ */ new Set();
|
|
1501
|
+
const walk = (tree) => {
|
|
1502
|
+
for (const [name, sub] of Object.entries(tree)) {
|
|
1503
|
+
if (sub === 0) {
|
|
1504
|
+
names.add(name);
|
|
1505
|
+
} else {
|
|
1506
|
+
walk(sub);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
};
|
|
1510
|
+
for (const m of MODULES) {
|
|
1511
|
+
for (const area of Object.values(UI_NAMES[m])) {
|
|
1512
|
+
walk(area);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
disableNames = names;
|
|
1516
|
+
}
|
|
1517
|
+
return disableNames;
|
|
1518
|
+
}
|
|
1519
|
+
function childrenOf(nodes, name) {
|
|
1520
|
+
const found = nodes.filter((n) => Object.prototype.hasOwnProperty.call(n, name)).map((n) => n[name]);
|
|
1521
|
+
return found.length ? found.filter((n) => n !== 0) : void 0;
|
|
1522
|
+
}
|
|
1523
|
+
function checkLevelNames(level, nodes, where, out) {
|
|
1524
|
+
const known = (name) => nodes.some((n) => Object.prototype.hasOwnProperty.call(n, name));
|
|
1525
|
+
for (const [key, value] of Object.entries(level)) {
|
|
1526
|
+
if (key === "items") {
|
|
1527
|
+
for (const name of value) {
|
|
1528
|
+
if (!ITEMS_MARKERS.has(name) && !known(name)) {
|
|
1529
|
+
out.push({ path: `${where}.items`, name });
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
} else if (!ATTR_KEYS.has(key)) {
|
|
1533
|
+
const sub = childrenOf(nodes, key);
|
|
1534
|
+
if (sub === void 0) {
|
|
1535
|
+
out.push({ path: `${where}.${key}` });
|
|
1536
|
+
} else {
|
|
1537
|
+
checkLevelNames(value, sub, `${where}.${key}`, out);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
function findUnknownNames(config, modules = MODULES) {
|
|
1543
|
+
const out = [];
|
|
1544
|
+
const settings = config;
|
|
1545
|
+
for (const mode of ["editor", "viewer"]) {
|
|
1546
|
+
const modeConfig = settings[mode];
|
|
1547
|
+
if (!modeConfig) {
|
|
1548
|
+
continue;
|
|
1549
|
+
}
|
|
1550
|
+
for (const [key, value] of Object.entries(modeConfig)) {
|
|
1551
|
+
if (key === "disable") {
|
|
1552
|
+
for (const name of value) {
|
|
1553
|
+
if (!getDisableNames().has(name)) {
|
|
1554
|
+
out.push({ path: `${mode}.disable`, name });
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
continue;
|
|
1558
|
+
}
|
|
1559
|
+
const areas = modules.map((m) => UI_NAMES[m][key]).filter((a) => a !== void 0);
|
|
1560
|
+
if (!areas.length) {
|
|
1561
|
+
out.push({ path: `${mode}.${key}` });
|
|
1562
|
+
} else {
|
|
1563
|
+
checkLevelNames(value, areas, `${mode}.${key}`, out);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
return out;
|
|
1568
|
+
}
|
|
1569
|
+
function warnUnknownNames(config, module) {
|
|
1570
|
+
const unknown = findUnknownNames(config, module ? [module] : MODULES);
|
|
1571
|
+
if (!unknown.length) {
|
|
1572
|
+
return;
|
|
1573
|
+
}
|
|
1574
|
+
const list = unknown.map((u) => u.name ? `${u.path}: ${u.name}` : u.path).join(", ");
|
|
1575
|
+
const where = module ? `the ${module} editor` : "any module";
|
|
1576
|
+
console.warn(
|
|
1577
|
+
`[TFO-SDK] ui: names the SDK does not know in ${where} \u2014 ${list}. They are sent anyway; check the spelling and location (app.ui.getNames() lists the editor's names). An editor newer than this SDK may still apply them.`
|
|
1578
|
+
);
|
|
1579
|
+
}
|
|
1580
|
+
var APP_PARAM_MODULE = {
|
|
1581
|
+
WORD: "word",
|
|
1582
|
+
WRITE: "word",
|
|
1583
|
+
CELL: "cell",
|
|
1584
|
+
CALC: "cell",
|
|
1585
|
+
SHOW: "show"
|
|
1586
|
+
};
|
|
1587
|
+
function moduleOfOpenUrl(url) {
|
|
1588
|
+
const app = url.searchParams.get("app");
|
|
1589
|
+
return app ? APP_PARAM_MODULE[app.toUpperCase().split("_")[0] ?? ""] : void 0;
|
|
1590
|
+
}
|
|
1591
|
+
function encodeConfig(config) {
|
|
1592
|
+
const bytes = new TextEncoder().encode(JSON.stringify(config));
|
|
1593
|
+
let binary = "";
|
|
1594
|
+
for (let i = 0; i < bytes.length; i += 32768) {
|
|
1595
|
+
binary += String.fromCharCode(...bytes.subarray(i, i + 32768));
|
|
1596
|
+
}
|
|
1597
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
1598
|
+
}
|
|
1599
|
+
function toUrlWith(config, url, module) {
|
|
1600
|
+
const value = encodeConfig(config);
|
|
1601
|
+
if (value.length > UI_CONFIG_MAX_LENGTH) {
|
|
1602
|
+
throw invalid(
|
|
1603
|
+
`uiConfig: the encoded settings are ${value.length} characters \u2014 the open URL takes up to ${UI_CONFIG_MAX_LENGTH}. Apply the rest with app.ui.configure() after opening.`
|
|
1604
|
+
);
|
|
1605
|
+
}
|
|
1606
|
+
let target;
|
|
1607
|
+
try {
|
|
1608
|
+
target = new URL(url instanceof URL ? url.href : url, window.location.href);
|
|
1609
|
+
} catch {
|
|
1610
|
+
throw invalid(`uiConfig.toUrl(): invalid url: ${String(url)}`);
|
|
1611
|
+
}
|
|
1612
|
+
target.searchParams.set(UI_CONFIG_PARAM, value);
|
|
1613
|
+
warnUnknownNames(config, module ?? moduleOfOpenUrl(target));
|
|
1614
|
+
return target.href;
|
|
1615
|
+
}
|
|
1616
|
+
var UI_CONFIG_OBJECT = /* @__PURE__ */ Symbol.for("@thinkfree.dev/tfo-sdk/uiConfigObject");
|
|
1617
|
+
function uiConfig(config) {
|
|
1618
|
+
const checked = normalize(config);
|
|
1619
|
+
return Object.freeze({
|
|
1620
|
+
config: checked,
|
|
1621
|
+
toUrl: (url) => toUrlWith(checked, url),
|
|
1622
|
+
[UI_CONFIG_OBJECT]: true
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
function toUiConfigObject(value) {
|
|
1626
|
+
if (value !== null && typeof value === "object" && value[UI_CONFIG_OBJECT] === true) {
|
|
1627
|
+
return value;
|
|
1628
|
+
}
|
|
1629
|
+
return uiConfig(value);
|
|
1630
|
+
}
|
|
1631
|
+
function openUrlWithUi(value, url, module) {
|
|
1632
|
+
return toUrlWith(toUiConfigObject(value).config, url, module);
|
|
1633
|
+
}
|
|
1634
|
+
|
|
814
1635
|
// src/app.ts
|
|
815
1636
|
var READY_PROBE_TIMEOUT_MS = 1e3;
|
|
816
|
-
var READY_PROBE_INTERVAL_MS =
|
|
1637
|
+
var READY_PROBE_INTERVAL_MS = 200;
|
|
817
1638
|
var DEFAULT_READY_LIMIT_MS = 6e4;
|
|
818
|
-
var
|
|
1639
|
+
var DEFAULT_FRAME_ALLOW = "clipboard-read; clipboard-write; fullscreen";
|
|
1640
|
+
var DEFAULT_FRAME_TITLE = "Thinkfree Office";
|
|
1641
|
+
function sharedWeakMap(key) {
|
|
1642
|
+
const symbol = Symbol.for(key);
|
|
1643
|
+
const g = globalThis;
|
|
1644
|
+
const existing = g[symbol];
|
|
1645
|
+
if (existing) {
|
|
1646
|
+
return existing;
|
|
1647
|
+
}
|
|
1648
|
+
const created = /* @__PURE__ */ new WeakMap();
|
|
1649
|
+
g[symbol] = created;
|
|
1650
|
+
return created;
|
|
1651
|
+
}
|
|
1652
|
+
var registry = sharedWeakMap("@thinkfree.dev/tfo-sdk/appRegistry");
|
|
1653
|
+
var views = sharedWeakMap("@thinkfree.dev/tfo-sdk/appViews");
|
|
1654
|
+
function viewOf(iframeEl) {
|
|
1655
|
+
let view = views.get(iframeEl);
|
|
1656
|
+
if (!view) {
|
|
1657
|
+
view = { owned: false, saved: null };
|
|
1658
|
+
views.set(iframeEl, view);
|
|
1659
|
+
}
|
|
1660
|
+
return view;
|
|
1661
|
+
}
|
|
1662
|
+
function hideFrame(iframeEl) {
|
|
1663
|
+
const view = viewOf(iframeEl);
|
|
1664
|
+
if (view.saved) {
|
|
1665
|
+
return;
|
|
1666
|
+
}
|
|
1667
|
+
view.saved = { visibility: iframeEl.style.visibility, inert: iframeEl.hasAttribute("inert") };
|
|
1668
|
+
iframeEl.style.visibility = "hidden";
|
|
1669
|
+
iframeEl.setAttribute("inert", "");
|
|
1670
|
+
}
|
|
1671
|
+
function showFrame(iframeEl) {
|
|
1672
|
+
const view = views.get(iframeEl);
|
|
1673
|
+
if (!view?.saved) {
|
|
1674
|
+
return;
|
|
1675
|
+
}
|
|
1676
|
+
iframeEl.style.visibility = view.saved.visibility;
|
|
1677
|
+
if (!view.saved.inert) {
|
|
1678
|
+
iframeEl.removeAttribute("inert");
|
|
1679
|
+
}
|
|
1680
|
+
view.saved = null;
|
|
1681
|
+
}
|
|
819
1682
|
function deriveFrameworkOrigin(iframeEl) {
|
|
820
|
-
|
|
1683
|
+
return originFromSrc(iframeEl.getAttribute("src") ?? "", "the iframe has no");
|
|
1684
|
+
}
|
|
1685
|
+
function originFromSrc(src, missing) {
|
|
821
1686
|
if (!src || src === "about:blank") {
|
|
822
1687
|
throw new SDKError(
|
|
823
|
-
|
|
1688
|
+
`[TFO-SDK] Cannot derive frameworkOrigin: ${missing} 'src'. Pass options.frameworkOrigin explicitly.`,
|
|
824
1689
|
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
825
1690
|
);
|
|
826
1691
|
}
|
|
@@ -835,37 +1700,72 @@ function deriveFrameworkOrigin(iframeEl) {
|
|
|
835
1700
|
origin = new URL(src, window.location.href).origin;
|
|
836
1701
|
} catch {
|
|
837
1702
|
throw new SDKError(
|
|
838
|
-
`[TFO-SDK] Cannot derive frameworkOrigin from
|
|
1703
|
+
`[TFO-SDK] Cannot derive frameworkOrigin from ${src}. Pass options.frameworkOrigin explicitly.`,
|
|
839
1704
|
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
840
1705
|
);
|
|
841
1706
|
}
|
|
842
1707
|
if (!origin || origin === "null") {
|
|
843
1708
|
throw new SDKError(
|
|
844
|
-
`[TFO-SDK]
|
|
1709
|
+
`[TFO-SDK] The URL has an opaque origin (${src}). Pass options.frameworkOrigin explicitly.`,
|
|
845
1710
|
SDK_ERROR_CODE.INVALID_ARGUMENT
|
|
846
1711
|
);
|
|
847
1712
|
}
|
|
848
1713
|
return origin;
|
|
849
1714
|
}
|
|
850
1715
|
async function waitForOfficeReady(options, limitMs = DEFAULT_READY_LIMIT_MS) {
|
|
1716
|
+
return pollReady(options, limitMs);
|
|
1717
|
+
}
|
|
1718
|
+
async function pollReady(options, limitMs, signal) {
|
|
1719
|
+
signal?.throwIfAborted();
|
|
851
1720
|
const probe = createOffice({ ...options, timeoutMs: READY_PROBE_TIMEOUT_MS });
|
|
852
1721
|
const startedAt = Date.now();
|
|
1722
|
+
let timer;
|
|
1723
|
+
let onAbort;
|
|
853
1724
|
try {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1725
|
+
await new Promise((resolve, reject) => {
|
|
1726
|
+
let settled = false;
|
|
1727
|
+
const finish = (error) => {
|
|
1728
|
+
if (settled) {
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
settled = true;
|
|
1732
|
+
if (error === void 0) {
|
|
1733
|
+
resolve();
|
|
1734
|
+
} else {
|
|
1735
|
+
reject(error);
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
const send = () => {
|
|
1739
|
+
if (settled) {
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
859
1742
|
if (Date.now() - startedAt >= limitMs) {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1743
|
+
finish(
|
|
1744
|
+
new SDKError(
|
|
1745
|
+
`[TFO-SDK] waitForOfficeReady(): editor did not become ready within ${limitMs}ms.`,
|
|
1746
|
+
SDK_ERROR_CODE.TIMEOUT
|
|
1747
|
+
)
|
|
863
1748
|
);
|
|
1749
|
+
return;
|
|
864
1750
|
}
|
|
865
|
-
|
|
1751
|
+
probe.execute("SDK.ready", []).then(
|
|
1752
|
+
() => finish(),
|
|
1753
|
+
() => {
|
|
1754
|
+
}
|
|
1755
|
+
);
|
|
1756
|
+
timer = setTimeout(send, READY_PROBE_INTERVAL_MS);
|
|
1757
|
+
};
|
|
1758
|
+
if (signal) {
|
|
1759
|
+
onAbort = () => finish(signal.reason);
|
|
1760
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
866
1761
|
}
|
|
867
|
-
|
|
1762
|
+
send();
|
|
1763
|
+
});
|
|
868
1764
|
} finally {
|
|
1765
|
+
clearTimeout(timer);
|
|
1766
|
+
if (onAbort) {
|
|
1767
|
+
signal?.removeEventListener("abort", onAbort);
|
|
1768
|
+
}
|
|
869
1769
|
probe.disconnect();
|
|
870
1770
|
}
|
|
871
1771
|
}
|
|
@@ -899,10 +1799,28 @@ function getApp(module, iframeEl, options) {
|
|
|
899
1799
|
return waitForOfficeReady({ module, frameworkOrigin, iframeEl }, limitMs);
|
|
900
1800
|
},
|
|
901
1801
|
disconnect() {
|
|
902
|
-
registry.
|
|
1802
|
+
if (registry.get(iframeEl)?.app === app) {
|
|
1803
|
+
registry.delete(iframeEl);
|
|
1804
|
+
}
|
|
903
1805
|
office.disconnect();
|
|
904
|
-
}
|
|
1806
|
+
},
|
|
1807
|
+
show() {
|
|
1808
|
+
showFrame(iframeEl);
|
|
1809
|
+
},
|
|
1810
|
+
hide() {
|
|
1811
|
+
hideFrame(iframeEl);
|
|
1812
|
+
},
|
|
1813
|
+
async close() {
|
|
1814
|
+
app.disconnect();
|
|
1815
|
+
closeFrame(iframeEl);
|
|
1816
|
+
},
|
|
1817
|
+
iframe: iframeEl,
|
|
1818
|
+
ui: createAppUi(module, office.execute)
|
|
905
1819
|
};
|
|
1820
|
+
Object.defineProperty(app, "visible", {
|
|
1821
|
+
enumerable: true,
|
|
1822
|
+
get: () => !views.get(iframeEl)?.saved
|
|
1823
|
+
});
|
|
906
1824
|
if (module === "cell") {
|
|
907
1825
|
app.getWorkbook = office.getDocument;
|
|
908
1826
|
}
|
|
@@ -910,6 +1828,145 @@ function getApp(module, iframeEl, options) {
|
|
|
910
1828
|
registry.set(iframeEl, { module, app: typedApp });
|
|
911
1829
|
return typedApp;
|
|
912
1830
|
}
|
|
1831
|
+
function unwrapUiResult(raw, method) {
|
|
1832
|
+
const response = raw;
|
|
1833
|
+
if (response && response.success === true && response.result && typeof response.result === "object") {
|
|
1834
|
+
return response.result;
|
|
1835
|
+
}
|
|
1836
|
+
throw new SDKError(`[TFO-SDK] ${method} returned an invalid response.`, SDK_ERROR_CODE.INVALID_RESPONSE, raw);
|
|
1837
|
+
}
|
|
1838
|
+
function createAppUi(module, execute) {
|
|
1839
|
+
return {
|
|
1840
|
+
async configure(config) {
|
|
1841
|
+
const checked = toUiConfigObject(config).config;
|
|
1842
|
+
warnUnknownNames(checked, module);
|
|
1843
|
+
const result = unwrapUiResult(await execute("SDK.ui.configure", [checked]), "SDK.ui.configure");
|
|
1844
|
+
if (!Array.isArray(result.errors)) {
|
|
1845
|
+
throw new SDKError(
|
|
1846
|
+
"[TFO-SDK] SDK.ui.configure returned an invalid response.",
|
|
1847
|
+
SDK_ERROR_CODE.INVALID_RESPONSE,
|
|
1848
|
+
result
|
|
1849
|
+
);
|
|
1850
|
+
}
|
|
1851
|
+
return { errors: result.errors };
|
|
1852
|
+
},
|
|
1853
|
+
async getNames(path) {
|
|
1854
|
+
const isKey = (k) => typeof k === "string" && k !== "";
|
|
1855
|
+
if (!Array.isArray(path) || path.length === 0 || !path.every(isKey)) {
|
|
1856
|
+
throw invalid2(
|
|
1857
|
+
"ui.getNames(): path must be a key path array from the mode (e.g. ['editor', 'menuBar', 'file'])."
|
|
1858
|
+
);
|
|
1859
|
+
}
|
|
1860
|
+
const result = unwrapUiResult(await execute("SDK.ui.getNames", [{ path }]), "SDK.ui.getNames");
|
|
1861
|
+
if (!Array.isArray(result.names)) {
|
|
1862
|
+
throw new SDKError(
|
|
1863
|
+
"[TFO-SDK] SDK.ui.getNames returned an invalid response.",
|
|
1864
|
+
SDK_ERROR_CODE.INVALID_RESPONSE,
|
|
1865
|
+
result
|
|
1866
|
+
);
|
|
1867
|
+
}
|
|
1868
|
+
return result.names;
|
|
1869
|
+
}
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
function closeFrame(iframeEl) {
|
|
1873
|
+
if (views.get(iframeEl)?.owned) {
|
|
1874
|
+
iframeEl.remove();
|
|
1875
|
+
} else {
|
|
1876
|
+
showFrame(iframeEl);
|
|
1877
|
+
}
|
|
1878
|
+
views.delete(iframeEl);
|
|
1879
|
+
}
|
|
1880
|
+
function invalid2(message) {
|
|
1881
|
+
return new SDKError(`[TFO-SDK] ${message}`, SDK_ERROR_CODE.INVALID_ARGUMENT);
|
|
1882
|
+
}
|
|
1883
|
+
function resolveContainer(container) {
|
|
1884
|
+
const el = typeof container === "string" ? document.querySelector(container) : container;
|
|
1885
|
+
if (!el || typeof el !== "object" || typeof el.appendChild !== "function") {
|
|
1886
|
+
throw invalid2(`load(): container not found: ${String(container)}`);
|
|
1887
|
+
}
|
|
1888
|
+
return el;
|
|
1889
|
+
}
|
|
1890
|
+
function checkAppParam(module, src) {
|
|
1891
|
+
let target;
|
|
1892
|
+
try {
|
|
1893
|
+
target = new URL(src, window.location.href);
|
|
1894
|
+
} catch {
|
|
1895
|
+
throw invalid2(`load(): invalid url: ${src}`);
|
|
1896
|
+
}
|
|
1897
|
+
const app = target.searchParams.get("app");
|
|
1898
|
+
const urlModule = moduleOfOpenUrl(target);
|
|
1899
|
+
if (urlModule && urlModule !== module) {
|
|
1900
|
+
throw invalid2(
|
|
1901
|
+
`load(): the url opens '${app}' but the entry is Office.${module}. Use Office.${urlModule}.load().`
|
|
1902
|
+
);
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
function createFrame(frame) {
|
|
1906
|
+
const el = document.createElement("iframe");
|
|
1907
|
+
el.style.width = frame?.width ?? "100%";
|
|
1908
|
+
el.style.height = frame?.height ?? "100%";
|
|
1909
|
+
el.style.border = "0";
|
|
1910
|
+
el.style.display = "block";
|
|
1911
|
+
el.title = frame?.title ?? DEFAULT_FRAME_TITLE;
|
|
1912
|
+
el.setAttribute("allow", frame?.allow ?? DEFAULT_FRAME_ALLOW);
|
|
1913
|
+
if (frame?.className) {
|
|
1914
|
+
el.className = frame.className;
|
|
1915
|
+
}
|
|
1916
|
+
return el;
|
|
1917
|
+
}
|
|
1918
|
+
async function loadApp(module, options, visible) {
|
|
1919
|
+
if (!options || typeof options !== "object") {
|
|
1920
|
+
throw invalid2("load(): options are required.");
|
|
1921
|
+
}
|
|
1922
|
+
const { container, iframe, url, signal } = options;
|
|
1923
|
+
if (container == null === (iframe == null)) {
|
|
1924
|
+
throw invalid2("load(): pass exactly one of options.container and options.iframe.");
|
|
1925
|
+
}
|
|
1926
|
+
if (iframe != null && (typeof iframe !== "object" || iframe.tagName !== "IFRAME")) {
|
|
1927
|
+
throw invalid2("load(): options.iframe must be an <iframe> element.");
|
|
1928
|
+
}
|
|
1929
|
+
const parent = container != null ? resolveContainer(container) : null;
|
|
1930
|
+
const src = url instanceof URL ? url.href : url;
|
|
1931
|
+
if (typeof src !== "string" || !src) {
|
|
1932
|
+
throw invalid2("load(): options.url is required.");
|
|
1933
|
+
}
|
|
1934
|
+
checkAppParam(module, src);
|
|
1935
|
+
const frameworkOrigin = options.frameworkOrigin ?? originFromSrc(src, "options.url has no");
|
|
1936
|
+
const openSrc = options.ui !== void 0 ? openUrlWithUi(options.ui, src, module) : src;
|
|
1937
|
+
signal?.throwIfAborted();
|
|
1938
|
+
const iframeEl = iframe ?? createFrame(options.frame);
|
|
1939
|
+
registry.get(iframeEl)?.app.disconnect();
|
|
1940
|
+
viewOf(iframeEl).owned = !iframe;
|
|
1941
|
+
if (!visible) {
|
|
1942
|
+
hideFrame(iframeEl);
|
|
1943
|
+
}
|
|
1944
|
+
iframeEl.src = openSrc;
|
|
1945
|
+
parent?.appendChild(iframeEl);
|
|
1946
|
+
let app;
|
|
1947
|
+
try {
|
|
1948
|
+
app = getApp(module, iframeEl, {
|
|
1949
|
+
frameworkOrigin,
|
|
1950
|
+
...options.timeoutMs !== void 0 ? { timeoutMs: options.timeoutMs } : {}
|
|
1951
|
+
});
|
|
1952
|
+
await pollReady(
|
|
1953
|
+
{ module, frameworkOrigin, iframeEl },
|
|
1954
|
+
options.readyLimitMs ?? DEFAULT_READY_LIMIT_MS,
|
|
1955
|
+
signal
|
|
1956
|
+
);
|
|
1957
|
+
return app;
|
|
1958
|
+
} catch (e) {
|
|
1959
|
+
app?.disconnect();
|
|
1960
|
+
closeFrame(iframeEl);
|
|
1961
|
+
throw e;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
function loaders(module) {
|
|
1965
|
+
return {
|
|
1966
|
+
load: (options) => loadApp(module, options, false),
|
|
1967
|
+
open: (options) => loadApp(module, options, true)
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
913
1970
|
function word(iframeEl, options) {
|
|
914
1971
|
return getApp("word", iframeEl, options);
|
|
915
1972
|
}
|
|
@@ -920,480 +1977,481 @@ function show(iframeEl, options) {
|
|
|
920
1977
|
return getApp("show", iframeEl, options);
|
|
921
1978
|
}
|
|
922
1979
|
var Office = {
|
|
923
|
-
word,
|
|
924
|
-
cell,
|
|
925
|
-
show
|
|
1980
|
+
word: Object.assign(word, loaders("word")),
|
|
1981
|
+
cell: Object.assign(cell, loaders("cell")),
|
|
1982
|
+
show: Object.assign(show, loaders("show")),
|
|
1983
|
+
uiConfig
|
|
926
1984
|
};
|
|
927
1985
|
|
|
928
1986
|
// src/builtin/common-api.generated.ts
|
|
929
1987
|
var LineDash = {
|
|
930
|
-
/**
|
|
1988
|
+
/** Solid. */
|
|
931
1989
|
SOLID: "solid",
|
|
932
|
-
/**
|
|
1990
|
+
/** Dot. */
|
|
933
1991
|
DOT: "dot",
|
|
934
|
-
/**
|
|
1992
|
+
/** Dash. */
|
|
935
1993
|
DASH: "dash",
|
|
936
|
-
/**
|
|
1994
|
+
/** Long Dash. */
|
|
937
1995
|
LG_DASH: "lgDash",
|
|
938
|
-
/**
|
|
1996
|
+
/** Dash Dot. */
|
|
939
1997
|
DASH_DOT: "dashDot",
|
|
940
|
-
/**
|
|
1998
|
+
/** Long Dash Dot. */
|
|
941
1999
|
LG_DASH_DOT: "lgDashDot",
|
|
942
|
-
/**
|
|
2000
|
+
/** Long Dash Dot Dot. */
|
|
943
2001
|
LG_DASH_DOT_DOT: "lgDashDotDot",
|
|
944
|
-
/**
|
|
2002
|
+
/** Square Dot. */
|
|
945
2003
|
SYS_DASH: "sysDash",
|
|
946
|
-
/**
|
|
2004
|
+
/** Round Dot. */
|
|
947
2005
|
SYS_DOT: "sysDot",
|
|
948
|
-
/**
|
|
2006
|
+
/** System Dash Dot. */
|
|
949
2007
|
SYS_DASH_DOT: "sysDashDot",
|
|
950
|
-
/**
|
|
2008
|
+
/** System Dash Dot Dot. */
|
|
951
2009
|
SYS_DASH_DOT_DOT: "sysDashDotDot"
|
|
952
2010
|
};
|
|
953
2011
|
var ShapePreset = {
|
|
954
|
-
/**
|
|
2012
|
+
/** Line. */
|
|
955
2013
|
LINE: "line",
|
|
956
|
-
/**
|
|
2014
|
+
/** Elbow Connector. */
|
|
957
2015
|
BENT_CONNECTOR: "bentConnector3",
|
|
958
|
-
/**
|
|
2016
|
+
/** Curved Connector. */
|
|
959
2017
|
CURVED_CONNECTOR: "curvedConnector3",
|
|
960
|
-
/**
|
|
2018
|
+
/** Rectangle. */
|
|
961
2019
|
RECT: "rect",
|
|
962
|
-
/**
|
|
2020
|
+
/** Rounded Rectangle. */
|
|
963
2021
|
ROUND_RECT: "roundRect",
|
|
964
|
-
/**
|
|
2022
|
+
/** Snip Single Corner Rectangle. */
|
|
965
2023
|
SNIP_1_RECT: "snip1Rect",
|
|
966
|
-
/**
|
|
2024
|
+
/** Snip Same Side Corner Rectangle. */
|
|
967
2025
|
SNIP_2_SAME_RECT: "snip2SameRect",
|
|
968
|
-
/**
|
|
2026
|
+
/** Snip Diagonal Corner Rectangle. */
|
|
969
2027
|
SNIP_2_DIAG_RECT: "snip2DiagRect",
|
|
970
|
-
/**
|
|
2028
|
+
/** Snip and Round Single Corner Rectangle. */
|
|
971
2029
|
SNIP_ROUND_RECT: "snipRoundRect",
|
|
972
|
-
/**
|
|
2030
|
+
/** Round Single Corner Rectangle. */
|
|
973
2031
|
ROUND_1_RECT: "round1Rect",
|
|
974
|
-
/**
|
|
2032
|
+
/** Round Same Side Corner Rectangle. */
|
|
975
2033
|
ROUND_2_SAME_RECT: "round2SameRect",
|
|
976
|
-
/**
|
|
2034
|
+
/** Round Diagonal Corner Rectangle. */
|
|
977
2035
|
ROUND_2_DIAG_RECT: "round2DiagRect",
|
|
978
|
-
/**
|
|
2036
|
+
/** Oval. */
|
|
979
2037
|
ELLIPSE: "ellipse",
|
|
980
|
-
/**
|
|
2038
|
+
/** Isosceles Triangle. */
|
|
981
2039
|
TRIANGLE: "triangle",
|
|
982
|
-
/**
|
|
2040
|
+
/** Right Triangle. */
|
|
983
2041
|
RT_TRIANGLE: "rtTriangle",
|
|
984
|
-
/**
|
|
2042
|
+
/** Parallelogram. */
|
|
985
2043
|
PARALLELOGRAM: "parallelogram",
|
|
986
|
-
/**
|
|
2044
|
+
/** Trapezoid. */
|
|
987
2045
|
TRAPEZOID: "trapezoid",
|
|
988
|
-
/**
|
|
2046
|
+
/** Diamond. */
|
|
989
2047
|
DIAMOND: "diamond",
|
|
990
|
-
/**
|
|
2048
|
+
/** Regular Pentagon. */
|
|
991
2049
|
PENTAGON: "pentagon",
|
|
992
|
-
/**
|
|
2050
|
+
/** Hexagon. */
|
|
993
2051
|
HEXAGON: "hexagon",
|
|
994
|
-
/**
|
|
2052
|
+
/** Heptagon. */
|
|
995
2053
|
HEPTAGON: "heptagon",
|
|
996
|
-
/**
|
|
2054
|
+
/** Octagon. */
|
|
997
2055
|
OCTAGON: "octagon",
|
|
998
|
-
/**
|
|
2056
|
+
/** Decagon. */
|
|
999
2057
|
DECAGON: "decagon",
|
|
1000
|
-
/**
|
|
2058
|
+
/** Dodecagon. */
|
|
1001
2059
|
DODECAGON: "dodecagon",
|
|
1002
|
-
/**
|
|
2060
|
+
/** Pie Wedge. */
|
|
1003
2061
|
PIE_WEDGE: "pieWedge",
|
|
1004
|
-
/**
|
|
2062
|
+
/** Partial Circle. */
|
|
1005
2063
|
PIE: "pie",
|
|
1006
|
-
/**
|
|
2064
|
+
/** Chord. */
|
|
1007
2065
|
CHORD: "chord",
|
|
1008
|
-
/**
|
|
2066
|
+
/** Teardrop. */
|
|
1009
2067
|
TEARDROP: "teardrop",
|
|
1010
|
-
/**
|
|
2068
|
+
/** Frame. */
|
|
1011
2069
|
FRAME: "frame",
|
|
1012
|
-
/**
|
|
2070
|
+
/** Half Frame. */
|
|
1013
2071
|
HALF_FRAME: "halfFrame",
|
|
1014
|
-
/**
|
|
2072
|
+
/** L-Shape. */
|
|
1015
2073
|
CORNER: "corner",
|
|
1016
|
-
/**
|
|
2074
|
+
/** Diagonal Stripe. */
|
|
1017
2075
|
DIAG_STRIPE: "diagStripe",
|
|
1018
|
-
/**
|
|
2076
|
+
/** Cross. */
|
|
1019
2077
|
PLUS: "plus",
|
|
1020
|
-
/**
|
|
2078
|
+
/** Plaque. */
|
|
1021
2079
|
PLAQUE: "plaque",
|
|
1022
|
-
/**
|
|
2080
|
+
/** Can. */
|
|
1023
2081
|
CAN: "can",
|
|
1024
|
-
/**
|
|
2082
|
+
/** Cube. */
|
|
1025
2083
|
CUBE: "cube",
|
|
1026
|
-
/**
|
|
2084
|
+
/** Bevel. */
|
|
1027
2085
|
BEVEL: "bevel",
|
|
1028
|
-
/**
|
|
2086
|
+
/** Donut. */
|
|
1029
2087
|
DONUT: "donut",
|
|
1030
|
-
/**
|
|
2088
|
+
/** No Symbol. */
|
|
1031
2089
|
NO_SMOKING: "noSmoking",
|
|
1032
|
-
/**
|
|
2090
|
+
/** Block Arc. */
|
|
1033
2091
|
BLOCK_ARC: "blockArc",
|
|
1034
|
-
/**
|
|
2092
|
+
/** Folded Corner. */
|
|
1035
2093
|
FOLDED_CORNER: "foldedCorner",
|
|
1036
|
-
/**
|
|
2094
|
+
/** Smiley Face. */
|
|
1037
2095
|
SMILEY_FACE: "smileyFace",
|
|
1038
|
-
/**
|
|
2096
|
+
/** Heart. */
|
|
1039
2097
|
HEART: "heart",
|
|
1040
|
-
/**
|
|
2098
|
+
/** Funnel. */
|
|
1041
2099
|
FUNNEL: "funnel",
|
|
1042
|
-
/**
|
|
2100
|
+
/** Gear 6. */
|
|
1043
2101
|
GEAR_6: "gear6",
|
|
1044
|
-
/**
|
|
2102
|
+
/** Gear 9. */
|
|
1045
2103
|
GEAR_9: "gear9",
|
|
1046
|
-
/**
|
|
2104
|
+
/** Lightning Bolt. */
|
|
1047
2105
|
LIGHTNING_BOLT: "lightningBolt",
|
|
1048
|
-
/**
|
|
2106
|
+
/** Sun. */
|
|
1049
2107
|
SUN: "sun",
|
|
1050
|
-
/**
|
|
2108
|
+
/** Moon. */
|
|
1051
2109
|
MOON: "moon",
|
|
1052
|
-
/**
|
|
2110
|
+
/** Cloud. */
|
|
1053
2111
|
CLOUD: "cloud",
|
|
1054
|
-
/**
|
|
2112
|
+
/** Arc. */
|
|
1055
2113
|
ARC: "arc",
|
|
1056
|
-
/**
|
|
2114
|
+
/** Double Bracket. */
|
|
1057
2115
|
BRACKET_PAIR: "bracketPair",
|
|
1058
|
-
/**
|
|
2116
|
+
/** Double Brace. */
|
|
1059
2117
|
BRACE_PAIR: "bracePair",
|
|
1060
|
-
/**
|
|
2118
|
+
/** Left Bracket. */
|
|
1061
2119
|
LEFT_BRACKET: "leftBracket",
|
|
1062
|
-
/**
|
|
2120
|
+
/** Right Bracket. */
|
|
1063
2121
|
RIGHT_BRACKET: "rightBracket",
|
|
1064
|
-
/**
|
|
2122
|
+
/** Left Brace. */
|
|
1065
2123
|
LEFT_BRACE: "leftBrace",
|
|
1066
|
-
/**
|
|
2124
|
+
/** Right Brace. */
|
|
1067
2125
|
RIGHT_BRACE: "rightBrace",
|
|
1068
|
-
/**
|
|
2126
|
+
/** Right Arrow. */
|
|
1069
2127
|
RIGHT_ARROW: "rightArrow",
|
|
1070
|
-
/**
|
|
2128
|
+
/** Left Arrow. */
|
|
1071
2129
|
LEFT_ARROW: "leftArrow",
|
|
1072
|
-
/**
|
|
2130
|
+
/** Up Arrow. */
|
|
1073
2131
|
UP_ARROW: "upArrow",
|
|
1074
|
-
/**
|
|
2132
|
+
/** Down Arrow. */
|
|
1075
2133
|
DOWN_ARROW: "downArrow",
|
|
1076
|
-
/**
|
|
2134
|
+
/** Left-Right Arrow. */
|
|
1077
2135
|
LEFT_RIGHT_ARROW: "leftRightArrow",
|
|
1078
|
-
/**
|
|
2136
|
+
/** Up-Down Arrow. */
|
|
1079
2137
|
UP_DOWN_ARROW: "upDownArrow",
|
|
1080
|
-
/**
|
|
2138
|
+
/** Quad Arrow. */
|
|
1081
2139
|
QUAD_ARROW: "quadArrow",
|
|
1082
|
-
/**
|
|
2140
|
+
/** Left-Right-Up Arrow. */
|
|
1083
2141
|
LEFT_RIGHT_UP_ARROW: "leftRightUpArrow",
|
|
1084
|
-
/**
|
|
2142
|
+
/** Bent Arrow. */
|
|
1085
2143
|
BENT_ARROW: "bentArrow",
|
|
1086
|
-
/** U
|
|
2144
|
+
/** U-Turn Arrow. */
|
|
1087
2145
|
UTURN_ARROW: "uturnArrow",
|
|
1088
|
-
/**
|
|
2146
|
+
/** Left-Up Arrow. */
|
|
1089
2147
|
LEFT_UP_ARROW: "leftUpArrow",
|
|
1090
|
-
/**
|
|
2148
|
+
/** Bent-Up Arrow. */
|
|
1091
2149
|
BENT_UP_ARROW: "bentUpArrow",
|
|
1092
|
-
/**
|
|
2150
|
+
/** Curved Right Arrow. */
|
|
1093
2151
|
CURVED_RIGHT_ARROW: "curvedRightArrow",
|
|
1094
|
-
/**
|
|
2152
|
+
/** Curved Left Arrow. */
|
|
1095
2153
|
CURVED_LEFT_ARROW: "curvedLeftArrow",
|
|
1096
|
-
/**
|
|
2154
|
+
/** Curved Up Arrow. */
|
|
1097
2155
|
CURVED_UP_ARROW: "curvedUpArrow",
|
|
1098
|
-
/**
|
|
2156
|
+
/** Curved Down Arrow. */
|
|
1099
2157
|
CURVED_DOWN_ARROW: "curvedDownArrow",
|
|
1100
|
-
/**
|
|
2158
|
+
/** Striped Right Arrow. */
|
|
1101
2159
|
STRIPED_RIGHT_ARROW: "stripedRightArrow",
|
|
1102
|
-
/**
|
|
2160
|
+
/** Notched Right Arrow. */
|
|
1103
2161
|
NOTCHED_RIGHT_ARROW: "notchedRightArrow",
|
|
1104
|
-
/**
|
|
2162
|
+
/** Pentagon (Home Plate). */
|
|
1105
2163
|
HOME_PLATE: "homePlate",
|
|
1106
|
-
/**
|
|
2164
|
+
/** Chevron. */
|
|
1107
2165
|
CHEVRON: "chevron",
|
|
1108
|
-
/**
|
|
2166
|
+
/** Right Arrow Callout. */
|
|
1109
2167
|
RIGHT_ARROW_CALLOUT: "rightArrowCallout",
|
|
1110
|
-
/**
|
|
2168
|
+
/** Left Arrow Callout. */
|
|
1111
2169
|
LEFT_ARROW_CALLOUT: "leftArrowCallout",
|
|
1112
|
-
/**
|
|
2170
|
+
/** Up Arrow Callout. */
|
|
1113
2171
|
UP_ARROW_CALLOUT: "upArrowCallout",
|
|
1114
|
-
/**
|
|
2172
|
+
/** Down Arrow Callout. */
|
|
1115
2173
|
DOWN_ARROW_CALLOUT: "downArrowCallout",
|
|
1116
|
-
/**
|
|
2174
|
+
/** Left-Right Arrow Callout. */
|
|
1117
2175
|
LEFT_RIGHT_ARROW_CALLOUT: "leftRightArrowCallout",
|
|
1118
|
-
/**
|
|
2176
|
+
/** Up-Down Arrow Callout. */
|
|
1119
2177
|
UP_DOWN_ARROW_CALLOUT: "upDownArrowCallout",
|
|
1120
|
-
/**
|
|
2178
|
+
/** Quad Arrow Callout. */
|
|
1121
2179
|
QUAD_ARROW_CALLOUT: "quadArrowCallout",
|
|
1122
|
-
/**
|
|
2180
|
+
/** Circular Arrow. */
|
|
1123
2181
|
CIRCULAR_ARROW: "circularArrow",
|
|
1124
|
-
/**
|
|
2182
|
+
/** Left Circular Arrow. */
|
|
1125
2183
|
LEFT_CIRCULAR_ARROW: "leftCircularArrow",
|
|
1126
|
-
/**
|
|
2184
|
+
/** Swoosh Arrow. */
|
|
1127
2185
|
SWOOSH_ARROW: "swooshArrow",
|
|
1128
|
-
/**
|
|
2186
|
+
/** Left-Right Ribbon. */
|
|
1129
2187
|
LEFT_RIGHT_RIBBON: "leftRightRibbon",
|
|
1130
|
-
/**
|
|
2188
|
+
/** Explosion 1. */
|
|
1131
2189
|
IRREGULAR_SEAL_1: "irregularSeal1",
|
|
1132
|
-
/**
|
|
2190
|
+
/** Explosion 2. */
|
|
1133
2191
|
IRREGULAR_SEAL_2: "irregularSeal2",
|
|
1134
|
-
/**
|
|
2192
|
+
/** 4-Point Star. */
|
|
1135
2193
|
STAR_4: "star4",
|
|
1136
|
-
/**
|
|
2194
|
+
/** 5-Point Star. */
|
|
1137
2195
|
STAR_5: "star5",
|
|
1138
|
-
/**
|
|
2196
|
+
/** 6-Point Star. */
|
|
1139
2197
|
STAR_6: "star6",
|
|
1140
|
-
/**
|
|
2198
|
+
/** 7-Point Star. */
|
|
1141
2199
|
STAR_7: "star7",
|
|
1142
|
-
/**
|
|
2200
|
+
/** 8-Point Star. */
|
|
1143
2201
|
STAR_8: "star8",
|
|
1144
|
-
/**
|
|
2202
|
+
/** 10-Point Star. */
|
|
1145
2203
|
STAR_10: "star10",
|
|
1146
|
-
/**
|
|
2204
|
+
/** 12-Point Star. */
|
|
1147
2205
|
STAR_12: "star12",
|
|
1148
|
-
/**
|
|
2206
|
+
/** 16-Point Star. */
|
|
1149
2207
|
STAR_16: "star16",
|
|
1150
|
-
/**
|
|
2208
|
+
/** 24-Point Star. */
|
|
1151
2209
|
STAR_24: "star24",
|
|
1152
|
-
/**
|
|
2210
|
+
/** 32-Point Star. */
|
|
1153
2211
|
STAR_32: "star32",
|
|
1154
|
-
/**
|
|
2212
|
+
/** Up Ribbon. */
|
|
1155
2213
|
RIBBON_2: "ribbon2",
|
|
1156
|
-
/**
|
|
2214
|
+
/** Down Ribbon. */
|
|
1157
2215
|
RIBBON: "ribbon",
|
|
1158
|
-
/**
|
|
2216
|
+
/** Curved Up Ribbon. */
|
|
1159
2217
|
ELLIPSE_RIBBON_2: "ellipseRibbon2",
|
|
1160
|
-
/**
|
|
2218
|
+
/** Curved Down Ribbon. */
|
|
1161
2219
|
ELLIPSE_RIBBON: "ellipseRibbon",
|
|
1162
|
-
/**
|
|
2220
|
+
/** Vertical Scroll. */
|
|
1163
2221
|
VERTICAL_SCROLL: "verticalScroll",
|
|
1164
|
-
/**
|
|
2222
|
+
/** Horizontal Scroll. */
|
|
1165
2223
|
HORIZONTAL_SCROLL: "horizontalScroll",
|
|
1166
|
-
/**
|
|
2224
|
+
/** Wave. */
|
|
1167
2225
|
WAVE: "wave",
|
|
1168
|
-
/**
|
|
2226
|
+
/** Double Wave. */
|
|
1169
2227
|
DOUBLE_WAVE: "doubleWave",
|
|
1170
|
-
/**
|
|
2228
|
+
/** Rectangular Callout. */
|
|
1171
2229
|
WEDGE_RECT_CALLOUT: "wedgeRectCallout",
|
|
1172
|
-
/**
|
|
2230
|
+
/** Rounded Rectangular Callout. */
|
|
1173
2231
|
WEDGE_ROUND_RECT_CALLOUT: "wedgeRoundRectCallout",
|
|
1174
|
-
/**
|
|
2232
|
+
/** Oval Callout. */
|
|
1175
2233
|
WEDGE_ELLIPSE_CALLOUT: "wedgeEllipseCallout",
|
|
1176
|
-
/**
|
|
2234
|
+
/** Cloud Callout. */
|
|
1177
2235
|
CLOUD_CALLOUT: "cloudCallout",
|
|
1178
|
-
/**
|
|
2236
|
+
/** Line Callout 1 (No Border). */
|
|
1179
2237
|
CALLOUT_1: "callout1",
|
|
1180
|
-
/**
|
|
2238
|
+
/** Line Callout 2 (No Border). */
|
|
1181
2239
|
CALLOUT_2: "callout2",
|
|
1182
|
-
/**
|
|
2240
|
+
/** Line Callout 3 (No Border). */
|
|
1183
2241
|
CALLOUT_3: "callout3",
|
|
1184
|
-
/**
|
|
2242
|
+
/** Line Callout 1 (Accent Bar). */
|
|
1185
2243
|
ACCENT_CALLOUT_1: "accentCallout1",
|
|
1186
|
-
/**
|
|
2244
|
+
/** Line Callout 2 (Accent Bar). */
|
|
1187
2245
|
ACCENT_CALLOUT_2: "accentCallout2",
|
|
1188
|
-
/**
|
|
2246
|
+
/** Line Callout 3 (Accent Bar). */
|
|
1189
2247
|
ACCENT_CALLOUT_3: "accentCallout3",
|
|
1190
|
-
/**
|
|
2248
|
+
/** Line Callout 1. */
|
|
1191
2249
|
BORDER_CALLOUT_1: "borderCallout1",
|
|
1192
|
-
/**
|
|
2250
|
+
/** Line Callout 2. */
|
|
1193
2251
|
BORDER_CALLOUT_2: "borderCallout2",
|
|
1194
|
-
/**
|
|
2252
|
+
/** Line Callout 3. */
|
|
1195
2253
|
BORDER_CALLOUT_3: "borderCallout3",
|
|
1196
|
-
/**
|
|
2254
|
+
/** Line Callout 1 (Border and Accent Bar). */
|
|
1197
2255
|
ACCENT_BORDER_CALLOUT_1: "accentBorderCallout1",
|
|
1198
|
-
/**
|
|
2256
|
+
/** Line Callout 2 (Border and Accent Bar). */
|
|
1199
2257
|
ACCENT_BORDER_CALLOUT_2: "accentBorderCallout2",
|
|
1200
|
-
/**
|
|
2258
|
+
/** Line Callout 3 (Border and Accent Bar). */
|
|
1201
2259
|
ACCENT_BORDER_CALLOUT_3: "accentBorderCallout3",
|
|
1202
|
-
/**
|
|
2260
|
+
/** Flowchart: Process. */
|
|
1203
2261
|
FLOW_CHART_PROCESS: "flowChartProcess",
|
|
1204
|
-
/**
|
|
2262
|
+
/** Flowchart: Alternate Process. */
|
|
1205
2263
|
FLOW_CHART_ALTERNATE_PROCESS: "flowChartAlternateProcess",
|
|
1206
|
-
/**
|
|
2264
|
+
/** Flowchart: Decision. */
|
|
1207
2265
|
FLOW_CHART_DECISION: "flowChartDecision",
|
|
1208
|
-
/**
|
|
2266
|
+
/** Flowchart: Data. */
|
|
1209
2267
|
FLOW_CHART_INPUT_OUTPUT: "flowChartInputOutput",
|
|
1210
|
-
/**
|
|
2268
|
+
/** Flowchart: Predefined Process. */
|
|
1211
2269
|
FLOW_CHART_PREDEFINED_PROCESS: "flowChartPredefinedProcess",
|
|
1212
|
-
/**
|
|
2270
|
+
/** Flowchart: Internal Storage. */
|
|
1213
2271
|
FLOW_CHART_INTERNAL_STORAGE: "flowChartInternalStorage",
|
|
1214
|
-
/**
|
|
2272
|
+
/** Flowchart: Document. */
|
|
1215
2273
|
FLOW_CHART_DOCUMENT: "flowChartDocument",
|
|
1216
|
-
/**
|
|
2274
|
+
/** Flowchart: Multidocument. */
|
|
1217
2275
|
FLOW_CHART_MULTIDOCUMENT: "flowChartMultidocument",
|
|
1218
|
-
/**
|
|
2276
|
+
/** Flowchart: Terminator. */
|
|
1219
2277
|
FLOW_CHART_TERMINATOR: "flowChartTerminator",
|
|
1220
|
-
/**
|
|
2278
|
+
/** Flowchart: Preparation. */
|
|
1221
2279
|
FLOW_CHART_PREPARATION: "flowChartPreparation",
|
|
1222
|
-
/**
|
|
2280
|
+
/** Flowchart: Manual Input. */
|
|
1223
2281
|
FLOW_CHART_MANUAL_INPUT: "flowChartManualInput",
|
|
1224
|
-
/**
|
|
2282
|
+
/** Flowchart: Manual Operation. */
|
|
1225
2283
|
FLOW_CHART_MANUAL_OPERATION: "flowChartManualOperation",
|
|
1226
|
-
/**
|
|
2284
|
+
/** Flowchart: Connector. */
|
|
1227
2285
|
FLOW_CHART_CONNECTOR: "flowChartConnector",
|
|
1228
|
-
/**
|
|
2286
|
+
/** Flowchart: Off-page Connector. */
|
|
1229
2287
|
FLOW_CHART_OFFPAGE_CONNECTOR: "flowChartOffpageConnector",
|
|
1230
|
-
/**
|
|
2288
|
+
/** Flowchart: Card. */
|
|
1231
2289
|
FLOW_CHART_PUNCHED_CARD: "flowChartPunchedCard",
|
|
1232
|
-
/**
|
|
2290
|
+
/** Flowchart: Punched Tape. */
|
|
1233
2291
|
FLOW_CHART_PUNCHED_TAPE: "flowChartPunchedTape",
|
|
1234
|
-
/**
|
|
2292
|
+
/** Flowchart: Summing Junction. */
|
|
1235
2293
|
FLOW_CHART_SUMMING_JUNCTION: "flowChartSummingJunction",
|
|
1236
|
-
/**
|
|
2294
|
+
/** Flowchart: Or. */
|
|
1237
2295
|
FLOW_CHART_OR: "flowChartOr",
|
|
1238
|
-
/**
|
|
2296
|
+
/** Flowchart: Collate. */
|
|
1239
2297
|
FLOW_CHART_COLLATE: "flowChartCollate",
|
|
1240
|
-
/**
|
|
2298
|
+
/** Flowchart: Sort. */
|
|
1241
2299
|
FLOW_CHART_SORT: "flowChartSort",
|
|
1242
|
-
/**
|
|
2300
|
+
/** Flowchart: Extract. */
|
|
1243
2301
|
FLOW_CHART_EXTRACT: "flowChartExtract",
|
|
1244
|
-
/**
|
|
2302
|
+
/** Flowchart: Merge. */
|
|
1245
2303
|
FLOW_CHART_MERGE: "flowChartMerge",
|
|
1246
|
-
/**
|
|
2304
|
+
/** Flowchart: Stored Data. */
|
|
1247
2305
|
FLOW_CHART_ONLINE_STORAGE: "flowChartOnlineStorage",
|
|
1248
|
-
/**
|
|
2306
|
+
/** Flowchart: Delay. */
|
|
1249
2307
|
FLOW_CHART_DELAY: "flowChartDelay",
|
|
1250
|
-
/**
|
|
2308
|
+
/** Flowchart: Sequential Access Storage. */
|
|
1251
2309
|
FLOW_CHART_MAGNETIC_TAPE: "flowChartMagneticTape",
|
|
1252
|
-
/**
|
|
2310
|
+
/** Flowchart: Magnetic Disk. */
|
|
1253
2311
|
FLOW_CHART_MAGNETIC_DISK: "flowChartMagneticDisk",
|
|
1254
|
-
/**
|
|
2312
|
+
/** Flowchart: Direct Access Storage. */
|
|
1255
2313
|
FLOW_CHART_MAGNETIC_DRUM: "flowChartMagneticDrum",
|
|
1256
|
-
/**
|
|
2314
|
+
/** Flowchart: Display. */
|
|
1257
2315
|
FLOW_CHART_DISPLAY: "flowChartDisplay",
|
|
1258
|
-
/**
|
|
2316
|
+
/** Action Button: Back or Previous. */
|
|
1259
2317
|
ACTION_BUTTON_BACK_PREVIOUS: "actionButtonBackPrevious",
|
|
1260
|
-
/**
|
|
2318
|
+
/** Action Button: Forward or Next. */
|
|
1261
2319
|
ACTION_BUTTON_FORWARD_NEXT: "actionButtonForwardNext",
|
|
1262
|
-
/**
|
|
2320
|
+
/** Action Button: Beginning. */
|
|
1263
2321
|
ACTION_BUTTON_BEGINNING: "actionButtonBeginning",
|
|
1264
|
-
/**
|
|
2322
|
+
/** Action Button: End. */
|
|
1265
2323
|
ACTION_BUTTON_END: "actionButtonEnd",
|
|
1266
|
-
/**
|
|
2324
|
+
/** Action Button: Home. */
|
|
1267
2325
|
ACTION_BUTTON_HOME: "actionButtonHome",
|
|
1268
|
-
/**
|
|
2326
|
+
/** Action Button: Information. */
|
|
1269
2327
|
ACTION_BUTTON_INFORMATION: "actionButtonInformation",
|
|
1270
|
-
/**
|
|
2328
|
+
/** Action Button: Return. */
|
|
1271
2329
|
ACTION_BUTTON_RETURN: "actionButtonReturn",
|
|
1272
|
-
/**
|
|
2330
|
+
/** Action Button: Movie. */
|
|
1273
2331
|
ACTION_BUTTON_MOVIE: "actionButtonMovie",
|
|
1274
|
-
/**
|
|
2332
|
+
/** Action Button: Document. */
|
|
1275
2333
|
ACTION_BUTTON_DOCUMENT: "actionButtonDocument",
|
|
1276
|
-
/**
|
|
2334
|
+
/** Action Button: Sound. */
|
|
1277
2335
|
ACTION_BUTTON_SOUND: "actionButtonSound",
|
|
1278
|
-
/**
|
|
2336
|
+
/** Action Button: Help. */
|
|
1279
2337
|
ACTION_BUTTON_HELP: "actionButtonHelp",
|
|
1280
|
-
/**
|
|
2338
|
+
/** Action Button: Custom. */
|
|
1281
2339
|
ACTION_BUTTON_BLANK: "actionButtonBlank",
|
|
1282
|
-
/**
|
|
2340
|
+
/** Plus. */
|
|
1283
2341
|
MATH_PLUS: "mathPlus",
|
|
1284
|
-
/**
|
|
2342
|
+
/** Minus. */
|
|
1285
2343
|
MATH_MINUS: "mathMinus",
|
|
1286
|
-
/**
|
|
2344
|
+
/** Multiply. */
|
|
1287
2345
|
MATH_MULTIPLY: "mathMultiply",
|
|
1288
|
-
/**
|
|
2346
|
+
/** Division. */
|
|
1289
2347
|
MATH_DIVIDE: "mathDivide",
|
|
1290
|
-
/**
|
|
2348
|
+
/** Equal. */
|
|
1291
2349
|
MATH_EQUAL: "mathEqual",
|
|
1292
|
-
/**
|
|
2350
|
+
/** Not Equal. */
|
|
1293
2351
|
MATH_NOT_EQUAL: "mathNotEqual"
|
|
1294
2352
|
};
|
|
1295
2353
|
var ShapeZOrder = {
|
|
1296
|
-
/**
|
|
2354
|
+
/** Bring to Front. */
|
|
1297
2355
|
FRONT: "front",
|
|
1298
|
-
/**
|
|
2356
|
+
/** Send to Back. */
|
|
1299
2357
|
BACK: "back",
|
|
1300
|
-
/**
|
|
2358
|
+
/** Bring Forward (one level). */
|
|
1301
2359
|
FORWARD: "forward",
|
|
1302
|
-
/**
|
|
2360
|
+
/** Send Backward (one level). */
|
|
1303
2361
|
BACKWARD: "backward"
|
|
1304
2362
|
};
|
|
1305
2363
|
var ChartType = {
|
|
1306
|
-
/**
|
|
2364
|
+
/** Clustered Column. */
|
|
1307
2365
|
clusteredColumn: "clustered_column",
|
|
1308
|
-
/**
|
|
2366
|
+
/** Stacked Column. */
|
|
1309
2367
|
stackedColumn: "stacked_column",
|
|
1310
|
-
/** 3
|
|
2368
|
+
/** 3-D Clustered Column. */
|
|
1311
2369
|
_3dClusteredColumn: "3d_clustered_column",
|
|
1312
|
-
/** 3
|
|
2370
|
+
/** 3-D Stacked Column. */
|
|
1313
2371
|
_3dStackedColumn: "3d_stacked_column",
|
|
1314
|
-
/**
|
|
2372
|
+
/** Clustered Bar. */
|
|
1315
2373
|
clusteredBar: "clustered_bar",
|
|
1316
|
-
/**
|
|
2374
|
+
/** Stacked Bar. */
|
|
1317
2375
|
stackedBar: "stacked_bar",
|
|
1318
|
-
/** 3
|
|
2376
|
+
/** 3-D Clustered Bar. */
|
|
1319
2377
|
_3dClusteredBar: "3d_clustered_bar",
|
|
1320
|
-
/** 3
|
|
2378
|
+
/** 3-D Stacked Bar. */
|
|
1321
2379
|
_3dStackedBar: "3d_stacked_bar",
|
|
1322
|
-
/**
|
|
2380
|
+
/** Line. */
|
|
1323
2381
|
line: "line",
|
|
1324
|
-
/**
|
|
2382
|
+
/** Pie. */
|
|
1325
2383
|
pie: "pie",
|
|
1326
|
-
/** 3
|
|
2384
|
+
/** 3-D Pie. */
|
|
1327
2385
|
_3dPie: "3d_pie",
|
|
1328
|
-
/**
|
|
2386
|
+
/** Exploded Pie. */
|
|
1329
2387
|
explodedPie: "exploded_pie",
|
|
1330
|
-
/** 3
|
|
2388
|
+
/** 3-D Exploded Pie. */
|
|
1331
2389
|
_3dExplodedPie: "3d_exploded_pie",
|
|
1332
|
-
/**
|
|
2390
|
+
/** Scatter. */
|
|
1333
2391
|
scatter: "scatter",
|
|
1334
|
-
/**
|
|
2392
|
+
/** Area. */
|
|
1335
2393
|
area: "area",
|
|
1336
|
-
/**
|
|
2394
|
+
/** Stacked Area. */
|
|
1337
2395
|
stackedArea: "stacked_area",
|
|
1338
|
-
/** 3
|
|
2396
|
+
/** 3-D Area. */
|
|
1339
2397
|
_3dArea: "3d_area",
|
|
1340
|
-
/** 3
|
|
2398
|
+
/** 3-D Stacked Area. */
|
|
1341
2399
|
_3dStackedArea: "3d_stacked_area",
|
|
1342
|
-
/**
|
|
2400
|
+
/** Doughnut. */
|
|
1343
2401
|
doughnut: "doughnut",
|
|
1344
|
-
/**
|
|
2402
|
+
/** Radar. */
|
|
1345
2403
|
radar: "radar"
|
|
1346
2404
|
};
|
|
1347
2405
|
var ChartGridLineType = {
|
|
1348
|
-
/**
|
|
2406
|
+
/** Hides the gridlines of that axis. */
|
|
1349
2407
|
none: "none",
|
|
1350
|
-
/**
|
|
2408
|
+
/** Shows major gridlines only. */
|
|
1351
2409
|
major: "major",
|
|
1352
|
-
/**
|
|
2410
|
+
/** Shows minor gridlines only. */
|
|
1353
2411
|
minor: "minor",
|
|
1354
|
-
/**
|
|
2412
|
+
/** Shows both major and minor gridlines. */
|
|
1355
2413
|
majorMinor: "major_minor"
|
|
1356
2414
|
};
|
|
1357
2415
|
var ChartAxis = {
|
|
1358
|
-
/**
|
|
2416
|
+
/** Horizontal axis. */
|
|
1359
2417
|
horizontal: "horizontal",
|
|
1360
|
-
/**
|
|
2418
|
+
/** Vertical axis. */
|
|
1361
2419
|
vertical: "vertical"
|
|
1362
2420
|
};
|
|
1363
2421
|
var ChartLegendPosition = {
|
|
1364
|
-
/**
|
|
2422
|
+
/** Hides the legend. */
|
|
1365
2423
|
none: "none",
|
|
1366
|
-
/**
|
|
2424
|
+
/** Bottom of the chart. */
|
|
1367
2425
|
bottom: "bottom",
|
|
1368
|
-
/**
|
|
2426
|
+
/** Top-right corner of the chart. */
|
|
1369
2427
|
topRight: "top_right",
|
|
1370
|
-
/**
|
|
2428
|
+
/** Top of the chart. */
|
|
1371
2429
|
top: "top",
|
|
1372
|
-
/**
|
|
2430
|
+
/** Right side of the chart. */
|
|
1373
2431
|
right: "right",
|
|
1374
|
-
/**
|
|
2432
|
+
/** Left side of the chart. */
|
|
1375
2433
|
left: "left"
|
|
1376
2434
|
};
|
|
1377
2435
|
var ChartDataLabelPosition = {
|
|
1378
|
-
/**
|
|
2436
|
+
/** No data labels. When set, removes the data labels, and when returned, means that no data labels are set. */
|
|
1379
2437
|
none: "none",
|
|
1380
|
-
/**
|
|
2438
|
+
/** Center of the data point. Available for pie, column, bar, line, and scatter charts. */
|
|
1381
2439
|
center: "center",
|
|
1382
|
-
/**
|
|
2440
|
+
/** Inside end of the data point. Available for pie, column, and bar charts. */
|
|
1383
2441
|
insideEnd: "inside_end",
|
|
1384
|
-
/**
|
|
2442
|
+
/** Inside the data point, at the end nearest the axis. Available for column and bar charts. */
|
|
1385
2443
|
insideBase: "inside_base",
|
|
1386
|
-
/**
|
|
2444
|
+
/** Outside end of the data point. Available for pie, clustered column, and clustered bar charts. */
|
|
1387
2445
|
outsideEnd: "outside_end",
|
|
1388
|
-
/**
|
|
2446
|
+
/** Position chosen by the chart. Available for pie, doughnut, area, and radar charts. */
|
|
1389
2447
|
bestFit: "best_fit",
|
|
1390
|
-
/**
|
|
2448
|
+
/** Left of the data point. Available for line and scatter charts. */
|
|
1391
2449
|
left: "left",
|
|
1392
|
-
/**
|
|
2450
|
+
/** Right of the data point. Available for line and scatter charts. */
|
|
1393
2451
|
right: "right",
|
|
1394
|
-
/**
|
|
2452
|
+
/** Above the data point. Available for line and scatter charts. */
|
|
1395
2453
|
top: "top",
|
|
1396
|
-
/**
|
|
2454
|
+
/** Below the data point. Available for line and scatter charts. */
|
|
1397
2455
|
bottom: "bottom"
|
|
1398
2456
|
};
|
|
1399
2457
|
|
|
@@ -1401,405 +2459,485 @@ var ChartDataLabelPosition = {
|
|
|
1401
2459
|
var Word;
|
|
1402
2460
|
((Word2) => {
|
|
1403
2461
|
Word2.InsertAt = {
|
|
1404
|
-
/**
|
|
2462
|
+
/** Before the receiver (sibling). */
|
|
1405
2463
|
BEFORE: "before",
|
|
1406
|
-
/**
|
|
2464
|
+
/** After the receiver (sibling). */
|
|
1407
2465
|
AFTER: "after",
|
|
1408
|
-
/**
|
|
2466
|
+
/** At the beginning of the receiver's content. */
|
|
1409
2467
|
START: "start",
|
|
1410
|
-
/**
|
|
2468
|
+
/** At the end of the receiver's content. */
|
|
1411
2469
|
END: "end"
|
|
1412
2470
|
};
|
|
1413
2471
|
Word2.RangePosition = {
|
|
1414
|
-
/**
|
|
2472
|
+
/** The whole range, including the paragraph mark. */
|
|
1415
2473
|
WHOLE: "whole",
|
|
1416
|
-
/**
|
|
2474
|
+
/** The start point (collapsed). */
|
|
1417
2475
|
START: "start",
|
|
1418
|
-
/**
|
|
2476
|
+
/** The end point, before the paragraph mark (collapsed). */
|
|
1419
2477
|
END: "end",
|
|
1420
|
-
/**
|
|
2478
|
+
/** The point after the paragraph mark (collapsed). */
|
|
1421
2479
|
AFTER: "after",
|
|
1422
|
-
/**
|
|
2480
|
+
/** The content range, excluding the paragraph mark. */
|
|
1423
2481
|
CONTENT: "content",
|
|
1424
|
-
/**
|
|
2482
|
+
/** The point before the start (collapsed). */
|
|
1425
2483
|
BEFORE: "before"
|
|
1426
2484
|
};
|
|
1427
2485
|
Word2.SelectionMode = {
|
|
1428
|
-
/**
|
|
2486
|
+
/** The whole current selection. */
|
|
1429
2487
|
SELECT: "select",
|
|
1430
|
-
/**
|
|
2488
|
+
/** The start point of the selection or cursor (collapsed). */
|
|
1431
2489
|
START: "start",
|
|
1432
|
-
/**
|
|
2490
|
+
/** The end point of the selection or cursor (collapsed). */
|
|
1433
2491
|
END: "end"
|
|
1434
2492
|
};
|
|
1435
2493
|
Word2.StructureFilter = {
|
|
1436
|
-
/**
|
|
2494
|
+
/** Table. */
|
|
1437
2495
|
TABLE: "table",
|
|
1438
|
-
/**
|
|
2496
|
+
/** List paragraph. */
|
|
1439
2497
|
LIST: "list"
|
|
1440
2498
|
};
|
|
1441
2499
|
Word2.SpecialCharacter = {
|
|
1442
|
-
/**
|
|
2500
|
+
/** Page break. */
|
|
1443
2501
|
PAGE_BREAK: "pageBreak",
|
|
1444
|
-
/**
|
|
2502
|
+
/** Column break. */
|
|
1445
2503
|
COLUMN_BREAK: "columnBreak",
|
|
1446
|
-
/**
|
|
2504
|
+
/** Line break (Shift+Enter). */
|
|
1447
2505
|
SOFT_BREAK: "softBreak",
|
|
1448
|
-
/**
|
|
2506
|
+
/** Tab. */
|
|
1449
2507
|
TAB: "tab",
|
|
1450
|
-
/**
|
|
2508
|
+
/** Symbol. */
|
|
1451
2509
|
SYMBOL: "symbol"
|
|
1452
2510
|
};
|
|
1453
2511
|
Word2.ZoomMode = {
|
|
1454
|
-
/** 50
|
|
2512
|
+
/** 50%. */
|
|
1455
2513
|
SCALE_50: "50",
|
|
1456
|
-
/** 66
|
|
2514
|
+
/** 66%. */
|
|
1457
2515
|
SCALE_66: "66",
|
|
1458
|
-
/** 75
|
|
2516
|
+
/** 75%. */
|
|
1459
2517
|
SCALE_75: "75",
|
|
1460
|
-
/** 100% (
|
|
2518
|
+
/** 100% (actual size). */
|
|
1461
2519
|
SCALE_100: "100",
|
|
1462
|
-
/** 125
|
|
2520
|
+
/** 125%. */
|
|
1463
2521
|
SCALE_125: "125",
|
|
1464
|
-
/** 150
|
|
2522
|
+
/** 150%. */
|
|
1465
2523
|
SCALE_150: "150",
|
|
1466
|
-
/** 200
|
|
2524
|
+
/** 200%. */
|
|
1467
2525
|
SCALE_200: "200",
|
|
1468
|
-
/**
|
|
2526
|
+
/** Fit to width. */
|
|
1469
2527
|
FIT_WIDTH: "fitWidth",
|
|
1470
|
-
/**
|
|
2528
|
+
/** Fit to page. */
|
|
1471
2529
|
FIT_WINDOW: "fitInWindow",
|
|
1472
|
-
/**
|
|
2530
|
+
/** Zoom in one step. */
|
|
1473
2531
|
ZOOM_IN: "zoomIn",
|
|
1474
|
-
/**
|
|
2532
|
+
/** Zoom out one step. */
|
|
1475
2533
|
ZOOM_OUT: "zoomOut"
|
|
1476
2534
|
};
|
|
1477
2535
|
Word2.HeaderFooterType = {
|
|
1478
|
-
/**
|
|
2536
|
+
/** Primary header/footer (OOXML default). */
|
|
1479
2537
|
PRIMARY: "primary",
|
|
1480
|
-
/**
|
|
2538
|
+
/** First page (OOXML first). */
|
|
1481
2539
|
FIRST_PAGE: "firstPage",
|
|
1482
|
-
/**
|
|
2540
|
+
/** Even pages (OOXML even). */
|
|
1483
2541
|
EVEN_PAGES: "evenPages"
|
|
1484
2542
|
};
|
|
1485
2543
|
Word2.HeaderFooterVariant = {
|
|
1486
|
-
/**
|
|
2544
|
+
/** Default (= HeaderFooterType.PRIMARY). */
|
|
1487
2545
|
DEFAULT: "default",
|
|
1488
|
-
/**
|
|
2546
|
+
/** First page (= HeaderFooterType.FIRST_PAGE). */
|
|
1489
2547
|
FIRST: "first",
|
|
1490
|
-
/**
|
|
2548
|
+
/** Even pages (= HeaderFooterType.EVEN_PAGES). */
|
|
1491
2549
|
EVEN: "even"
|
|
1492
2550
|
};
|
|
1493
2551
|
Word2.SectionBreakType = {
|
|
1494
|
-
/**
|
|
2552
|
+
/** Continuous. */
|
|
1495
2553
|
CONTINUOUS: "continuous",
|
|
1496
|
-
/**
|
|
2554
|
+
/** Next page. */
|
|
1497
2555
|
NEXT_PAGE: "nextPage",
|
|
1498
|
-
/**
|
|
2556
|
+
/** Even page. */
|
|
1499
2557
|
EVEN_PAGE: "evenPage",
|
|
1500
|
-
/**
|
|
2558
|
+
/** Odd page. */
|
|
1501
2559
|
ODD_PAGE: "oddPage"
|
|
1502
2560
|
};
|
|
1503
2561
|
Word2.NoteType = {
|
|
1504
|
-
/**
|
|
2562
|
+
/** Footnote (bottom of the page). */
|
|
1505
2563
|
FOOTNOTE: "footnote",
|
|
1506
|
-
/**
|
|
2564
|
+
/** Endnote (end of the document). */
|
|
1507
2565
|
ENDNOTE: "endnote"
|
|
1508
2566
|
};
|
|
1509
2567
|
Word2.HyperlinkType = {
|
|
1510
|
-
/**
|
|
2568
|
+
/** Web address (http/https). */
|
|
1511
2569
|
LINK: "link",
|
|
1512
|
-
/**
|
|
2570
|
+
/** Email. */
|
|
1513
2571
|
MAILTO: "mailto",
|
|
1514
|
-
/**
|
|
2572
|
+
/** Bookmark in the document. */
|
|
1515
2573
|
BOOKMARK: "bookmark"
|
|
1516
2574
|
};
|
|
1517
2575
|
Word2.ChangeTrackingType = {
|
|
1518
|
-
/**
|
|
2576
|
+
/** Insertion. */
|
|
1519
2577
|
ADDED: "added",
|
|
1520
|
-
/**
|
|
2578
|
+
/** Deletion. */
|
|
1521
2579
|
DELETED: "deleted",
|
|
1522
|
-
/**
|
|
2580
|
+
/** Formatting change. */
|
|
1523
2581
|
FORMATTED: "formatted"
|
|
1524
2582
|
};
|
|
1525
2583
|
Word2.ShapeWrap = {
|
|
1526
|
-
/**
|
|
2584
|
+
/** In line with text, like a character (positioned by paragraphId + offset). */
|
|
1527
2585
|
INLINE: "inline",
|
|
1528
|
-
/**
|
|
2586
|
+
/** In front of text. */
|
|
1529
2587
|
INFRONT: "infront",
|
|
1530
|
-
/**
|
|
2588
|
+
/** Behind text. */
|
|
1531
2589
|
BEHIND: "behind"
|
|
1532
2590
|
};
|
|
1533
2591
|
Word2.PositionRelativeFromH = {
|
|
2592
|
+
/** Page. */
|
|
1534
2593
|
PAGE: "page",
|
|
2594
|
+
/** Margin. */
|
|
1535
2595
|
MARGIN: "margin",
|
|
2596
|
+
/** Column. */
|
|
1536
2597
|
COLUMN: "column"
|
|
1537
2598
|
};
|
|
1538
2599
|
Word2.PositionRelativeFromV = {
|
|
2600
|
+
/** Page. */
|
|
1539
2601
|
PAGE: "page",
|
|
2602
|
+
/** Margin. */
|
|
1540
2603
|
MARGIN: "margin",
|
|
2604
|
+
/** Paragraph. */
|
|
1541
2605
|
PARAGRAPH: "paragraph"
|
|
1542
2606
|
};
|
|
1543
2607
|
Word2.ShapeType = {
|
|
1544
|
-
/**
|
|
2608
|
+
/** Preset geometry shape. */
|
|
1545
2609
|
SHAPE: "sp",
|
|
1546
|
-
/**
|
|
2610
|
+
/** Image. */
|
|
1547
2611
|
PICTURE: "pic"
|
|
1548
2612
|
};
|
|
1549
2613
|
Word2.FillType = {
|
|
2614
|
+
/** No fill. */
|
|
1550
2615
|
NONE: "noFill",
|
|
2616
|
+
/** Solid fill. */
|
|
1551
2617
|
SOLID: "solidFill",
|
|
2618
|
+
/** Gradient fill. */
|
|
1552
2619
|
GRADIENT: "gradFill",
|
|
2620
|
+
/** Image fill. */
|
|
1553
2621
|
IMAGE: "blipFill"
|
|
1554
2622
|
};
|
|
1555
2623
|
Word2.TextVerticalAlign = {
|
|
2624
|
+
/** Top. */
|
|
1556
2625
|
TOP: "top",
|
|
2626
|
+
/** Middle. */
|
|
1557
2627
|
MIDDLE: "middle",
|
|
2628
|
+
/** Bottom. */
|
|
1558
2629
|
BOTTOM: "bottom"
|
|
1559
2630
|
};
|
|
1560
2631
|
Word2.LineCompound = {
|
|
2632
|
+
/** Single line. */
|
|
1561
2633
|
SINGLE: "sng",
|
|
2634
|
+
/** Double line. */
|
|
1562
2635
|
DOUBLE: "dbl",
|
|
2636
|
+
/** Thick-thin double line. */
|
|
1563
2637
|
THICK_THIN: "thickThin",
|
|
2638
|
+
/** Thin-thick double line. */
|
|
1564
2639
|
THIN_THICK: "thinThick",
|
|
2640
|
+
/** Triple line. */
|
|
1565
2641
|
TRIPLE: "tri"
|
|
1566
2642
|
};
|
|
1567
2643
|
Word2.TextAlign = {
|
|
2644
|
+
/** Left. */
|
|
1568
2645
|
LEFT: "left",
|
|
2646
|
+
/** Center. */
|
|
1569
2647
|
CENTER: "center",
|
|
2648
|
+
/** Right. */
|
|
1570
2649
|
RIGHT: "right",
|
|
2650
|
+
/** Justified. */
|
|
1571
2651
|
JUSTIFY: "justify"
|
|
1572
2652
|
};
|
|
1573
2653
|
Word2.TableAlign = {
|
|
2654
|
+
/** Left. */
|
|
1574
2655
|
LEFT: "left",
|
|
2656
|
+
/** Center. */
|
|
1575
2657
|
CENTER: "center",
|
|
2658
|
+
/** Right. */
|
|
1576
2659
|
RIGHT: "right"
|
|
1577
2660
|
};
|
|
1578
2661
|
Word2.CellVerticalAlign = {
|
|
2662
|
+
/** Top. */
|
|
1579
2663
|
TOP: "top",
|
|
2664
|
+
/** Center. */
|
|
1580
2665
|
CENTER: "center",
|
|
2666
|
+
/** Bottom. */
|
|
1581
2667
|
BOTTOM: "bottom"
|
|
1582
2668
|
};
|
|
1583
2669
|
Word2.OutlineLevel = {
|
|
2670
|
+
/** Level 1. */
|
|
1584
2671
|
LEVEL_1: "level1",
|
|
2672
|
+
/** Level 2. */
|
|
1585
2673
|
LEVEL_2: "level2",
|
|
2674
|
+
/** Level 3. */
|
|
1586
2675
|
LEVEL_3: "level3",
|
|
2676
|
+
/** Level 4. */
|
|
1587
2677
|
LEVEL_4: "level4",
|
|
2678
|
+
/** Level 5. */
|
|
1588
2679
|
LEVEL_5: "level5",
|
|
2680
|
+
/** Level 6. */
|
|
1589
2681
|
LEVEL_6: "level6",
|
|
2682
|
+
/** Level 7. */
|
|
1590
2683
|
LEVEL_7: "level7",
|
|
2684
|
+
/** Level 8. */
|
|
1591
2685
|
LEVEL_8: "level8",
|
|
2686
|
+
/** Level 9. */
|
|
1592
2687
|
LEVEL_9: "level9",
|
|
2688
|
+
/** Body text (no outline level). */
|
|
1593
2689
|
BODY: "body"
|
|
1594
2690
|
};
|
|
1595
2691
|
Word2.Style = {
|
|
1596
|
-
/**
|
|
2692
|
+
/** Normal (default paragraph style). */
|
|
1597
2693
|
NORMAL: "normal",
|
|
2694
|
+
/** Title. */
|
|
1598
2695
|
TITLE: "title",
|
|
2696
|
+
/** Subtitle. */
|
|
1599
2697
|
SUBTITLE: "subtitle",
|
|
2698
|
+
/** Heading 1. */
|
|
1600
2699
|
HEADING_1: "heading_1",
|
|
2700
|
+
/** Heading 2. */
|
|
1601
2701
|
HEADING_2: "heading_2",
|
|
2702
|
+
/** Heading 3. */
|
|
1602
2703
|
HEADING_3: "heading_3",
|
|
2704
|
+
/** Quote. */
|
|
1603
2705
|
QUOTE: "quote",
|
|
1604
|
-
/**
|
|
2706
|
+
/** Strong (character style). */
|
|
1605
2707
|
STRONG: "strong",
|
|
2708
|
+
/** Emphasis (character style). */
|
|
1606
2709
|
EMPHASIS: "emphasis",
|
|
2710
|
+
/** Subtle emphasis (character style). */
|
|
1607
2711
|
SUBTLE_EMPHASIS: "subtle_emphasis",
|
|
2712
|
+
/** Intense emphasis (character style). */
|
|
1608
2713
|
INTENSE_EMPHASIS: "intense_emphasis"
|
|
1609
2714
|
};
|
|
1610
2715
|
Word2.IndentType = {
|
|
2716
|
+
/** Increase indent. */
|
|
1611
2717
|
INDENT: "indent",
|
|
2718
|
+
/** Decrease indent. */
|
|
1612
2719
|
OUTDENT: "outdent"
|
|
1613
2720
|
};
|
|
1614
2721
|
Word2.ListType = {
|
|
1615
|
-
/**
|
|
2722
|
+
/** Bullet ●. */
|
|
1616
2723
|
BULLET_CIRCLE: "bulletCircle",
|
|
1617
|
-
/**
|
|
2724
|
+
/** Bullet ■. */
|
|
1618
2725
|
BULLET_SQUARE: "bulletSquare",
|
|
1619
|
-
/**
|
|
2726
|
+
/** Bullet ◆. */
|
|
1620
2727
|
BULLET_DIAMOND: "bulletDiamond",
|
|
1621
|
-
/**
|
|
2728
|
+
/** Bullet ✓. */
|
|
1622
2729
|
BULLET_CHECK: "bulletCheck",
|
|
1623
|
-
/**
|
|
2730
|
+
/** Bullet ➢. */
|
|
1624
2731
|
BULLET_ARROW: "bulletArrow",
|
|
1625
|
-
/**
|
|
2732
|
+
/** Bullet ✧. */
|
|
1626
2733
|
BULLET_STAR: "bulletStar",
|
|
1627
|
-
/** 1. */
|
|
2734
|
+
/** Numbering 1. */
|
|
1628
2735
|
NUMBER_DECIMAL: "numberDecimal",
|
|
1629
|
-
/** A. */
|
|
2736
|
+
/** Numbering A. */
|
|
1630
2737
|
NUMBER_UPPER_LETTER: "numberUpperLetter",
|
|
1631
|
-
/** I. */
|
|
2738
|
+
/** Numbering I. */
|
|
1632
2739
|
NUMBER_UPPER_ROMAN: "numberUpperRoman",
|
|
1633
|
-
/**
|
|
2740
|
+
/** Numbering ①. */
|
|
1634
2741
|
NUMBER_CIRCLED: "numberCircled",
|
|
1635
|
-
/** a. */
|
|
2742
|
+
/** Numbering a. */
|
|
1636
2743
|
NUMBER_LOWER_LETTER: "numberLowerLetter",
|
|
1637
|
-
/** i. */
|
|
2744
|
+
/** Numbering i. */
|
|
1638
2745
|
NUMBER_LOWER_ROMAN: "numberLowerRoman",
|
|
1639
|
-
/** 1. / A. / i. */
|
|
2746
|
+
/** Multilevel 1. / A. / i. */
|
|
1640
2747
|
MULTILEVEL_NUMBER_LETTER_ROMAN: "multilevelNumberLetterRoman",
|
|
1641
|
-
/** 1. / A. / a. */
|
|
2748
|
+
/** Multilevel 1. / A. / a. */
|
|
1642
2749
|
MULTILEVEL_NUMBER_LETTER_LETTER: "multilevelNumberLetterLetter",
|
|
1643
|
-
/** I. / A. / i. */
|
|
2750
|
+
/** Multilevel I. / A. / i. */
|
|
1644
2751
|
MULTILEVEL_ROMAN_LETTER_ROMAN: "multilevelRomanLetterRoman",
|
|
1645
|
-
/** 1 / 1.1 / 1.1.1 */
|
|
2752
|
+
/** Multilevel 1 / 1.1 / 1.1.1. */
|
|
1646
2753
|
MULTILEVEL_NESTED_NUMBER: "multilevelNestedNumber",
|
|
1647
|
-
/** 1. / 1.1. / 1.1.1. */
|
|
2754
|
+
/** Multilevel 1. / 1.1. / 1.1.1. */
|
|
1648
2755
|
MULTILEVEL_NESTED_NUMBER_DOT: "multilevelNestedNumberDot",
|
|
1649
|
-
/** 1 / 1-1 / 1-1-1 */
|
|
2756
|
+
/** Multilevel 1 / 1-1 / 1-1-1 (full-width). */
|
|
1650
2757
|
MULTILEVEL_NESTED_FULL_WIDTH: "multilevelNestedFullWidth"
|
|
1651
2758
|
};
|
|
1652
2759
|
Word2.PageNumberArea = {
|
|
1653
|
-
/**
|
|
2760
|
+
/** Header. */
|
|
1654
2761
|
HEADER: "header",
|
|
1655
|
-
/**
|
|
2762
|
+
/** Footer. */
|
|
1656
2763
|
FOOTER: "footer"
|
|
1657
2764
|
};
|
|
1658
2765
|
Word2.PageNumberAlign = {
|
|
1659
|
-
/**
|
|
2766
|
+
/** Left. */
|
|
1660
2767
|
LEFT: "left",
|
|
1661
|
-
/**
|
|
2768
|
+
/** Center. */
|
|
1662
2769
|
CENTER: "center",
|
|
1663
|
-
/**
|
|
2770
|
+
/** Right. */
|
|
1664
2771
|
RIGHT: "right"
|
|
1665
2772
|
};
|
|
1666
2773
|
Word2.BorderStyle = {
|
|
2774
|
+
/** Solid line. */
|
|
1667
2775
|
SOLID: "solid",
|
|
2776
|
+
/** Dashed line. */
|
|
1668
2777
|
DASHED: "dashed",
|
|
2778
|
+
/** Dotted line. */
|
|
1669
2779
|
DOTTED: "dotted",
|
|
2780
|
+
/** Double line. */
|
|
1670
2781
|
DOUBLE: "double",
|
|
2782
|
+
/** No border. */
|
|
1671
2783
|
NONE: "none",
|
|
2784
|
+
/** Hidden border. */
|
|
1672
2785
|
HIDDEN: "hidden"
|
|
1673
2786
|
};
|
|
1674
2787
|
Word2.BorderLocation = {
|
|
2788
|
+
/** Top. */
|
|
1675
2789
|
TOP: "top",
|
|
2790
|
+
/** Right. */
|
|
1676
2791
|
RIGHT: "right",
|
|
2792
|
+
/** Bottom. */
|
|
1677
2793
|
BOTTOM: "bottom",
|
|
2794
|
+
/** Left. */
|
|
1678
2795
|
LEFT: "left",
|
|
2796
|
+
/** All sides. */
|
|
1679
2797
|
ALL: "all",
|
|
2798
|
+
/** Outer edges. */
|
|
1680
2799
|
OUTER: "outer",
|
|
2800
|
+
/** Inner lines. */
|
|
1681
2801
|
INNER: "inner",
|
|
2802
|
+
/** Lines between rows. */
|
|
1682
2803
|
BETWEEN_ROWS: "betweenRows",
|
|
2804
|
+
/** Lines between columns. */
|
|
1683
2805
|
BETWEEN_COLUMNS: "betweenColumns",
|
|
2806
|
+
/** Line between paragraphs (paragraph only). */
|
|
1684
2807
|
BETWEEN: "between"
|
|
1685
2808
|
};
|
|
1686
2809
|
Word2.TabAlignment = {
|
|
2810
|
+
/** Left. */
|
|
1687
2811
|
LEFT: "left",
|
|
2812
|
+
/** Center. */
|
|
1688
2813
|
CENTER: "center",
|
|
2814
|
+
/** Right. */
|
|
1689
2815
|
RIGHT: "right",
|
|
2816
|
+
/** Decimal point. */
|
|
1690
2817
|
DECIMAL: "decimal"
|
|
1691
2818
|
};
|
|
1692
2819
|
Word2.TabLeader = {
|
|
2820
|
+
/** None. */
|
|
1693
2821
|
NONE: "none",
|
|
2822
|
+
/** Dots. */
|
|
1694
2823
|
DOT: "dot",
|
|
2824
|
+
/** Hyphens. */
|
|
1695
2825
|
HYPHEN: "hyphen",
|
|
2826
|
+
/** Underscores. */
|
|
1696
2827
|
UNDERSCORE: "underscore",
|
|
2828
|
+
/** Middle dots. */
|
|
1697
2829
|
MIDDLE_DOT: "middleDot"
|
|
1698
2830
|
};
|
|
1699
2831
|
Word2.PageOrientation = {
|
|
1700
|
-
/**
|
|
2832
|
+
/** Portrait. */
|
|
1701
2833
|
PORTRAIT: "portrait",
|
|
1702
|
-
/**
|
|
2834
|
+
/** Landscape. */
|
|
1703
2835
|
LANDSCAPE: "landscape"
|
|
1704
2836
|
};
|
|
1705
2837
|
Word2.PaperSize = {
|
|
2838
|
+
/** A3. */
|
|
1706
2839
|
A3: "A3",
|
|
2840
|
+
/** A4. */
|
|
1707
2841
|
A4: "A4",
|
|
2842
|
+
/** A5. */
|
|
1708
2843
|
A5: "A5",
|
|
2844
|
+
/** Letter. */
|
|
1709
2845
|
LETTER: "Letter",
|
|
2846
|
+
/** Legal. */
|
|
1710
2847
|
LEGAL: "Legal",
|
|
2848
|
+
/** Executive. */
|
|
1711
2849
|
EXECUTIVE: "Executive"
|
|
1712
2850
|
};
|
|
1713
2851
|
Word2.NumberFormat = {
|
|
1714
|
-
/** 1, 2, 3 */
|
|
2852
|
+
/** 1, 2, 3. */
|
|
1715
2853
|
DECIMAL: "decimal",
|
|
1716
|
-
/** ①, ②,
|
|
2854
|
+
/** ①, ②, ③. */
|
|
1717
2855
|
DECIMAL_CIRCLE: "decimalEnclosedCircle",
|
|
1718
|
-
/** (1), (2), (3) */
|
|
2856
|
+
/** (1), (2), (3). */
|
|
1719
2857
|
DECIMAL_PAREN: "decimalEnclosedParen",
|
|
1720
2858
|
/** 1., 2., 3. */
|
|
1721
2859
|
DECIMAL_FULLSTOP: "decimalEnclosedFullstop",
|
|
1722
|
-
/** 01, 02, 03 */
|
|
2860
|
+
/** 01, 02, 03. */
|
|
1723
2861
|
DECIMAL_ZERO: "decimalZero",
|
|
1724
|
-
/** 1, 2, 3 (
|
|
2862
|
+
/** 1, 2, 3 (full-width). */
|
|
1725
2863
|
DECIMAL_FULL_WIDTH: "decimalFullWidth",
|
|
1726
|
-
/** 1, 2, 3 (
|
|
2864
|
+
/** 1, 2, 3 (half-width). */
|
|
1727
2865
|
DECIMAL_HALF_WIDTH: "decimalHalfWidth",
|
|
1728
|
-
/** -1-, -2-, -3
|
|
2866
|
+
/** -1-, -2-, -3-. */
|
|
1729
2867
|
NUMBER_DASH: "numberInDash",
|
|
1730
|
-
/** One, Two, Three */
|
|
2868
|
+
/** One, Two, Three. */
|
|
1731
2869
|
CARDINAL_TEXT: "cardinalText",
|
|
1732
|
-
/** 1st, 2nd, 3rd */
|
|
2870
|
+
/** 1st, 2nd, 3rd. */
|
|
1733
2871
|
ORDINAL: "ordinal",
|
|
1734
|
-
/** First, Second, Third */
|
|
2872
|
+
/** First, Second, Third. */
|
|
1735
2873
|
ORDINAL_TEXT: "ordinalText",
|
|
1736
|
-
/**
|
|
2874
|
+
/** , †, ‡, §. */
|
|
1737
2875
|
CHICAGO: "chicago",
|
|
1738
|
-
/** 1, 2, ..., 9, A, B */
|
|
2876
|
+
/** 1, 2, ..., 9, A, B. */
|
|
1739
2877
|
HEX: "hex",
|
|
1740
|
-
/** a, b, c */
|
|
2878
|
+
/** a, b, c. */
|
|
1741
2879
|
LOWER_LETTER: "lowerLetter",
|
|
1742
|
-
/** A, B, C */
|
|
2880
|
+
/** A, B, C. */
|
|
1743
2881
|
UPPER_LETTER: "upperLetter",
|
|
1744
|
-
/** i, ii, iii */
|
|
2882
|
+
/** i, ii, iii. */
|
|
1745
2883
|
LOWER_ROMAN: "lowerRoman",
|
|
1746
|
-
/** I, II, III */
|
|
2884
|
+
/** I, II, III. */
|
|
1747
2885
|
UPPER_ROMAN: "upperRoman",
|
|
1748
|
-
/** ㄱ, ㄴ, ㄷ */
|
|
2886
|
+
/** ㄱ, ㄴ, ㄷ (Korean consonants). */
|
|
1749
2887
|
HANGUL_CHOSUNG: "chosung",
|
|
1750
|
-
/** 가, 나, 다 */
|
|
2888
|
+
/** 가, 나, 다 (Korean syllables). */
|
|
1751
2889
|
HANGUL_GANADA: "ganada",
|
|
1752
|
-
/** 일, 이, 삼 */
|
|
2890
|
+
/** 일, 이, 삼 (Korean counting). */
|
|
1753
2891
|
KOREAN_COUNT: "koreanCounting",
|
|
1754
|
-
/** 하나, 둘, 셋 */
|
|
2892
|
+
/** 하나, 둘, 셋 (Korean native numbers). */
|
|
1755
2893
|
KOREAN_LEGAL: "koreanLegal",
|
|
1756
|
-
/** 一, 二,
|
|
2894
|
+
/** 一, 二, 三. */
|
|
1757
2895
|
KOREAN_DIGITAL: "koreanDigital",
|
|
1758
|
-
/** 壹, 貳,
|
|
2896
|
+
/** 壹, 貳, 參. */
|
|
1759
2897
|
KOREAN_DIGITAL2: "koreanDigital2",
|
|
1760
|
-
/** 一, 二,
|
|
2898
|
+
/** 一, 二, 三. */
|
|
1761
2899
|
CHINESE_COUNT: "chineseCounting",
|
|
1762
|
-
/** 一, 二, 三 (
|
|
2900
|
+
/** 一, 二, 三 (thousands). */
|
|
1763
2901
|
CHINESE_COUNTING_THOUSAND: "chineseCountingThousand",
|
|
1764
|
-
/** 壹, 贰,
|
|
2902
|
+
/** 壹, 贰, 叁. */
|
|
1765
2903
|
CHINESE_LEGAL: "chineseLegalSimplified",
|
|
1766
|
-
/** 一, 二, 三 (
|
|
2904
|
+
/** 一, 二, 三 (digit by digit). */
|
|
1767
2905
|
CHINESE_DIGITAL: "chineseDigital",
|
|
1768
|
-
/** 〇, 一,
|
|
2906
|
+
/** 〇, 一, 二. */
|
|
1769
2907
|
CHINESE_ZERO_TAIWANESE_DIGITAL: "chineseZeroTaiwaneseDigital",
|
|
1770
|
-
/** 一, 二,
|
|
2908
|
+
/** 一, 二, 三. */
|
|
1771
2909
|
TAIWANESE_COUNT: "taiwaneseCounting",
|
|
1772
|
-
/** 一, 二, 三 (
|
|
2910
|
+
/** 一, 二, 三 (thousands). */
|
|
1773
2911
|
TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand",
|
|
1774
|
-
/** 一, 二, 三 (
|
|
2912
|
+
/** 一, 二, 三 (digit by digit). */
|
|
1775
2913
|
TAIWANESE_DIGITAL: "taiwaneseDigital",
|
|
1776
|
-
/** 一, 二,
|
|
2914
|
+
/** 一, 二, 三. */
|
|
1777
2915
|
IDEOGRAPH_DIGITAL: "ideographDigital",
|
|
1778
|
-
/** ㊀, ㊁,
|
|
2916
|
+
/** ㊀, ㊁, ㊂. */
|
|
1779
2917
|
IDEOGRAPH_CIRCLE: "ideographEnclosedCircle",
|
|
1780
|
-
/** 壹, 貳,
|
|
2918
|
+
/** 壹, 貳, 參. */
|
|
1781
2919
|
IDEOGRAPH_LEGAL: "ideographLegalTraditional",
|
|
1782
|
-
/** 갑, 을, 병 (
|
|
2920
|
+
/** 갑, 을, 병 (heavenly stems). */
|
|
1783
2921
|
IDEOGRAPH_TRADITIONAL: "ideographTraditional",
|
|
1784
|
-
/** 자, 축, 인 (
|
|
2922
|
+
/** 자, 축, 인 (earthly branches). */
|
|
1785
2923
|
IDEOGRAPH_ZODIAC: "ideographZodiac",
|
|
1786
|
-
/** 갑자, 을축, 병인 (
|
|
2924
|
+
/** 갑자, 을축, 병인 (sexagenary cycle). */
|
|
1787
2925
|
IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional",
|
|
1788
|
-
/** 一, 二,
|
|
2926
|
+
/** 一, 二, 三. */
|
|
1789
2927
|
JAPANESE_COUNT: "japaneseCounting",
|
|
1790
|
-
/** 一, 二, 三 (
|
|
2928
|
+
/** 一, 二, 三 (ten thousands). */
|
|
1791
2929
|
JAPANESE_DIGITAL: "japaneseDigitalTenThousand",
|
|
1792
|
-
/** 壱, 弐,
|
|
2930
|
+
/** 壱, 弐, 参. */
|
|
1793
2931
|
JAPANESE_LEGAL: "japaneseLegal",
|
|
1794
|
-
/** ア, イ, ウ (
|
|
2932
|
+
/** ア, イ, ウ (half-width). */
|
|
1795
2933
|
JAPANESE_AIUEO: "aiueo",
|
|
1796
|
-
/** ア, イ, ウ (
|
|
2934
|
+
/** ア, イ, ウ (full-width). */
|
|
1797
2935
|
JAPANESE_AIUEO_FULL_WIDTH: "aiueoFullWidth",
|
|
1798
|
-
/** イ, ロ, ハ (
|
|
2936
|
+
/** イ, ロ, ハ (half-width). */
|
|
1799
2937
|
JAPANESE_IROHA: "iroha",
|
|
1800
|
-
/** イ, ロ, ハ (
|
|
2938
|
+
/** イ, ロ, ハ (full-width). */
|
|
1801
2939
|
JAPANESE_IROHA_FULL_WIDTH: "irohaFullWidth",
|
|
1802
|
-
/**
|
|
2940
|
+
/** No page number. */
|
|
1803
2941
|
NONE: "none"
|
|
1804
2942
|
};
|
|
1805
2943
|
})(Word || (Word = {}));
|
|
@@ -1829,6 +2967,18 @@ var Cell;
|
|
|
1829
2967
|
/** Justified. */
|
|
1830
2968
|
JUSTIFY: "justify"
|
|
1831
2969
|
};
|
|
2970
|
+
Cell2.UnderlineType = {
|
|
2971
|
+
/** Single underline. */
|
|
2972
|
+
SINGLE: "single",
|
|
2973
|
+
/** Double underline. */
|
|
2974
|
+
DOUBLE: "double",
|
|
2975
|
+
/** Single accounting underline. */
|
|
2976
|
+
SINGLE_ACCOUNTING: "singleAccounting",
|
|
2977
|
+
/** Double accounting underline. */
|
|
2978
|
+
DOUBLE_ACCOUNTING: "doubleAccounting",
|
|
2979
|
+
/** No underline. */
|
|
2980
|
+
NONE: "none"
|
|
2981
|
+
};
|
|
1832
2982
|
Cell2.BorderType = {
|
|
1833
2983
|
/** All four outer edges and all inner lines. */
|
|
1834
2984
|
ALL: "all",
|
|
@@ -1848,8 +2998,6 @@ var Cell;
|
|
|
1848
2998
|
CENTER: "center",
|
|
1849
2999
|
/** Inner horizontal lines. */
|
|
1850
3000
|
MIDDLE: "middle",
|
|
1851
|
-
/** Draws no border because no direction is specified. Specify a diagonal with DIAGONAL_UP, DIAGONAL_DOWN, or DIAGONAL_CROSS. */
|
|
1852
|
-
DIAGONAL: "diagonal",
|
|
1853
3001
|
/** Diagonal line from the bottom-left to the top-right of each cell. */
|
|
1854
3002
|
DIAGONAL_UP: "diagonal_up",
|
|
1855
3003
|
/** Diagonal line from the top-left to the bottom-right of each cell. */
|
|
@@ -1889,6 +3037,30 @@ var Cell;
|
|
|
1889
3037
|
/** No line. In setBorder, clears the existing lines at the position specified by type. */
|
|
1890
3038
|
NONE: "none"
|
|
1891
3039
|
};
|
|
3040
|
+
Cell2.CellFormatProperty = {
|
|
3041
|
+
/** Number format code. */
|
|
3042
|
+
NUMBER_FORMAT: "numberFormat",
|
|
3043
|
+
/** Font format. */
|
|
3044
|
+
FONT: "font",
|
|
3045
|
+
/** Fill. */
|
|
3046
|
+
FILL: "fill",
|
|
3047
|
+
/** Borders. */
|
|
3048
|
+
BORDER: "border",
|
|
3049
|
+
/** Alignment format. */
|
|
3050
|
+
ALIGNMENT: "alignment"
|
|
3051
|
+
};
|
|
3052
|
+
Cell2.CellValueType = {
|
|
3053
|
+
/** No value. */
|
|
3054
|
+
EMPTY: "empty",
|
|
3055
|
+
/** Text. */
|
|
3056
|
+
STRING: "string",
|
|
3057
|
+
/** Number, including dates and times. */
|
|
3058
|
+
NUMBER: "number",
|
|
3059
|
+
/** TRUE or FALSE. */
|
|
3060
|
+
BOOLEAN: "boolean",
|
|
3061
|
+
/** Error value such as "#REF!" or "#DIV/0!". */
|
|
3062
|
+
ERROR: "error"
|
|
3063
|
+
};
|
|
1892
3064
|
Cell2.SortOrder = {
|
|
1893
3065
|
/** Ascending. Numbers come before text. */
|
|
1894
3066
|
ASCENDING: "asc",
|
|
@@ -2087,141 +3259,149 @@ var Cell;
|
|
|
2087
3259
|
/** Rows whose value is below the column average. */
|
|
2088
3260
|
BELOW_AVERAGE: "belowAverage"
|
|
2089
3261
|
};
|
|
3262
|
+
Cell2.ChartSeriesBy = {
|
|
3263
|
+
/** Determined by the shape of the data range. */
|
|
3264
|
+
AUTO: "auto",
|
|
3265
|
+
/** Each row is one series. */
|
|
3266
|
+
ROWS: "rows",
|
|
3267
|
+
/** Each column is one series. */
|
|
3268
|
+
COLUMNS: "columns"
|
|
3269
|
+
};
|
|
2090
3270
|
})(Cell || (Cell = {}));
|
|
2091
3271
|
|
|
2092
3272
|
// src/builtin/show-api.generated.ts
|
|
2093
3273
|
var Show;
|
|
2094
3274
|
((Show2) => {
|
|
2095
3275
|
Show2.ShapeType = {
|
|
2096
|
-
/**
|
|
3276
|
+
/** Shape. */
|
|
2097
3277
|
SHAPE: "sp",
|
|
2098
|
-
/**
|
|
3278
|
+
/** Image (picture). */
|
|
2099
3279
|
IMAGE: "pic",
|
|
2100
|
-
/**
|
|
3280
|
+
/** Line (connector). */
|
|
2101
3281
|
CONNECTOR: "cxnSp",
|
|
2102
|
-
/**
|
|
3282
|
+
/** Group. */
|
|
2103
3283
|
GROUP: "grpSp",
|
|
2104
|
-
/**
|
|
3284
|
+
/** Chart. */
|
|
2105
3285
|
CHART: "chart",
|
|
2106
|
-
/**
|
|
3286
|
+
/** Table. */
|
|
2107
3287
|
TABLE: "tbl",
|
|
2108
|
-
/**
|
|
3288
|
+
/** Diagram. */
|
|
2109
3289
|
DIAGRAM: "diagram",
|
|
2110
|
-
/** OLE
|
|
3290
|
+
/** OLE object. */
|
|
2111
3291
|
OLE_OBJECT: "ole",
|
|
2112
|
-
/**
|
|
3292
|
+
/** Control object. */
|
|
2113
3293
|
CONTROL: "control"
|
|
2114
3294
|
};
|
|
2115
3295
|
Show2.PlaceholderType = {
|
|
2116
|
-
/**
|
|
3296
|
+
/** Title. */
|
|
2117
3297
|
TITLE: "title",
|
|
2118
|
-
/**
|
|
3298
|
+
/** Center Title (for the title slide). */
|
|
2119
3299
|
CTR_TITLE: "ctrTitle",
|
|
2120
|
-
/**
|
|
3300
|
+
/** Subtitle. */
|
|
2121
3301
|
SUB_TITLE: "subTitle",
|
|
2122
|
-
/**
|
|
3302
|
+
/** Body. */
|
|
2123
3303
|
BODY: "body",
|
|
2124
|
-
/**
|
|
3304
|
+
/** Object (content). */
|
|
2125
3305
|
OBJECT: "obj",
|
|
2126
|
-
/**
|
|
3306
|
+
/** Chart. */
|
|
2127
3307
|
CHART: "chart",
|
|
2128
|
-
/**
|
|
3308
|
+
/** Table. */
|
|
2129
3309
|
TABLE: "tbl",
|
|
2130
|
-
/**
|
|
3310
|
+
/** Clip Art. */
|
|
2131
3311
|
CLIP_ART: "clipArt",
|
|
2132
|
-
/**
|
|
3312
|
+
/** Diagram. */
|
|
2133
3313
|
DIAGRAM: "dgm",
|
|
2134
|
-
/**
|
|
3314
|
+
/** Media. */
|
|
2135
3315
|
MEDIA: "media",
|
|
2136
|
-
/**
|
|
3316
|
+
/** Date. */
|
|
2137
3317
|
DATE: "dt",
|
|
2138
|
-
/**
|
|
3318
|
+
/** Slide Number. */
|
|
2139
3319
|
SLIDE_NUM: "sldNum",
|
|
2140
|
-
/**
|
|
3320
|
+
/** Footer. */
|
|
2141
3321
|
FOOTER: "ftr",
|
|
2142
|
-
/**
|
|
3322
|
+
/** Header (for handouts and slide notes). */
|
|
2143
3323
|
HEADER: "hdr",
|
|
2144
|
-
/**
|
|
3324
|
+
/** Picture. */
|
|
2145
3325
|
PICTURE: "pic",
|
|
2146
|
-
/**
|
|
3326
|
+
/** Slide Image (for slide notes). */
|
|
2147
3327
|
SLIDE_IMAGE: "sldImg"
|
|
2148
3328
|
};
|
|
2149
3329
|
Show2.SlideLayoutType = {
|
|
2150
|
-
/**
|
|
3330
|
+
/** Title Slide. */
|
|
2151
3331
|
TITLE: "title",
|
|
2152
|
-
/**
|
|
3332
|
+
/** Title and Text. */
|
|
2153
3333
|
TX: "tx",
|
|
2154
|
-
/**
|
|
3334
|
+
/** Title and Two-Column Text. */
|
|
2155
3335
|
TWO_COL_TX: "twoColTx",
|
|
2156
|
-
/**
|
|
3336
|
+
/** Title and Table. */
|
|
2157
3337
|
TBL: "tbl",
|
|
2158
|
-
/**
|
|
3338
|
+
/** Text (left) and Chart (right). */
|
|
2159
3339
|
TX_AND_CHART: "txAndChart",
|
|
2160
|
-
/**
|
|
3340
|
+
/** Chart (left) and Text (right). */
|
|
2161
3341
|
CHART_AND_TX: "chartAndTx",
|
|
2162
|
-
/**
|
|
3342
|
+
/** Diagram. */
|
|
2163
3343
|
DGM: "dgm",
|
|
2164
|
-
/**
|
|
3344
|
+
/** Chart. */
|
|
2165
3345
|
CHART: "chart",
|
|
2166
|
-
/**
|
|
3346
|
+
/** Text and Clip Art. */
|
|
2167
3347
|
TX_AND_CLIP_ART: "txAndClipArt",
|
|
2168
|
-
/**
|
|
3348
|
+
/** Clip Art and Text. */
|
|
2169
3349
|
CLIP_ART_AND_TX: "clipArtAndTx",
|
|
2170
|
-
/**
|
|
3350
|
+
/** Title Only. */
|
|
2171
3351
|
TITLE_ONLY: "titleOnly",
|
|
2172
|
-
/**
|
|
3352
|
+
/** Blank. */
|
|
2173
3353
|
BLANK: "blank",
|
|
2174
|
-
/**
|
|
3354
|
+
/** Text and Object. */
|
|
2175
3355
|
TX_AND_OBJ: "txAndObj",
|
|
2176
|
-
/**
|
|
3356
|
+
/** Object and Text. */
|
|
2177
3357
|
OBJ_AND_TX: "objAndTx",
|
|
2178
|
-
/**
|
|
3358
|
+
/** Object Only. */
|
|
2179
3359
|
OBJ_ONLY: "objOnly",
|
|
2180
|
-
/**
|
|
3360
|
+
/** Title and Content. */
|
|
2181
3361
|
OBJ: "obj",
|
|
2182
|
-
/**
|
|
3362
|
+
/** Text and Media. */
|
|
2183
3363
|
TX_AND_MEDIA: "txAndMedia",
|
|
2184
|
-
/**
|
|
3364
|
+
/** Media and Text. */
|
|
2185
3365
|
MEDIA_AND_TX: "mediaAndTx",
|
|
2186
|
-
/**
|
|
3366
|
+
/** Object over Text. */
|
|
2187
3367
|
OBJ_OVER_TX: "objOverTx",
|
|
2188
|
-
/**
|
|
3368
|
+
/** Text over Object. */
|
|
2189
3369
|
TX_OVER_OBJ: "txOverObj",
|
|
2190
|
-
/**
|
|
3370
|
+
/** Text and Two Objects. */
|
|
2191
3371
|
TX_AND_TWO_OBJ: "txAndTwoObj",
|
|
2192
|
-
/**
|
|
3372
|
+
/** Two Objects and Text. */
|
|
2193
3373
|
TWO_OBJ_AND_TX: "twoObjAndTx",
|
|
2194
|
-
/**
|
|
3374
|
+
/** Two Objects over Text. */
|
|
2195
3375
|
TWO_OBJ_OVER_TX: "twoObjOverTx",
|
|
2196
|
-
/**
|
|
3376
|
+
/** Four Objects. */
|
|
2197
3377
|
FOUR_OBJ: "fourObj",
|
|
2198
|
-
/**
|
|
3378
|
+
/** Title and Vertical Text. */
|
|
2199
3379
|
VERT_TX: "vertTx",
|
|
2200
|
-
/**
|
|
3380
|
+
/** Clip Art and Vertical Text. */
|
|
2201
3381
|
CLIP_ART_AND_VERT_TX: "clipArtAndVertTx",
|
|
2202
|
-
/**
|
|
3382
|
+
/** Vertical Title and Text. */
|
|
2203
3383
|
VERT_TITLE_AND_TX: "vertTitleAndTx",
|
|
2204
|
-
/**
|
|
3384
|
+
/** Vertical Title and Text over Chart. */
|
|
2205
3385
|
VERT_TITLE_AND_TX_OVER_CHART: "vertTitleAndTxOverChart",
|
|
2206
|
-
/**
|
|
3386
|
+
/** Two Content. */
|
|
2207
3387
|
TWO_OBJ: "twoObj",
|
|
2208
|
-
/**
|
|
3388
|
+
/** Object and Two Objects. */
|
|
2209
3389
|
OBJ_AND_TWO_OBJ: "objAndTwoObj",
|
|
2210
|
-
/**
|
|
3390
|
+
/** Two Objects and Object. */
|
|
2211
3391
|
TWO_OBJ_AND_OBJ: "twoObjAndObj",
|
|
2212
|
-
/**
|
|
3392
|
+
/** Custom. */
|
|
2213
3393
|
CUST: "cust",
|
|
2214
|
-
/**
|
|
3394
|
+
/** Section Header. */
|
|
2215
3395
|
SEC_HEAD: "secHead",
|
|
2216
|
-
/**
|
|
3396
|
+
/** Comparison (two text and two objects). */
|
|
2217
3397
|
TWO_TX_TWO_OBJ: "twoTxTwoObj",
|
|
2218
|
-
/**
|
|
3398
|
+
/** Content with Caption. */
|
|
2219
3399
|
OBJ_TX: "objTx",
|
|
2220
|
-
/**
|
|
3400
|
+
/** Picture with Caption. */
|
|
2221
3401
|
PIC_TX: "picTx"
|
|
2222
3402
|
};
|
|
2223
3403
|
Show2.ViewMode = {
|
|
2224
|
-
/**
|
|
3404
|
+
/** Fit to window. */
|
|
2225
3405
|
FIT_IN_WINDOW: "fitInWindow",
|
|
2226
3406
|
/** 50% */
|
|
2227
3407
|
ZOOM_50: "50",
|
|
@@ -2239,329 +3419,331 @@ var Show;
|
|
|
2239
3419
|
ZOOM_400: "400"
|
|
2240
3420
|
};
|
|
2241
3421
|
Show2.SelectScope = {
|
|
2242
|
-
/**
|
|
3422
|
+
/** All shapes on the current slide. */
|
|
2243
3423
|
SHAPE: "shape",
|
|
2244
|
-
/**
|
|
3424
|
+
/** All slides. */
|
|
2245
3425
|
SLIDE: "slide",
|
|
2246
|
-
/**
|
|
3426
|
+
/** All of the text being edited. */
|
|
2247
3427
|
TEXT: "text"
|
|
2248
3428
|
};
|
|
2249
|
-
Show2.
|
|
2250
|
-
/**
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
|
|
2254
|
-
/**
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
|
|
2260
|
-
/**
|
|
2261
|
-
|
|
2262
|
-
/**
|
|
2263
|
-
|
|
3429
|
+
Show2.SchemeColor = {
|
|
3430
|
+
/** Dark 1 (tb_color_dark_1). */
|
|
3431
|
+
DK1: "dk1",
|
|
3432
|
+
/** Light 1 (tb_color_light_1). */
|
|
3433
|
+
LT1: "lt1",
|
|
3434
|
+
/** Dark 2 (tb_color_dark_2). */
|
|
3435
|
+
DK2: "dk2",
|
|
3436
|
+
/** Light 2 (tb_color_light_2). */
|
|
3437
|
+
LT2: "lt2",
|
|
3438
|
+
/** Accent 1 (accent_1). */
|
|
3439
|
+
ACCENT1: "accent1",
|
|
3440
|
+
/** Accent 2 (accent_2). */
|
|
3441
|
+
ACCENT2: "accent2",
|
|
3442
|
+
/** Accent 3 (accent_3). */
|
|
3443
|
+
ACCENT3: "accent3",
|
|
3444
|
+
/** Accent 4 (accent_4). */
|
|
3445
|
+
ACCENT4: "accent4",
|
|
3446
|
+
/** Accent 5 (accent_5). */
|
|
3447
|
+
ACCENT5: "accent5",
|
|
3448
|
+
/** Accent 6 (accent_6). */
|
|
3449
|
+
ACCENT6: "accent6",
|
|
3450
|
+
/** Hyperlink (hyperlink). */
|
|
3451
|
+
HLINK: "hlink",
|
|
3452
|
+
/** Followed hyperlink (opened_hyperlink). */
|
|
3453
|
+
FOL_HLINK: "folHlink",
|
|
3454
|
+
/** Background 1. Follows the color mapping of the slide, LT1 by default. */
|
|
3455
|
+
BG1: "bg1",
|
|
3456
|
+
/** Text 1. Follows the color mapping of the slide, DK1 by default. */
|
|
3457
|
+
TX1: "tx1",
|
|
3458
|
+
/** Background 2. Follows the color mapping of the slide, LT2 by default. */
|
|
3459
|
+
BG2: "bg2",
|
|
3460
|
+
/** Text 2. Follows the color mapping of the slide, DK2 by default. */
|
|
3461
|
+
TX2: "tx2"
|
|
2264
3462
|
};
|
|
2265
3463
|
Show2.FlipDirection = {
|
|
2266
|
-
/**
|
|
3464
|
+
/** Flip Horizontal. */
|
|
2267
3465
|
HORIZONTAL: "horizontal",
|
|
2268
|
-
/**
|
|
3466
|
+
/** Flip Vertical. */
|
|
2269
3467
|
VERTICAL: "vertical"
|
|
2270
3468
|
};
|
|
2271
3469
|
Show2.EffectType = {
|
|
2272
|
-
/**
|
|
3470
|
+
/** Outer shadow. */
|
|
2273
3471
|
OUTER_SHADOW: "outerShdw",
|
|
2274
|
-
/**
|
|
3472
|
+
/** Inner shadow. */
|
|
2275
3473
|
INNER_SHADOW: "innerShdw",
|
|
2276
|
-
/**
|
|
3474
|
+
/** Reflection. */
|
|
2277
3475
|
REFLECTION: "reflection",
|
|
2278
|
-
/**
|
|
3476
|
+
/** Glow. */
|
|
2279
3477
|
GLOW: "glow",
|
|
2280
|
-
/**
|
|
3478
|
+
/** Soft edges. */
|
|
2281
3479
|
SOFT_EDGE: "softEdge"
|
|
2282
3480
|
};
|
|
2283
3481
|
Show2.LineCap = {
|
|
2284
|
-
/**
|
|
3482
|
+
/** Flat. */
|
|
2285
3483
|
FLAT: "flat",
|
|
2286
|
-
/**
|
|
3484
|
+
/** Round. */
|
|
2287
3485
|
ROUND: "rnd",
|
|
2288
|
-
/**
|
|
3486
|
+
/** Square. */
|
|
2289
3487
|
SQUARE: "sq"
|
|
2290
3488
|
};
|
|
2291
3489
|
Show2.LineJoin = {
|
|
2292
|
-
/**
|
|
3490
|
+
/** Round. */
|
|
2293
3491
|
ROUND: "round",
|
|
2294
|
-
/**
|
|
3492
|
+
/** Bevel. */
|
|
2295
3493
|
BEVEL: "bevel",
|
|
2296
|
-
/**
|
|
3494
|
+
/** Miter. */
|
|
2297
3495
|
MITER: "miter"
|
|
2298
3496
|
};
|
|
2299
3497
|
Show2.LineEndType = {
|
|
2300
|
-
/**
|
|
3498
|
+
/** None. */
|
|
2301
3499
|
NONE: "none",
|
|
2302
|
-
/**
|
|
3500
|
+
/** Triangle Arrow. */
|
|
2303
3501
|
TRIANGLE: "triangle",
|
|
2304
|
-
/**
|
|
3502
|
+
/** Stealth Arrow (concave). */
|
|
2305
3503
|
STEALTH: "stealth",
|
|
2306
|
-
/**
|
|
3504
|
+
/** Diamond Arrow. */
|
|
2307
3505
|
DIAMOND: "diamond",
|
|
2308
|
-
/**
|
|
3506
|
+
/** Oval Arrow. */
|
|
2309
3507
|
OVAL: "oval",
|
|
2310
|
-
/**
|
|
3508
|
+
/** Open Arrow. */
|
|
2311
3509
|
ARROW: "arrow"
|
|
2312
3510
|
};
|
|
2313
3511
|
Show2.LineEndSize = {
|
|
2314
|
-
/**
|
|
3512
|
+
/** Small. */
|
|
2315
3513
|
SMALL: "sm",
|
|
2316
|
-
/**
|
|
3514
|
+
/** Medium. */
|
|
2317
3515
|
MEDIUM: "med",
|
|
2318
|
-
/**
|
|
3516
|
+
/** Large. */
|
|
2319
3517
|
LARGE: "lg"
|
|
2320
3518
|
};
|
|
2321
3519
|
Show2.TextAlignH = {
|
|
2322
|
-
/**
|
|
3520
|
+
/** Align Left. */
|
|
2323
3521
|
LEFT: "l",
|
|
2324
|
-
/**
|
|
3522
|
+
/** Center. */
|
|
2325
3523
|
CENTER: "ctr",
|
|
2326
|
-
/**
|
|
3524
|
+
/** Align Right. */
|
|
2327
3525
|
RIGHT: "r",
|
|
2328
|
-
/**
|
|
3526
|
+
/** Justify. */
|
|
2329
3527
|
JUSTIFY: "just",
|
|
2330
|
-
/**
|
|
3528
|
+
/** Distributed. */
|
|
2331
3529
|
DISTRIBUTE: "dist"
|
|
2332
3530
|
};
|
|
2333
3531
|
Show2.LineSpacingType = {
|
|
2334
|
-
/**
|
|
3532
|
+
/** Multiple of the line height. */
|
|
2335
3533
|
MULTIPLE: "multiple",
|
|
2336
|
-
/**
|
|
3534
|
+
/** Exact value in points. */
|
|
2337
3535
|
EXACT: "exact"
|
|
2338
3536
|
};
|
|
2339
3537
|
Show2.SpeedType = {
|
|
2340
|
-
/**
|
|
3538
|
+
/** Slow. */
|
|
2341
3539
|
SLOW: "slow",
|
|
2342
|
-
/**
|
|
3540
|
+
/** Medium. */
|
|
2343
3541
|
MED: "med",
|
|
2344
|
-
/**
|
|
3542
|
+
/** Fast. */
|
|
2345
3543
|
FAST: "fast"
|
|
2346
3544
|
};
|
|
2347
3545
|
Show2.TransitionType = {
|
|
2348
|
-
/**
|
|
3546
|
+
/** None. */
|
|
2349
3547
|
NONE: "none",
|
|
2350
|
-
/**
|
|
3548
|
+
/** Random. */
|
|
2351
3549
|
RANDOM: "random",
|
|
2352
|
-
/**
|
|
3550
|
+
/** Fade. */
|
|
2353
3551
|
FADE: "fade",
|
|
2354
|
-
/**
|
|
3552
|
+
/** Push. */
|
|
2355
3553
|
PUSH: "push",
|
|
2356
|
-
/**
|
|
3554
|
+
/** Cover. */
|
|
2357
3555
|
COVER: "cover",
|
|
2358
|
-
/**
|
|
3556
|
+
/** Cut. */
|
|
2359
3557
|
CUT: "cut",
|
|
2360
|
-
/**
|
|
3558
|
+
/** Split. */
|
|
2361
3559
|
SPLIT: "split",
|
|
2362
|
-
/**
|
|
3560
|
+
/** Wipe. */
|
|
2363
3561
|
WIPE: "wipe",
|
|
2364
|
-
/**
|
|
3562
|
+
/** Diagonal Wipe. */
|
|
2365
3563
|
STRIPS: "strips",
|
|
2366
|
-
/**
|
|
3564
|
+
/** Uncover (pull). */
|
|
2367
3565
|
PULL: "pull",
|
|
2368
|
-
/**
|
|
3566
|
+
/** Comb. */
|
|
2369
3567
|
COMB: "comb",
|
|
2370
|
-
/**
|
|
3568
|
+
/** Circle. */
|
|
2371
3569
|
CIRCLE: "circle",
|
|
2372
|
-
/**
|
|
3570
|
+
/** Diamond. */
|
|
2373
3571
|
DIAMOND: "diamond",
|
|
2374
|
-
/**
|
|
3572
|
+
/** Plus. */
|
|
2375
3573
|
PLUS: "plus",
|
|
2376
|
-
/**
|
|
3574
|
+
/** Zoom. */
|
|
2377
3575
|
ZOOM: "zoom",
|
|
2378
|
-
/**
|
|
3576
|
+
/** Clockwise. */
|
|
2379
3577
|
WHEEL: "wheel",
|
|
2380
|
-
/**
|
|
3578
|
+
/** Counterclockwise. */
|
|
2381
3579
|
WHEEL_REVERSE: "wheelReverse",
|
|
2382
|
-
/**
|
|
3580
|
+
/** Wedge. */
|
|
2383
3581
|
WEDGE: "wedge",
|
|
2384
|
-
/**
|
|
3582
|
+
/** Flip. */
|
|
2385
3583
|
FLIP: "flip"
|
|
2386
3584
|
};
|
|
2387
3585
|
Show2.TransitionEffectDir = {
|
|
2388
|
-
/**
|
|
3586
|
+
/** Down. */
|
|
2389
3587
|
DOWN: "d",
|
|
2390
|
-
/**
|
|
3588
|
+
/** Left. */
|
|
2391
3589
|
LEFT: "l",
|
|
2392
|
-
/**
|
|
3590
|
+
/** Right. */
|
|
2393
3591
|
RIGHT: "r",
|
|
2394
|
-
/**
|
|
3592
|
+
/** Up. */
|
|
2395
3593
|
UP: "u",
|
|
2396
|
-
/**
|
|
3594
|
+
/** Left-Down. */
|
|
2397
3595
|
LEFT_DOWN: "ld",
|
|
2398
|
-
/**
|
|
3596
|
+
/** Left-Up. */
|
|
2399
3597
|
LEFT_UP: "lu",
|
|
2400
|
-
/**
|
|
3598
|
+
/** Right-Down. */
|
|
2401
3599
|
RIGHT_DOWN: "rd",
|
|
2402
|
-
/**
|
|
3600
|
+
/** Right-Up. */
|
|
2403
3601
|
RIGHT_UP: "ru",
|
|
2404
|
-
/**
|
|
3602
|
+
/** In. */
|
|
2405
3603
|
IN: "in",
|
|
2406
|
-
/**
|
|
3604
|
+
/** Out. */
|
|
2407
3605
|
OUT: "out",
|
|
2408
|
-
/**
|
|
3606
|
+
/** Horizontal (orientation). */
|
|
2409
3607
|
HORIZONTAL: "horz",
|
|
2410
|
-
/**
|
|
3608
|
+
/** Vertical (orientation). */
|
|
2411
3609
|
VERTICAL: "vert"
|
|
2412
3610
|
};
|
|
2413
3611
|
Show2.DateFormat = {
|
|
2414
|
-
/**
|
|
3612
|
+
/** Month/day/year (e.g. 6/30/2026). */
|
|
2415
3613
|
Datetime1: "datetime1",
|
|
2416
|
-
/**
|
|
3614
|
+
/** Weekday, month day, year (e.g. Tuesday, June 30, 2026). */
|
|
2417
3615
|
Datetime2: "datetime2",
|
|
2418
|
-
/**
|
|
3616
|
+
/** Day month year (e.g. 30 June 2026). */
|
|
2419
3617
|
Datetime3: "datetime3",
|
|
2420
|
-
/**
|
|
3618
|
+
/** Month day, year (e.g. June 30, 2026). */
|
|
2421
3619
|
Datetime4: "datetime4",
|
|
2422
|
-
/**
|
|
3620
|
+
/** Day-month-two-digit year (e.g. 30-Jun-26). */
|
|
2423
3621
|
Datetime5: "datetime5",
|
|
2424
|
-
/**
|
|
3622
|
+
/** Month and two-digit year (e.g. June 26). */
|
|
2425
3623
|
Datetime6: "datetime6",
|
|
2426
|
-
/**
|
|
3624
|
+
/** Abbreviated month-two-digit year (e.g. Jun-26). */
|
|
2427
3625
|
Datetime7: "datetime7",
|
|
2428
|
-
/**
|
|
3626
|
+
/** Date and 12-hour time (e.g. 6/30/2026 3:05 PM). */
|
|
2429
3627
|
Datetime8: "datetime8",
|
|
2430
|
-
/**
|
|
3628
|
+
/** Date and 12-hour time with seconds (e.g. 6/30/2026 3:05:09 PM). */
|
|
2431
3629
|
Datetime9: "datetime9",
|
|
2432
|
-
/**
|
|
3630
|
+
/** 24-hour time (e.g. 15:05). */
|
|
2433
3631
|
Datetime10: "datetime10",
|
|
2434
|
-
/**
|
|
3632
|
+
/** 24-hour time with seconds (e.g. 15:05:09). */
|
|
2435
3633
|
Datetime11: "datetime11",
|
|
2436
|
-
/**
|
|
3634
|
+
/** 12-hour time (e.g. 3:05 PM). */
|
|
2437
3635
|
Datetime12: "datetime12",
|
|
2438
|
-
/**
|
|
3636
|
+
/** 12-hour time with seconds (e.g. 3:05:09 PM). */
|
|
2439
3637
|
Datetime13: "datetime13"
|
|
2440
3638
|
};
|
|
2441
3639
|
Show2.DateLanguage = {
|
|
2442
|
-
/**
|
|
3640
|
+
/** English (United States). */
|
|
2443
3641
|
ENGLISH: "en-US",
|
|
2444
|
-
/**
|
|
3642
|
+
/** Korean. */
|
|
2445
3643
|
KOREAN: "ko-KR",
|
|
2446
|
-
/**
|
|
3644
|
+
/** Japanese. */
|
|
2447
3645
|
JAPANESE: "ja-JP",
|
|
2448
|
-
/**
|
|
3646
|
+
/** Russian. */
|
|
2449
3647
|
RUSSIAN: "ru-RU"
|
|
2450
3648
|
};
|
|
2451
3649
|
Show2.BulletType = {
|
|
2452
|
-
/**
|
|
3650
|
+
/** No bullet. */
|
|
2453
3651
|
NONE: "buNone",
|
|
2454
|
-
/**
|
|
3652
|
+
/** Character bullet. */
|
|
2455
3653
|
CHAR: "buChar",
|
|
2456
|
-
/**
|
|
3654
|
+
/** Automatic numbering. */
|
|
2457
3655
|
AUTO_NUM: "buAutoNum",
|
|
2458
|
-
/**
|
|
3656
|
+
/** Image bullet. */
|
|
2459
3657
|
BLIP: "buBlip"
|
|
2460
3658
|
};
|
|
2461
3659
|
Show2.Underline = {
|
|
2462
|
-
/**
|
|
3660
|
+
/** None. */
|
|
2463
3661
|
NONE: "none",
|
|
2464
|
-
/**
|
|
3662
|
+
/** Words Only (excluding spaces). */
|
|
2465
3663
|
WORDS: "words",
|
|
2466
|
-
/**
|
|
3664
|
+
/** Single Underline. */
|
|
2467
3665
|
SINGLE: "sng",
|
|
2468
|
-
/**
|
|
3666
|
+
/** Double Underline. */
|
|
2469
3667
|
DOUBLE: "dbl",
|
|
2470
|
-
/**
|
|
3668
|
+
/** Heavy Underline. */
|
|
2471
3669
|
HEAVY: "heavy",
|
|
2472
|
-
/**
|
|
3670
|
+
/** Dotted Underline. */
|
|
2473
3671
|
DOTTED: "dotted",
|
|
2474
|
-
/**
|
|
3672
|
+
/** Dotted Heavy Underline. */
|
|
2475
3673
|
DOTTED_HEAVY: "dottedHeavy",
|
|
2476
|
-
/**
|
|
3674
|
+
/** Dash Underline. */
|
|
2477
3675
|
DASH: "dash",
|
|
2478
|
-
/**
|
|
3676
|
+
/** Dash Heavy Underline. */
|
|
2479
3677
|
DASH_HEAVY: "dashHeavy",
|
|
2480
|
-
/**
|
|
3678
|
+
/** Long Dash Underline. */
|
|
2481
3679
|
DASH_LONG: "dashLong",
|
|
2482
|
-
/**
|
|
3680
|
+
/** Long Dash Heavy Underline. */
|
|
2483
3681
|
DASH_LONG_HEAVY: "dashLongHeavy",
|
|
2484
|
-
/**
|
|
3682
|
+
/** Dot Dash Underline. */
|
|
2485
3683
|
DOT_DASH: "dotDash",
|
|
2486
|
-
/**
|
|
3684
|
+
/** Dot Dash Heavy Underline. */
|
|
2487
3685
|
DOT_DASH_HEAVY: "dotDashHeavy",
|
|
2488
|
-
/**
|
|
3686
|
+
/** Dot Dot Dash Underline. */
|
|
2489
3687
|
DOT_DOT_DASH: "dotDotDash",
|
|
2490
|
-
/**
|
|
3688
|
+
/** Dot Dot Dash Heavy Underline. */
|
|
2491
3689
|
DOT_DOT_DASH_HEAVY: "dotDotDashHeavy",
|
|
2492
|
-
/**
|
|
3690
|
+
/** Wavy Underline. */
|
|
2493
3691
|
WAVY: "wavy",
|
|
2494
|
-
/**
|
|
3692
|
+
/** Wavy Heavy Underline. */
|
|
2495
3693
|
WAVY_HEAVY: "wavyHeavy",
|
|
2496
|
-
/**
|
|
3694
|
+
/** Wavy Double Underline. */
|
|
2497
3695
|
WAVY_DOUBLE: "wavyDbl"
|
|
2498
3696
|
};
|
|
2499
3697
|
Show2.Strike = {
|
|
2500
|
-
/**
|
|
3698
|
+
/** None. */
|
|
2501
3699
|
NONE: "noStrike",
|
|
2502
|
-
/**
|
|
3700
|
+
/** Strikethrough. */
|
|
2503
3701
|
SINGLE: "sngStrike",
|
|
2504
|
-
/**
|
|
3702
|
+
/** Double Strikethrough. */
|
|
2505
3703
|
DOUBLE: "dblStrike"
|
|
2506
3704
|
};
|
|
2507
3705
|
Show2.AutoFitType = {
|
|
2508
|
-
/**
|
|
3706
|
+
/** Do not Autofit. */
|
|
2509
3707
|
NO_AUTOFIT: "noAutofit",
|
|
2510
|
-
/**
|
|
3708
|
+
/** Shrink text on overflow. */
|
|
2511
3709
|
NORMAL: "normAutofit",
|
|
2512
|
-
/**
|
|
3710
|
+
/** Resize shape to fit text. */
|
|
2513
3711
|
SHAPE_AUTOFIT: "spAutoFit"
|
|
2514
3712
|
};
|
|
2515
|
-
Show2.WriteMode = {
|
|
2516
|
-
/** 가로쓰기 */
|
|
2517
|
-
HORIZONTAL: "horz",
|
|
2518
|
-
/** 세로쓰기(동아시아 글자는 세워서 표시) */
|
|
2519
|
-
VERTICAL_EAST: "eaVert",
|
|
2520
|
-
/** 세로쓰기(전체 90° 회전) */
|
|
2521
|
-
VERTICAL: "vert",
|
|
2522
|
-
/** 세로쓰기(270° 회전) */
|
|
2523
|
-
VERTICAL_270: "vert270",
|
|
2524
|
-
/** 워드아트 세로쓰기(오른쪽에서 왼쪽) */
|
|
2525
|
-
WORDART_VERTICAL_RTL: "wordArtVertRtl",
|
|
2526
|
-
/** 워드아트 세로쓰기(글자를 세로로 쌓음) */
|
|
2527
|
-
WORDART_VERTICAL: "wordArtVert",
|
|
2528
|
-
/** 몽골식 세로쓰기(위에서 아래, 줄은 왼쪽에서 오른쪽) */
|
|
2529
|
-
MONGOLIAN_VERTICAL: "mongolianVert"
|
|
2530
|
-
};
|
|
2531
3713
|
Show2.CommentStyle = {
|
|
2532
|
-
/**
|
|
3714
|
+
/** Pink. */
|
|
2533
3715
|
PINK: "pink",
|
|
2534
|
-
/**
|
|
3716
|
+
/** Orange. */
|
|
2535
3717
|
ORANGE: "orange",
|
|
2536
|
-
/**
|
|
3718
|
+
/** Yellow. */
|
|
2537
3719
|
YELLOW: "yellow",
|
|
2538
|
-
/**
|
|
3720
|
+
/** Light Green. */
|
|
2539
3721
|
LIGHT_GREEN: "lightGreen",
|
|
2540
|
-
/**
|
|
3722
|
+
/** Green. */
|
|
2541
3723
|
GREEN: "green",
|
|
2542
|
-
/**
|
|
3724
|
+
/** Sky Blue. */
|
|
2543
3725
|
SKY_BLUE: "skyBlue",
|
|
2544
|
-
/**
|
|
3726
|
+
/** Blue. */
|
|
2545
3727
|
BLUE: "blue",
|
|
2546
|
-
/**
|
|
3728
|
+
/** Navy. */
|
|
2547
3729
|
NAVY: "navy",
|
|
2548
|
-
/**
|
|
3730
|
+
/** Purple. */
|
|
2549
3731
|
PURPLE: "purple",
|
|
2550
|
-
/**
|
|
3732
|
+
/** Gray. */
|
|
2551
3733
|
GRAY: "gray"
|
|
2552
3734
|
};
|
|
2553
3735
|
Show2.TextAlignV = {
|
|
2554
|
-
/**
|
|
3736
|
+
/** Top. */
|
|
2555
3737
|
TOP: 0,
|
|
2556
|
-
/**
|
|
3738
|
+
/** Middle. */
|
|
2557
3739
|
MIDDLE: 1,
|
|
2558
|
-
/**
|
|
3740
|
+
/** Bottom. */
|
|
2559
3741
|
BOTTOM: 2,
|
|
2560
|
-
/**
|
|
3742
|
+
/** Top Centered. */
|
|
2561
3743
|
TOP_CENTER: 3,
|
|
2562
|
-
/**
|
|
3744
|
+
/** Middle Centered. */
|
|
2563
3745
|
MIDDLE_CENTER: 4,
|
|
2564
|
-
/**
|
|
3746
|
+
/** Bottom Centered. */
|
|
2565
3747
|
BOTTOM_CENTER: 5
|
|
2566
3748
|
};
|
|
2567
3749
|
Show2.NumberedType = {
|
|
@@ -2577,7 +3759,7 @@ var Show;
|
|
|
2577
3759
|
NUMBER_WITH_ROUND_BRACKET: "arabicParenR",
|
|
2578
3760
|
/** a. b. c. */
|
|
2579
3761
|
LOWERCASE_ALPHABET: "alphaLcPeriod",
|
|
2580
|
-
/** 一. 二. 三. (
|
|
3762
|
+
/** 一. 二. 三. (Chinese numerals). */
|
|
2581
3763
|
CHINESE: "ea1JpnKorPeriod",
|
|
2582
3764
|
/** i. ii. iii. */
|
|
2583
3765
|
ROMAN_NUMERAL_LOWERCASE: "romanLcPeriod",
|
|
@@ -2601,347 +3783,307 @@ var Show;
|
|
|
2601
3783
|
CHECK: "7"
|
|
2602
3784
|
};
|
|
2603
3785
|
Show2.HyperlinkType = {
|
|
2604
|
-
/**
|
|
3786
|
+
/** Web address. */
|
|
2605
3787
|
URL: "url",
|
|
2606
|
-
/**
|
|
3788
|
+
/** Email address. */
|
|
2607
3789
|
EMAIL: "email",
|
|
2608
|
-
/**
|
|
3790
|
+
/** Go to a slide in the document. */
|
|
2609
3791
|
SLIDE_JUMP: "slideJump",
|
|
2610
|
-
/**
|
|
3792
|
+
/** Show jump (next/previous slide, etc.). */
|
|
2611
3793
|
SHOW_JUMP: "showJump",
|
|
2612
|
-
/**
|
|
3794
|
+
/** File link. */
|
|
2613
3795
|
FILE: "file"
|
|
2614
3796
|
};
|
|
2615
3797
|
Show2.ShowJumpType = {
|
|
2616
|
-
/**
|
|
3798
|
+
/** First Slide. */
|
|
2617
3799
|
FIRST: "first",
|
|
2618
|
-
/**
|
|
3800
|
+
/** Last Slide. */
|
|
2619
3801
|
LAST: "last",
|
|
2620
|
-
/**
|
|
3802
|
+
/** Next Slide. */
|
|
2621
3803
|
NEXT: "next",
|
|
2622
|
-
/**
|
|
3804
|
+
/** Previous Slide. */
|
|
2623
3805
|
PREV: "prev",
|
|
2624
|
-
/**
|
|
3806
|
+
/** End Show. */
|
|
2625
3807
|
EXIT: "endShow",
|
|
2626
|
-
/**
|
|
3808
|
+
/** Last Slide Viewed. */
|
|
2627
3809
|
LAST_VIEWED: "lastSlideViewed"
|
|
2628
3810
|
};
|
|
2629
3811
|
Show2.GradientType = {
|
|
2630
|
-
/**
|
|
3812
|
+
/** Linear. */
|
|
2631
3813
|
LINEAR: "lin",
|
|
2632
|
-
/**
|
|
3814
|
+
/** Radial. */
|
|
2633
3815
|
CIRCLE: "circle",
|
|
2634
|
-
/**
|
|
3816
|
+
/** Rectangular. */
|
|
2635
3817
|
RECT: "rect",
|
|
2636
|
-
/**
|
|
3818
|
+
/** Path. */
|
|
2637
3819
|
SHAPE: "shape"
|
|
2638
3820
|
};
|
|
2639
3821
|
Show2.FillType = {
|
|
2640
|
-
/**
|
|
3822
|
+
/** Solid fill. */
|
|
2641
3823
|
SOLID: "solidFill",
|
|
2642
|
-
/**
|
|
3824
|
+
/** Gradient fill. */
|
|
2643
3825
|
GRADIENT: "gradFill",
|
|
2644
|
-
/**
|
|
3826
|
+
/** No fill. */
|
|
2645
3827
|
NONE: "noFill",
|
|
2646
|
-
/**
|
|
3828
|
+
/** Image fill. */
|
|
2647
3829
|
IMAGE: "blipFill",
|
|
2648
|
-
/**
|
|
3830
|
+
/** Pattern fill. */
|
|
2649
3831
|
PATTERN: "pattFill"
|
|
2650
3832
|
};
|
|
2651
3833
|
Show2.ImageFillMode = {
|
|
2652
|
-
/**
|
|
3834
|
+
/** Stretch. */
|
|
2653
3835
|
STRETCH: "stretch",
|
|
2654
|
-
/**
|
|
3836
|
+
/** Tile. */
|
|
2655
3837
|
TILE: "tile"
|
|
2656
3838
|
};
|
|
2657
3839
|
Show2.ImageTileFlip = {
|
|
2658
|
-
/**
|
|
3840
|
+
/** None. */
|
|
2659
3841
|
NONE: "none",
|
|
2660
|
-
/**
|
|
3842
|
+
/** Horizontal. */
|
|
2661
3843
|
HORIZONTAL: "x",
|
|
2662
|
-
/**
|
|
3844
|
+
/** Vertical. */
|
|
2663
3845
|
VERTICAL: "y",
|
|
2664
|
-
/**
|
|
3846
|
+
/** Both. */
|
|
2665
3847
|
BOTH: "xy"
|
|
2666
3848
|
};
|
|
2667
3849
|
Show2.RectAlign = {
|
|
2668
|
-
/**
|
|
3850
|
+
/** Top Left. */
|
|
2669
3851
|
TOP_LEFT: "tl",
|
|
2670
|
-
/**
|
|
3852
|
+
/** Top. */
|
|
2671
3853
|
TOP: "t",
|
|
2672
|
-
/**
|
|
3854
|
+
/** Top Right. */
|
|
2673
3855
|
TOP_RIGHT: "tr",
|
|
2674
|
-
/**
|
|
3856
|
+
/** Left. */
|
|
2675
3857
|
LEFT: "l",
|
|
2676
|
-
/**
|
|
3858
|
+
/** Center. */
|
|
2677
3859
|
CENTER: "ctr",
|
|
2678
|
-
/**
|
|
3860
|
+
/** Right. */
|
|
2679
3861
|
RIGHT: "r",
|
|
2680
|
-
/**
|
|
3862
|
+
/** Bottom Left. */
|
|
2681
3863
|
BOTTOM_LEFT: "bl",
|
|
2682
|
-
/**
|
|
3864
|
+
/** Bottom. */
|
|
2683
3865
|
BOTTOM: "b",
|
|
2684
|
-
/**
|
|
3866
|
+
/** Bottom Right. */
|
|
2685
3867
|
BOTTOM_RIGHT: "br"
|
|
2686
3868
|
};
|
|
2687
3869
|
Show2.PatternPreset = {
|
|
2688
|
-
/** 5%
|
|
3870
|
+
/** 5% */
|
|
2689
3871
|
PERCENT_5: "pct5",
|
|
2690
|
-
/** 10%
|
|
3872
|
+
/** 10% */
|
|
2691
3873
|
PERCENT_10: "pct10",
|
|
2692
|
-
/** 20%
|
|
3874
|
+
/** 20% */
|
|
2693
3875
|
PERCENT_20: "pct20",
|
|
2694
|
-
/** 25%
|
|
3876
|
+
/** 25% */
|
|
2695
3877
|
PERCENT_25: "pct25",
|
|
2696
|
-
/** 30%
|
|
3878
|
+
/** 30% */
|
|
2697
3879
|
PERCENT_30: "pct30",
|
|
2698
|
-
/** 40%
|
|
3880
|
+
/** 40% */
|
|
2699
3881
|
PERCENT_40: "pct40",
|
|
2700
|
-
/** 50%
|
|
3882
|
+
/** 50% */
|
|
2701
3883
|
PERCENT_50: "pct50",
|
|
2702
|
-
/** 60%
|
|
3884
|
+
/** 60% */
|
|
2703
3885
|
PERCENT_60: "pct60",
|
|
2704
|
-
/** 70%
|
|
3886
|
+
/** 70% */
|
|
2705
3887
|
PERCENT_70: "pct70",
|
|
2706
|
-
/** 75%
|
|
3888
|
+
/** 75% */
|
|
2707
3889
|
PERCENT_75: "pct75",
|
|
2708
|
-
/** 80%
|
|
3890
|
+
/** 80% */
|
|
2709
3891
|
PERCENT_80: "pct80",
|
|
2710
|
-
/** 90%
|
|
3892
|
+
/** 90% */
|
|
2711
3893
|
PERCENT_90: "pct90",
|
|
2712
|
-
/**
|
|
3894
|
+
/** Light Downward Diagonal. */
|
|
2713
3895
|
LIGHT_DOWNWARD_DIAGONAL: "ltDnDiag",
|
|
2714
|
-
/**
|
|
3896
|
+
/** Light Upward Diagonal. */
|
|
2715
3897
|
LIGHT_UPWARD_DIAGONAL: "ltUpDiag",
|
|
2716
|
-
/**
|
|
3898
|
+
/** Dark Downward Diagonal. */
|
|
2717
3899
|
DARK_DOWNWARD_DIAGONAL: "dkDnDiag",
|
|
2718
|
-
/**
|
|
3900
|
+
/** Dark Upward Diagonal. */
|
|
2719
3901
|
DARK_UPWARD_DIAGONAL: "dkUpDiag",
|
|
2720
|
-
/**
|
|
3902
|
+
/** Wide Downward Diagonal. */
|
|
2721
3903
|
WIDE_DOWNWARD_DIAGONAL: "wdDnDiag",
|
|
2722
|
-
/**
|
|
3904
|
+
/** Wide Upward Diagonal. */
|
|
2723
3905
|
WIDE_UPWARD_DIAGONAL: "wdUpDiag",
|
|
2724
|
-
/**
|
|
3906
|
+
/** Light Vertical. */
|
|
2725
3907
|
LIGHT_VERTICAL: "ltVert",
|
|
2726
|
-
/**
|
|
3908
|
+
/** Light Horizontal. */
|
|
2727
3909
|
LIGHT_HORIZONTAL: "ltHorz",
|
|
2728
|
-
/**
|
|
3910
|
+
/** Narrow Vertical. */
|
|
2729
3911
|
NARROW_VERTICAL: "narVert",
|
|
2730
|
-
/**
|
|
3912
|
+
/** Narrow Horizontal. */
|
|
2731
3913
|
NARROW_HORIZONTAL: "narHorz",
|
|
2732
|
-
/**
|
|
3914
|
+
/** Dark Vertical. */
|
|
2733
3915
|
DARK_VERTICAL: "dkVert",
|
|
2734
|
-
/**
|
|
3916
|
+
/** Dark Horizontal. */
|
|
2735
3917
|
DARK_HORIZONTAL: "dkHorz",
|
|
2736
|
-
/**
|
|
3918
|
+
/** Dashed Downward Diagonal. */
|
|
2737
3919
|
DASHED_DOWNWARD_DIAGONAL: "dashDnDiag",
|
|
2738
|
-
/**
|
|
3920
|
+
/** Dashed Upward Diagonal. */
|
|
2739
3921
|
DASHED_UPWARD_DIAGONAL: "dashUpDiag",
|
|
2740
|
-
/**
|
|
3922
|
+
/** Dashed Horizontal. */
|
|
2741
3923
|
DASHED_HORIZONTAL: "dashHorz",
|
|
2742
|
-
/**
|
|
3924
|
+
/** Dashed Vertical. */
|
|
2743
3925
|
DASHED_VERTICAL: "dashVert",
|
|
2744
|
-
/**
|
|
3926
|
+
/** Small Confetti. */
|
|
2745
3927
|
SMALL_CONFETTI: "smConfetti",
|
|
2746
|
-
/**
|
|
3928
|
+
/** Large Confetti. */
|
|
2747
3929
|
LARGE_CONFETTI: "lgConfetti",
|
|
2748
|
-
/**
|
|
3930
|
+
/** Zig Zag. */
|
|
2749
3931
|
ZIGZAG: "zigZag",
|
|
2750
|
-
/**
|
|
3932
|
+
/** Wave. */
|
|
2751
3933
|
WAVE: "wave",
|
|
2752
|
-
/**
|
|
3934
|
+
/** Diagonal Brick. */
|
|
2753
3935
|
DIAGONAL_BRICK: "diagBrick",
|
|
2754
|
-
/**
|
|
3936
|
+
/** Horizontal Brick. */
|
|
2755
3937
|
HORIZONTAL_BRICK: "horzBrick",
|
|
2756
|
-
/**
|
|
3938
|
+
/** Weave. */
|
|
2757
3939
|
WEAVE: "weave",
|
|
2758
|
-
/**
|
|
3940
|
+
/** Plaid. */
|
|
2759
3941
|
PLAID: "plaid",
|
|
2760
|
-
/**
|
|
3942
|
+
/** Divot. */
|
|
2761
3943
|
DIVOT: "divot",
|
|
2762
|
-
/**
|
|
3944
|
+
/** Dotted Grid. */
|
|
2763
3945
|
DOTTED_GRID: "dotGrid",
|
|
2764
|
-
/**
|
|
3946
|
+
/** Dotted Diamond. */
|
|
2765
3947
|
DOTTED_DIAMOND: "dotDmnd",
|
|
2766
|
-
/**
|
|
3948
|
+
/** Shingle. */
|
|
2767
3949
|
SHINGLE: "shingle",
|
|
2768
|
-
/**
|
|
3950
|
+
/** Trellis. */
|
|
2769
3951
|
TRELLIS: "trellis",
|
|
2770
|
-
/**
|
|
3952
|
+
/** Sphere. */
|
|
2771
3953
|
SPHERE: "sphere",
|
|
2772
|
-
/**
|
|
3954
|
+
/** Small Grid. */
|
|
2773
3955
|
SMALL_GRID: "smGrid",
|
|
2774
|
-
/**
|
|
3956
|
+
/** Large Grid. */
|
|
2775
3957
|
LARGE_GRID: "lgGrid",
|
|
2776
|
-
/**
|
|
3958
|
+
/** Small Checker Board. */
|
|
2777
3959
|
SMALL_CHECKER_BOARD: "smCheck",
|
|
2778
|
-
/**
|
|
3960
|
+
/** Large Checker Board. */
|
|
2779
3961
|
LARGE_CHECKER_BOARD: "lgCheck",
|
|
2780
|
-
/**
|
|
3962
|
+
/** Outlined Diamond. */
|
|
2781
3963
|
OUTLINED_DIAMOND: "openDmnd",
|
|
2782
|
-
/**
|
|
3964
|
+
/** Solid Diamond. */
|
|
2783
3965
|
SOLID_DIAMOND: "solidDmnd",
|
|
2784
|
-
/**
|
|
3966
|
+
/** Horizontal. */
|
|
2785
3967
|
HORIZONTAL: "horz",
|
|
2786
|
-
/**
|
|
3968
|
+
/** Vertical. */
|
|
2787
3969
|
VERTICAL: "vert",
|
|
2788
|
-
/**
|
|
3970
|
+
/** Cross. */
|
|
2789
3971
|
CROSS: "cross",
|
|
2790
|
-
/**
|
|
3972
|
+
/** Downward Diagonal. */
|
|
2791
3973
|
DOWNWARD_DIAGONAL: "dnDiag",
|
|
2792
|
-
/**
|
|
3974
|
+
/** Upward Diagonal. */
|
|
2793
3975
|
UPWARD_DIAGONAL: "upDiag",
|
|
2794
|
-
/**
|
|
3976
|
+
/** Diagonal Cross. */
|
|
2795
3977
|
DIAGONAL_CROSS: "diagCross"
|
|
2796
3978
|
};
|
|
2797
3979
|
Show2.AlignType = {
|
|
2798
|
-
/**
|
|
3980
|
+
/** Align Left. */
|
|
2799
3981
|
LEFT: "left",
|
|
2800
|
-
/**
|
|
3982
|
+
/** Align Center (horizontal). */
|
|
2801
3983
|
CENTER: "center",
|
|
2802
|
-
/**
|
|
3984
|
+
/** Align Right. */
|
|
2803
3985
|
RIGHT: "right",
|
|
2804
|
-
/**
|
|
3986
|
+
/** Align Top. */
|
|
2805
3987
|
TOP: "top",
|
|
2806
|
-
/**
|
|
3988
|
+
/** Align Middle (vertical). */
|
|
2807
3989
|
MIDDLE: "middle",
|
|
2808
|
-
/**
|
|
3990
|
+
/** Align Bottom. */
|
|
2809
3991
|
BOTTOM: "bottom"
|
|
2810
3992
|
};
|
|
2811
3993
|
Show2.DistributeDirection = {
|
|
2812
|
-
/**
|
|
3994
|
+
/** Distribute Horizontally. */
|
|
2813
3995
|
HORIZONTAL: "horizontal",
|
|
2814
|
-
/**
|
|
3996
|
+
/** Distribute Vertically. */
|
|
2815
3997
|
VERTICAL: "vertical"
|
|
2816
3998
|
};
|
|
2817
3999
|
Show2.GridPosition = {
|
|
2818
|
-
/**
|
|
4000
|
+
/** Top Left. */
|
|
2819
4001
|
TOP_LEFT: "top-left",
|
|
2820
|
-
/**
|
|
4002
|
+
/** Top Center. */
|
|
2821
4003
|
TOP_CENTER: "top-center",
|
|
2822
|
-
/**
|
|
4004
|
+
/** Top Right. */
|
|
2823
4005
|
TOP_RIGHT: "top-right",
|
|
2824
|
-
/**
|
|
4006
|
+
/** Center Left. */
|
|
2825
4007
|
CENTER_LEFT: "center-left",
|
|
2826
|
-
/**
|
|
4008
|
+
/** Center. */
|
|
2827
4009
|
CENTER: "center",
|
|
2828
|
-
/**
|
|
4010
|
+
/** Center Right. */
|
|
2829
4011
|
CENTER_RIGHT: "center-right",
|
|
2830
|
-
/**
|
|
4012
|
+
/** Bottom Left. */
|
|
2831
4013
|
BOTTOM_LEFT: "bottom-left",
|
|
2832
|
-
/**
|
|
4014
|
+
/** Bottom Center. */
|
|
2833
4015
|
BOTTOM_CENTER: "bottom-center",
|
|
2834
|
-
/**
|
|
4016
|
+
/** Bottom Right. */
|
|
2835
4017
|
BOTTOM_RIGHT: "bottom-right"
|
|
2836
4018
|
};
|
|
2837
4019
|
Show2.SizeCategory = {
|
|
2838
|
-
/**
|
|
4020
|
+
/** Small (10% or less of the slide area). */
|
|
2839
4021
|
SMALL: "small",
|
|
2840
|
-
/**
|
|
4022
|
+
/** Medium (more than 10% and up to 40%). */
|
|
2841
4023
|
MEDIUM: "medium",
|
|
2842
|
-
/**
|
|
4024
|
+
/** Large (more than 40%). */
|
|
2843
4025
|
LARGE: "large"
|
|
2844
4026
|
};
|
|
2845
4027
|
Show2.BorderPosition = {
|
|
2846
|
-
/**
|
|
4028
|
+
/** Top Border. */
|
|
2847
4029
|
TOP: "top",
|
|
2848
|
-
/**
|
|
4030
|
+
/** Bottom Border. */
|
|
2849
4031
|
BOTTOM: "bottom",
|
|
2850
|
-
/**
|
|
4032
|
+
/** Left Border. */
|
|
2851
4033
|
LEFT: "left",
|
|
2852
|
-
/**
|
|
4034
|
+
/** Right Border. */
|
|
2853
4035
|
RIGHT: "right",
|
|
2854
|
-
/**
|
|
4036
|
+
/** Diagonal Down Border (↘). */
|
|
2855
4037
|
DIAGONAL_DOWN: "diagonalDown",
|
|
2856
|
-
/**
|
|
4038
|
+
/** Diagonal Up Border (↗). */
|
|
2857
4039
|
DIAGONAL_UP: "diagonalUp",
|
|
2858
|
-
/**
|
|
4040
|
+
/** All four sides (excluding diagonals; setBorderStyle only). */
|
|
2859
4041
|
ALL: "all"
|
|
2860
4042
|
};
|
|
2861
4043
|
Show2.InsertPosition = {
|
|
2862
|
-
/**
|
|
4044
|
+
/** Above the reference row. */
|
|
2863
4045
|
ABOVE: 0,
|
|
2864
|
-
/**
|
|
4046
|
+
/** Below the reference row. */
|
|
2865
4047
|
BELOW: 1,
|
|
2866
|
-
/**
|
|
4048
|
+
/** To the left of the reference column. */
|
|
2867
4049
|
LEFT: 2,
|
|
2868
|
-
/**
|
|
4050
|
+
/** To the right of the reference column. */
|
|
2869
4051
|
RIGHT: 3
|
|
2870
4052
|
};
|
|
2871
4053
|
Show2.TableStyleOption = {
|
|
2872
|
-
/**
|
|
4054
|
+
/** Header Row. */
|
|
2873
4055
|
FIRST_ROW: 0,
|
|
2874
|
-
/**
|
|
4056
|
+
/** Total Row (last row). */
|
|
2875
4057
|
LAST_ROW: 1,
|
|
2876
|
-
/**
|
|
4058
|
+
/** Banded Rows. */
|
|
2877
4059
|
BAND_ROW: 2,
|
|
2878
|
-
/**
|
|
4060
|
+
/** First Column. */
|
|
2879
4061
|
FIRST_COL: 3,
|
|
2880
|
-
/**
|
|
4062
|
+
/** Last Column. */
|
|
2881
4063
|
LAST_COL: 4,
|
|
2882
|
-
/**
|
|
4064
|
+
/** Banded Columns. */
|
|
2883
4065
|
BAND_COL: 5
|
|
2884
4066
|
};
|
|
2885
|
-
Show2.TableStyleColor = {
|
|
2886
|
-
/** 테마 텍스트 1 색 */
|
|
2887
|
-
TX1: "tx1",
|
|
2888
|
-
/** 테마 강조 1 색 */
|
|
2889
|
-
ACCENT1: "accent1",
|
|
2890
|
-
/** 테마 강조 2 색 */
|
|
2891
|
-
ACCENT2: "accent2",
|
|
2892
|
-
/** 테마 강조 3 색 */
|
|
2893
|
-
ACCENT3: "accent3",
|
|
2894
|
-
/** 테마 강조 4 색 */
|
|
2895
|
-
ACCENT4: "accent4",
|
|
2896
|
-
/** 테마 강조 5 색 */
|
|
2897
|
-
ACCENT5: "accent5",
|
|
2898
|
-
/** 테마 강조 6 색 */
|
|
2899
|
-
ACCENT6: "accent6"
|
|
2900
|
-
};
|
|
2901
|
-
Show2.TableStyleType = {
|
|
2902
|
-
/** 일반 스타일 1 */
|
|
2903
|
-
GENERIC1: "generic1",
|
|
2904
|
-
/** 일반 스타일 2 */
|
|
2905
|
-
GENERIC2: "generic2",
|
|
2906
|
-
/** 밝은 스타일 1 */
|
|
2907
|
-
LIGHT1: "light1",
|
|
2908
|
-
/** 밝은 스타일 2 */
|
|
2909
|
-
LIGHT2: "light2",
|
|
2910
|
-
/** 밝은 스타일 3 */
|
|
2911
|
-
LIGHT3: "light3",
|
|
2912
|
-
/** 중간 스타일 1 */
|
|
2913
|
-
NORMAL1: "normal1",
|
|
2914
|
-
/** 중간 스타일 2 */
|
|
2915
|
-
NORMAL2: "normal2",
|
|
2916
|
-
/** 중간 스타일 3 */
|
|
2917
|
-
NORMAL3: "normal3",
|
|
2918
|
-
/** 중간 스타일 4 */
|
|
2919
|
-
NORMAL4: "normal4",
|
|
2920
|
-
/** 어두운 스타일 1 */
|
|
2921
|
-
DARK1: "dark1",
|
|
2922
|
-
/** 어두운 스타일 2 */
|
|
2923
|
-
DARK2: "dark2"
|
|
2924
|
-
};
|
|
2925
4067
|
Show2.ShapePresetFamily = {
|
|
2926
|
-
/**
|
|
4068
|
+
/** Rectangles — basic, rounded-corner, and snipped-corner rectangles. */
|
|
2927
4069
|
rectangle: ["rect", "roundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "snipRoundRect", "round1Rect", "round2SameRect", "round2DiagRect"],
|
|
2928
|
-
/**
|
|
4070
|
+
/** Block Arrows — block arrows and arrow callouts. */
|
|
2929
4071
|
arrow: ["rightArrow", "leftArrow", "upArrow", "downArrow", "leftRightArrow", "upDownArrow", "quadArrow", "leftRightUpArrow", "bentArrow", "uturnArrow", "leftUpArrow", "bentUpArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "stripedRightArrow", "notchedRightArrow", "homePlate", "chevron", "rightArrowCallout", "leftArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "circularArrow", "leftCircularArrow", "swooshArrow", "leftRightRibbon"],
|
|
2930
|
-
/**
|
|
4072
|
+
/** Basic Shapes — ovals, polygons, brackets, symbols, and more. */
|
|
2931
4073
|
basicShape: ["ellipse", "triangle", "rtTriangle", "parallelogram", "trapezoid", "diamond", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "pieWedge", "pie", "chord", "teardrop", "frame", "halfFrame", "corner", "diagStripe", "plus", "plaque", "can", "cube", "bevel", "donut", "noSmoking", "blockArc", "foldedCorner", "smileyFace", "heart", "funnel", "gear6", "gear9", "lightningBolt", "sun", "moon", "cloud", "arc", "bracketPair", "bracePair", "leftBracket", "rightBracket", "leftBrace", "rightBrace"],
|
|
2932
|
-
/**
|
|
4074
|
+
/** Stars — stars and explosions. */
|
|
2933
4075
|
star: ["irregularSeal1", "irregularSeal2", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32"],
|
|
2934
|
-
/**
|
|
4076
|
+
/** Banners — ribbons, scrolls, and waves. */
|
|
2935
4077
|
banner: ["ribbon2", "ribbon", "ellipseRibbon2", "ellipseRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave"],
|
|
2936
|
-
/**
|
|
4078
|
+
/** Callouts — speech bubbles and line callouts. */
|
|
2937
4079
|
callout: ["wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3"],
|
|
2938
|
-
/**
|
|
4080
|
+
/** Flowchart — process, decision, storage, and more. */
|
|
2939
4081
|
flowchart: ["flowChartProcess", "flowChartAlternateProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartOffpageConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOnlineStorage", "flowChartDelay", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay"],
|
|
2940
|
-
/**
|
|
4082
|
+
/** Action Buttons — back/forward, home, help, and more. */
|
|
2941
4083
|
actionButton: ["actionButtonBackPrevious", "actionButtonForwardNext", "actionButtonBeginning", "actionButtonEnd", "actionButtonHome", "actionButtonInformation", "actionButtonReturn", "actionButtonMovie", "actionButtonDocument", "actionButtonSound", "actionButtonHelp", "actionButtonBlank"],
|
|
2942
|
-
/**
|
|
4084
|
+
/** Equation Shapes — plus, minus, multiply, divide, equal, and not equal. */
|
|
2943
4085
|
equation: ["mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual"],
|
|
2944
|
-
/**
|
|
4086
|
+
/** Lines — line, elbow connector, and curved connector. */
|
|
2945
4087
|
line: ["line", "bentConnector3", "curvedConnector3"]
|
|
2946
4088
|
};
|
|
2947
4089
|
})(Show || (Show = {}));
|
|
@@ -2954,6 +4096,7 @@ export {
|
|
|
2954
4096
|
ChartGridLineType,
|
|
2955
4097
|
ChartLegendPosition,
|
|
2956
4098
|
ChartType,
|
|
4099
|
+
DEFAULT_TOOLKIT_RULES,
|
|
2957
4100
|
LineDash,
|
|
2958
4101
|
MODULE_APP_ID,
|
|
2959
4102
|
Office,
|
|
@@ -2962,18 +4105,36 @@ export {
|
|
|
2962
4105
|
SDKError,
|
|
2963
4106
|
SDK_ERROR_CODE,
|
|
2964
4107
|
SDK_SYSTEM_PROMPT_METHOD,
|
|
4108
|
+
SDK_TOOL_API_REFERENCE,
|
|
2965
4109
|
SDK_TOOL_EXECUTE_METHOD,
|
|
4110
|
+
SDK_TOOL_EXECUTE_SCRIPT,
|
|
2966
4111
|
SDK_TOOL_LIST_METHOD,
|
|
2967
4112
|
SDK_VERSION,
|
|
2968
4113
|
ShapePreset,
|
|
2969
4114
|
ShapeZOrder,
|
|
2970
4115
|
Show,
|
|
4116
|
+
TOOLKIT_PRESETS,
|
|
4117
|
+
TOOLKIT_PROVIDERS,
|
|
4118
|
+
TOOL_FAILURE_CODES,
|
|
2971
4119
|
Word,
|
|
4120
|
+
classifyModuleCode,
|
|
4121
|
+
composeSystemPrompt,
|
|
2972
4122
|
createOffice,
|
|
4123
|
+
createOfficeToolkit,
|
|
4124
|
+
deriveFrameworkOrigin,
|
|
2973
4125
|
getSystemPrompt,
|
|
2974
4126
|
getToolSchemas,
|
|
2975
4127
|
getTools,
|
|
4128
|
+
isToolResult,
|
|
4129
|
+
isToolkitPreset,
|
|
4130
|
+
presetIncludes,
|
|
2976
4131
|
registerTools,
|
|
2977
|
-
|
|
4132
|
+
toProviderTool,
|
|
4133
|
+
toolResultFromError,
|
|
4134
|
+
toolResultFromRaw,
|
|
4135
|
+
toolResultToMcp,
|
|
4136
|
+
waitForOfficeReady,
|
|
4137
|
+
withExecute,
|
|
4138
|
+
withMcpExecute
|
|
2978
4139
|
};
|
|
2979
4140
|
//# sourceMappingURL=index.js.map
|