@thinkfree.dev/tfo-sdk 0.2.2 → 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/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.2.2" : "0.0.0-dev";
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 검증 실패 (module/origin/target 등) */
20
+ /** Invalid options or arguments (module, origin, target and so on) */
21
21
  INVALID_ARGUMENT: 1001,
22
- /** sendCommand 응답 타임아웃 */
22
+ /** The editor did not respond within the timeout */
23
23
  TIMEOUT: 1002,
24
- /** disconnect() 호출 후 사용 시도 */
24
+ /** Used after `disconnect()` */
25
25
  DESTROYED: 1003,
26
- /** 응답 envelope 파싱·구조 오류 */
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
- /** Framework 측 비즈니스 에러 (RESULT_CODE.FAIL 등) — code는 그대로 전달 */
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
- // 단일 type 만 쓴다 — Gemini function declaration 은 type 유니언(string|array)을 받지 않고,
162
- // 첫 멤버(string)로 접히면 items 가 남아 도구 목록 전체가 거부된다(2026-09-16 릴리즈 서버 400).
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 : "\uB3C4\uAD6C \uC2E4\uD589 \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.";
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 모듈 (webShow api/showProxies.js)
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 모듈 (webCell api/apiConstants.js — CHART/TABLE 은 위 문자열 재사용)
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
- // 호출자 SDK 버전 자기 신고 — 모듈이 API/도구별 minSdkVersion 게이트에 사용.
432
- // 수신부 필터는 알려진 필드만 검사하므로 구 framework 에서도 무시되어 안전.
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,
@@ -615,6 +1193,13 @@ function createProxyClient(execute, options) {
615
1193
  }
616
1194
  return raw;
617
1195
  }
1196
+ function applyRebind(state, raw) {
1197
+ const rebind = raw?.rebind;
1198
+ if (rebind == null) {
1199
+ return;
1200
+ }
1201
+ state.attrs = kind === "path" ? { root: { type: rebind.type, ...rebind.attrs }, steps: [] } : { ...rebind.attrs };
1202
+ }
618
1203
  async function invoke(state, method, args) {
619
1204
  const payload = {
620
1205
  proxyType: state.type,
@@ -623,7 +1208,9 @@ function createProxyClient(execute, options) {
623
1208
  args: serializeArgs(args)
624
1209
  };
625
1210
  const raw = await execute("SDK.proxyInvoke", [payload]);
626
- return deserializeResult(unwrapResponse(raw, method));
1211
+ const value = unwrapResponse(raw, method);
1212
+ applyRebind(state, raw);
1213
+ return deserializeResult(value);
627
1214
  }
628
1215
  function makeChildHandle(state, method, childType, args) {
629
1216
  const attrs = state.attrs;
@@ -723,6 +1310,20 @@ function createOffice(options) {
723
1310
  }
724
1311
  return raw;
725
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
+ };
726
1327
  const documentCommonApi = {
727
1328
  async getFileName() {
728
1329
  return (await fetchAppInfo()).fileName ?? null;
@@ -765,7 +1366,7 @@ function createOffice(options) {
765
1366
  assertConnected();
766
1367
  return registerTools(execute, modelContext, { ...registerOptions, module });
767
1368
  },
768
- // 반환 캐스트는 구현부 한정 — 공개 시그니처는 DocumentHandle<M> 로 정확.
1369
+ // The return casts stay inside the implementation; the public signature is exactly DocumentHandle<M>.
769
1370
  getDocument() {
770
1371
  assertConnected();
771
1372
  if (module === "show") {
@@ -782,7 +1383,7 @@ function createOffice(options) {
782
1383
  SDK_ERROR_CODE.INVALID_ARGUMENT
783
1384
  );
784
1385
  },
785
- // 앱 종류 — 연결한 module 그대로 (OfficeType 값과 동일 리터럴, 동기·왕복 없음).
1386
+ // Application type: the connected module as is (same literal as the OfficeType value; synchronous, no round trip).
786
1387
  getApplicationType() {
787
1388
  return module;
788
1389
  },
@@ -794,7 +1395,11 @@ function createOffice(options) {
794
1395
  assertConnected();
795
1396
  return fetchAppInfo().then((info) => info.version ?? null);
796
1397
  },
797
- // 클라이언트 번들 버전 — 연결 상수라 assertConnected 하지 않는다(disconnect 후에도 유효).
1398
+ getAiProviderConfig() {
1399
+ assertConnected();
1400
+ return fetchAiProviderConfig();
1401
+ },
1402
+ // Client bundle version: a constant, so no assertConnected (still valid after disconnect).
798
1403
  getVersion() {
799
1404
  return SDK_VERSION;
800
1405
  },
@@ -802,16 +1407,285 @@ function createOffice(options) {
802
1407
  };
803
1408
  }
804
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
+
805
1635
  // src/app.ts
806
1636
  var READY_PROBE_TIMEOUT_MS = 1e3;
807
- var READY_PROBE_INTERVAL_MS = 300;
1637
+ var READY_PROBE_INTERVAL_MS = 200;
808
1638
  var DEFAULT_READY_LIMIT_MS = 6e4;
809
- var registry = /* @__PURE__ */ new WeakMap();
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
+ }
810
1682
  function deriveFrameworkOrigin(iframeEl) {
811
- const src = iframeEl.getAttribute("src") ?? "";
1683
+ return originFromSrc(iframeEl.getAttribute("src") ?? "", "the iframe has no");
1684
+ }
1685
+ function originFromSrc(src, missing) {
812
1686
  if (!src || src === "about:blank") {
813
1687
  throw new SDKError(
814
- "[TFO-SDK] Cannot derive frameworkOrigin: the iframe has no 'src'. Pass options.frameworkOrigin explicitly.",
1688
+ `[TFO-SDK] Cannot derive frameworkOrigin: ${missing} 'src'. Pass options.frameworkOrigin explicitly.`,
815
1689
  SDK_ERROR_CODE.INVALID_ARGUMENT
816
1690
  );
817
1691
  }
@@ -826,37 +1700,72 @@ function deriveFrameworkOrigin(iframeEl) {
826
1700
  origin = new URL(src, window.location.href).origin;
827
1701
  } catch {
828
1702
  throw new SDKError(
829
- `[TFO-SDK] Cannot derive frameworkOrigin from iframe src: ${src}. Pass options.frameworkOrigin explicitly.`,
1703
+ `[TFO-SDK] Cannot derive frameworkOrigin from ${src}. Pass options.frameworkOrigin explicitly.`,
830
1704
  SDK_ERROR_CODE.INVALID_ARGUMENT
831
1705
  );
832
1706
  }
833
1707
  if (!origin || origin === "null") {
834
1708
  throw new SDKError(
835
- `[TFO-SDK] Iframe src has an opaque origin (${src}). Pass options.frameworkOrigin explicitly.`,
1709
+ `[TFO-SDK] The URL has an opaque origin (${src}). Pass options.frameworkOrigin explicitly.`,
836
1710
  SDK_ERROR_CODE.INVALID_ARGUMENT
837
1711
  );
838
1712
  }
839
1713
  return origin;
840
1714
  }
841
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();
842
1720
  const probe = createOffice({ ...options, timeoutMs: READY_PROBE_TIMEOUT_MS });
843
1721
  const startedAt = Date.now();
1722
+ let timer;
1723
+ let onAbort;
844
1724
  try {
845
- for (; ; ) {
846
- try {
847
- await probe.execute("SDK.ready", []);
848
- return;
849
- } catch {
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
+ }
850
1742
  if (Date.now() - startedAt >= limitMs) {
851
- throw new SDKError(
852
- `[TFO-SDK] waitForOfficeReady(): editor did not become ready within ${limitMs}ms.`,
853
- SDK_ERROR_CODE.TIMEOUT
1743
+ finish(
1744
+ new SDKError(
1745
+ `[TFO-SDK] waitForOfficeReady(): editor did not become ready within ${limitMs}ms.`,
1746
+ SDK_ERROR_CODE.TIMEOUT
1747
+ )
854
1748
  );
1749
+ return;
855
1750
  }
856
- await new Promise((resolve) => setTimeout(resolve, READY_PROBE_INTERVAL_MS));
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 });
857
1761
  }
858
- }
1762
+ send();
1763
+ });
859
1764
  } finally {
1765
+ clearTimeout(timer);
1766
+ if (onAbort) {
1767
+ signal?.removeEventListener("abort", onAbort);
1768
+ }
860
1769
  probe.disconnect();
861
1770
  }
862
1771
  }
@@ -890,10 +1799,28 @@ function getApp(module, iframeEl, options) {
890
1799
  return waitForOfficeReady({ module, frameworkOrigin, iframeEl }, limitMs);
891
1800
  },
892
1801
  disconnect() {
893
- registry.delete(iframeEl);
1802
+ if (registry.get(iframeEl)?.app === app) {
1803
+ registry.delete(iframeEl);
1804
+ }
894
1805
  office.disconnect();
895
- }
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)
896
1819
  };
1820
+ Object.defineProperty(app, "visible", {
1821
+ enumerable: true,
1822
+ get: () => !views.get(iframeEl)?.saved
1823
+ });
897
1824
  if (module === "cell") {
898
1825
  app.getWorkbook = office.getDocument;
899
1826
  }
@@ -901,6 +1828,145 @@ function getApp(module, iframeEl, options) {
901
1828
  registry.set(iframeEl, { module, app: typedApp });
902
1829
  return typedApp;
903
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
+ }
904
1970
  function word(iframeEl, options) {
905
1971
  return getApp("word", iframeEl, options);
906
1972
  }
@@ -911,438 +1977,481 @@ function show(iframeEl, options) {
911
1977
  return getApp("show", iframeEl, options);
912
1978
  }
913
1979
  var Office = {
914
- word,
915
- cell,
916
- show
1980
+ word: Object.assign(word, loaders("word")),
1981
+ cell: Object.assign(cell, loaders("cell")),
1982
+ show: Object.assign(show, loaders("show")),
1983
+ uiConfig
917
1984
  };
918
1985
 
919
1986
  // src/builtin/common-api.generated.ts
920
1987
  var LineDash = {
921
- /** 실선 */
1988
+ /** Solid. */
922
1989
  SOLID: "solid",
923
- /** 점선 */
1990
+ /** Dot. */
924
1991
  DOT: "dot",
925
- /** 파선 */
1992
+ /** Dash. */
926
1993
  DASH: "dash",
927
- /** 긴 파선 */
1994
+ /** Long Dash. */
928
1995
  LG_DASH: "lgDash",
929
- /** 파선-점선 */
1996
+ /** Dash Dot. */
930
1997
  DASH_DOT: "dashDot",
931
- /** 긴 파선-점선 */
1998
+ /** Long Dash Dot. */
932
1999
  LG_DASH_DOT: "lgDashDot",
933
- /** 긴 파선-점선-점선 */
2000
+ /** Long Dash Dot Dot. */
934
2001
  LG_DASH_DOT_DOT: "lgDashDotDot",
935
- /** 사각 점선 */
2002
+ /** Square Dot. */
936
2003
  SYS_DASH: "sysDash",
937
- /** 둥근 점선 */
2004
+ /** Round Dot. */
938
2005
  SYS_DOT: "sysDot",
939
- /** 사각 점선-점선 */
2006
+ /** System Dash Dot. */
940
2007
  SYS_DASH_DOT: "sysDashDot",
941
- /** 사각 점선-점선-점선 */
2008
+ /** System Dash Dot Dot. */
942
2009
  SYS_DASH_DOT_DOT: "sysDashDotDot"
943
2010
  };
944
2011
  var ShapePreset = {
945
- /** 직선 */
2012
+ /** Line. */
946
2013
  LINE: "line",
947
- /** 꺾인 연결선 */
2014
+ /** Elbow Connector. */
948
2015
  BENT_CONNECTOR: "bentConnector3",
949
- /** 곡선 연결선 */
2016
+ /** Curved Connector. */
950
2017
  CURVED_CONNECTOR: "curvedConnector3",
951
- /** 직사각형 */
2018
+ /** Rectangle. */
952
2019
  RECT: "rect",
953
- /** 둥근 모서리 직사각형 */
2020
+ /** Rounded Rectangle. */
954
2021
  ROUND_RECT: "roundRect",
955
- /** 한쪽 모서리가 잘린 직사각형 */
2022
+ /** Snip Single Corner Rectangle. */
956
2023
  SNIP_1_RECT: "snip1Rect",
957
- /** 양쪽 모서리가 잘린 직사각형 */
2024
+ /** Snip Same Side Corner Rectangle. */
958
2025
  SNIP_2_SAME_RECT: "snip2SameRect",
959
- /** 대각선 모서리가 잘린 직사각형 */
2026
+ /** Snip Diagonal Corner Rectangle. */
960
2027
  SNIP_2_DIAG_RECT: "snip2DiagRect",
961
- /** 한쪽 모서리는 잘리고 다른 쪽은 둥근 직사각형 */
2028
+ /** Snip and Round Single Corner Rectangle. */
962
2029
  SNIP_ROUND_RECT: "snipRoundRect",
963
- /** 한쪽 모서리가 둥근 직사각형 */
2030
+ /** Round Single Corner Rectangle. */
964
2031
  ROUND_1_RECT: "round1Rect",
965
- /** 양쪽 모서리가 둥근 직사각형 */
2032
+ /** Round Same Side Corner Rectangle. */
966
2033
  ROUND_2_SAME_RECT: "round2SameRect",
967
- /** 대각선 모서리가 둥근 직사각형 */
2034
+ /** Round Diagonal Corner Rectangle. */
968
2035
  ROUND_2_DIAG_RECT: "round2DiagRect",
969
- /** 타원 */
2036
+ /** Oval. */
970
2037
  ELLIPSE: "ellipse",
971
- /** 이등변 삼각형 */
2038
+ /** Isosceles Triangle. */
972
2039
  TRIANGLE: "triangle",
973
- /** 직각 삼각형 */
2040
+ /** Right Triangle. */
974
2041
  RT_TRIANGLE: "rtTriangle",
975
- /** 평행 사변형 */
2042
+ /** Parallelogram. */
976
2043
  PARALLELOGRAM: "parallelogram",
977
- /** 사다리꼴 */
2044
+ /** Trapezoid. */
978
2045
  TRAPEZOID: "trapezoid",
979
- /** 다이아몬드(마름모) */
2046
+ /** Diamond. */
980
2047
  DIAMOND: "diamond",
981
- /** 정오각형 */
2048
+ /** Regular Pentagon. */
982
2049
  PENTAGON: "pentagon",
983
- /** 육각형 */
2050
+ /** Hexagon. */
984
2051
  HEXAGON: "hexagon",
985
- /** 칠각형 */
2052
+ /** Heptagon. */
986
2053
  HEPTAGON: "heptagon",
987
- /** 팔각형 */
2054
+ /** Octagon. */
988
2055
  OCTAGON: "octagon",
989
- /** 십각형 */
2056
+ /** Decagon. */
990
2057
  DECAGON: "decagon",
991
- /** 십이각형 */
2058
+ /** Dodecagon. */
992
2059
  DODECAGON: "dodecagon",
993
- /** 1/4 원(파이 조각) */
2060
+ /** Pie Wedge. */
994
2061
  PIE_WEDGE: "pieWedge",
995
- /** 부분 원형 */
2062
+ /** Partial Circle. */
996
2063
  PIE: "pie",
997
- /** 현 */
2064
+ /** Chord. */
998
2065
  CHORD: "chord",
999
- /** 눈물 방울 */
2066
+ /** Teardrop. */
1000
2067
  TEARDROP: "teardrop",
1001
- /** 액자 */
2068
+ /** Frame. */
1002
2069
  FRAME: "frame",
1003
- /** 반액자 */
2070
+ /** Half Frame. */
1004
2071
  HALF_FRAME: "halfFrame",
1005
- /** 모서리 */
2072
+ /** L-Shape. */
1006
2073
  CORNER: "corner",
1007
- /** 대각선 줄무늬 */
2074
+ /** Diagonal Stripe. */
1008
2075
  DIAG_STRIPE: "diagStripe",
1009
- /** 십자형 */
2076
+ /** Cross. */
1010
2077
  PLUS: "plus",
1011
- /** 명판 */
2078
+ /** Plaque. */
1012
2079
  PLAQUE: "plaque",
1013
- /** 원통형 */
2080
+ /** Can. */
1014
2081
  CAN: "can",
1015
- /** 정육면체 */
2082
+ /** Cube. */
1016
2083
  CUBE: "cube",
1017
- /** 빗면 */
2084
+ /** Bevel. */
1018
2085
  BEVEL: "bevel",
1019
- /** 도넛 */
2086
+ /** Donut. */
1020
2087
  DONUT: "donut",
1021
- /** 금지 기호 */
2088
+ /** No Symbol. */
1022
2089
  NO_SMOKING: "noSmoking",
1023
- /** 아치형 */
2090
+ /** Block Arc. */
1024
2091
  BLOCK_ARC: "blockArc",
1025
- /** 접힌 모서리 */
2092
+ /** Folded Corner. */
1026
2093
  FOLDED_CORNER: "foldedCorner",
1027
- /** 웃는 얼굴 */
2094
+ /** Smiley Face. */
1028
2095
  SMILEY_FACE: "smileyFace",
1029
- /** 하트 */
2096
+ /** Heart. */
1030
2097
  HEART: "heart",
1031
- /** 깔때기 */
2098
+ /** Funnel. */
1032
2099
  FUNNEL: "funnel",
1033
- /** 톱니바퀴(6개) */
2100
+ /** Gear 6. */
1034
2101
  GEAR_6: "gear6",
1035
- /** 톱니바퀴(9개) */
2102
+ /** Gear 9. */
1036
2103
  GEAR_9: "gear9",
1037
- /** 번개 */
2104
+ /** Lightning Bolt. */
1038
2105
  LIGHTNING_BOLT: "lightningBolt",
1039
- /** 해 */
2106
+ /** Sun. */
1040
2107
  SUN: "sun",
1041
- /** 달 */
2108
+ /** Moon. */
1042
2109
  MOON: "moon",
1043
- /** 구름 */
2110
+ /** Cloud. */
1044
2111
  CLOUD: "cloud",
1045
- /** 호 */
2112
+ /** Arc. */
1046
2113
  ARC: "arc",
1047
- /** 대괄호 쌍 */
2114
+ /** Double Bracket. */
1048
2115
  BRACKET_PAIR: "bracketPair",
1049
- /** 중괄호 쌍 */
2116
+ /** Double Brace. */
1050
2117
  BRACE_PAIR: "bracePair",
1051
- /** 왼쪽 대괄호 */
2118
+ /** Left Bracket. */
1052
2119
  LEFT_BRACKET: "leftBracket",
1053
- /** 오른쪽 대괄호 */
2120
+ /** Right Bracket. */
1054
2121
  RIGHT_BRACKET: "rightBracket",
1055
- /** 왼쪽 중괄호 */
2122
+ /** Left Brace. */
1056
2123
  LEFT_BRACE: "leftBrace",
1057
- /** 오른쪽 중괄호 */
2124
+ /** Right Brace. */
1058
2125
  RIGHT_BRACE: "rightBrace",
1059
- /** 오른쪽 화살표 */
2126
+ /** Right Arrow. */
1060
2127
  RIGHT_ARROW: "rightArrow",
1061
- /** 왼쪽 화살표 */
2128
+ /** Left Arrow. */
1062
2129
  LEFT_ARROW: "leftArrow",
1063
- /** 위쪽 화살표 */
2130
+ /** Up Arrow. */
1064
2131
  UP_ARROW: "upArrow",
1065
- /** 아래쪽 화살표 */
2132
+ /** Down Arrow. */
1066
2133
  DOWN_ARROW: "downArrow",
1067
- /** 왼쪽/오른쪽 화살표 */
2134
+ /** Left-Right Arrow. */
1068
2135
  LEFT_RIGHT_ARROW: "leftRightArrow",
1069
- /** 위쪽/아래쪽 화살표 */
2136
+ /** Up-Down Arrow. */
1070
2137
  UP_DOWN_ARROW: "upDownArrow",
1071
- /** 십자형 화살표 */
2138
+ /** Quad Arrow. */
1072
2139
  QUAD_ARROW: "quadArrow",
1073
- /** 왼쪽/오른쪽/위쪽 화살표 */
2140
+ /** Left-Right-Up Arrow. */
1074
2141
  LEFT_RIGHT_UP_ARROW: "leftRightUpArrow",
1075
- /** 굽은 화살표 */
2142
+ /** Bent Arrow. */
1076
2143
  BENT_ARROW: "bentArrow",
1077
- /** U턴 화살표 */
2144
+ /** U-Turn Arrow. */
1078
2145
  UTURN_ARROW: "uturnArrow",
1079
- /** 왼쪽/위쪽 화살표 */
2146
+ /** Left-Up Arrow. */
1080
2147
  LEFT_UP_ARROW: "leftUpArrow",
1081
- /** 위로 굽은 화살표 */
2148
+ /** Bent-Up Arrow. */
1082
2149
  BENT_UP_ARROW: "bentUpArrow",
1083
- /** 오른쪽으로 구부러진 화살표 */
2150
+ /** Curved Right Arrow. */
1084
2151
  CURVED_RIGHT_ARROW: "curvedRightArrow",
1085
- /** 왼쪽으로 구부러진 화살표 */
2152
+ /** Curved Left Arrow. */
1086
2153
  CURVED_LEFT_ARROW: "curvedLeftArrow",
1087
- /** 위로 구부러진 화살표 */
2154
+ /** Curved Up Arrow. */
1088
2155
  CURVED_UP_ARROW: "curvedUpArrow",
1089
- /** 아래로 구부러진 화살표 */
2156
+ /** Curved Down Arrow. */
1090
2157
  CURVED_DOWN_ARROW: "curvedDownArrow",
1091
- /** 줄무늬 오른쪽 화살표 */
2158
+ /** Striped Right Arrow. */
1092
2159
  STRIPED_RIGHT_ARROW: "stripedRightArrow",
1093
- /** 톱니 모양 오른쪽 화살표 */
2160
+ /** Notched Right Arrow. */
1094
2161
  NOTCHED_RIGHT_ARROW: "notchedRightArrow",
1095
- /** 오각형(홈플레이트) */
2162
+ /** Pentagon (Home Plate). */
1096
2163
  HOME_PLATE: "homePlate",
1097
- /** 갈매기형 수장 */
2164
+ /** Chevron. */
1098
2165
  CHEVRON: "chevron",
1099
- /** 오른쪽 화살표 설명선 */
2166
+ /** Right Arrow Callout. */
1100
2167
  RIGHT_ARROW_CALLOUT: "rightArrowCallout",
1101
- /** 왼쪽 화살표 설명선 */
2168
+ /** Left Arrow Callout. */
1102
2169
  LEFT_ARROW_CALLOUT: "leftArrowCallout",
1103
- /** 위쪽 화살표 설명선 */
2170
+ /** Up Arrow Callout. */
1104
2171
  UP_ARROW_CALLOUT: "upArrowCallout",
1105
- /** 아래쪽 화살표 설명선 */
2172
+ /** Down Arrow Callout. */
1106
2173
  DOWN_ARROW_CALLOUT: "downArrowCallout",
1107
- /** 왼쪽/오른쪽 화살표 설명선 */
2174
+ /** Left-Right Arrow Callout. */
1108
2175
  LEFT_RIGHT_ARROW_CALLOUT: "leftRightArrowCallout",
1109
- /** 위쪽/아래쪽 화살표 설명선 */
2176
+ /** Up-Down Arrow Callout. */
1110
2177
  UP_DOWN_ARROW_CALLOUT: "upDownArrowCallout",
1111
- /** 십자형 화살표 설명선 */
2178
+ /** Quad Arrow Callout. */
1112
2179
  QUAD_ARROW_CALLOUT: "quadArrowCallout",
1113
- /** 원형 화살표 */
2180
+ /** Circular Arrow. */
1114
2181
  CIRCULAR_ARROW: "circularArrow",
1115
- /** 왼쪽 원형 화살표 */
2182
+ /** Left Circular Arrow. */
1116
2183
  LEFT_CIRCULAR_ARROW: "leftCircularArrow",
1117
- /** 곡선 화살표(스우시) */
2184
+ /** Swoosh Arrow. */
1118
2185
  SWOOSH_ARROW: "swooshArrow",
1119
- /** 왼쪽/오른쪽 리본 */
2186
+ /** Left-Right Ribbon. */
1120
2187
  LEFT_RIGHT_RIBBON: "leftRightRibbon",
1121
- /** 폭발: 8pt */
2188
+ /** Explosion 1. */
1122
2189
  IRREGULAR_SEAL_1: "irregularSeal1",
1123
- /** 폭발: 14pt */
2190
+ /** Explosion 2. */
1124
2191
  IRREGULAR_SEAL_2: "irregularSeal2",
1125
- /** 포인트가 4개인 별 */
2192
+ /** 4-Point Star. */
1126
2193
  STAR_4: "star4",
1127
- /** 포인트가 5개인 별 */
2194
+ /** 5-Point Star. */
1128
2195
  STAR_5: "star5",
1129
- /** 포인트가 6개인 별 */
2196
+ /** 6-Point Star. */
1130
2197
  STAR_6: "star6",
1131
- /** 포인트가 7개인 별 */
2198
+ /** 7-Point Star. */
1132
2199
  STAR_7: "star7",
1133
- /** 포인트가 8개인 별 */
2200
+ /** 8-Point Star. */
1134
2201
  STAR_8: "star8",
1135
- /** 포인트가 10개인 별 */
2202
+ /** 10-Point Star. */
1136
2203
  STAR_10: "star10",
1137
- /** 포인트가 12개인 별 */
2204
+ /** 12-Point Star. */
1138
2205
  STAR_12: "star12",
1139
- /** 포인트가 16개인 별 */
2206
+ /** 16-Point Star. */
1140
2207
  STAR_16: "star16",
1141
- /** 포인트가 24개인 별 */
2208
+ /** 24-Point Star. */
1142
2209
  STAR_24: "star24",
1143
- /** 포인트가 32개인 별 */
2210
+ /** 32-Point Star. */
1144
2211
  STAR_32: "star32",
1145
- /** 리본: 위로 기울어짐 */
2212
+ /** Up Ribbon. */
1146
2213
  RIBBON_2: "ribbon2",
1147
- /** 리본: 아래로 기울어짐 */
2214
+ /** Down Ribbon. */
1148
2215
  RIBBON: "ribbon",
1149
- /** 구부러진 리본: 위로 */
2216
+ /** Curved Up Ribbon. */
1150
2217
  ELLIPSE_RIBBON_2: "ellipseRibbon2",
1151
- /** 구부러진 리본: 아래로 */
2218
+ /** Curved Down Ribbon. */
1152
2219
  ELLIPSE_RIBBON: "ellipseRibbon",
1153
- /** 세로 두루마리 */
2220
+ /** Vertical Scroll. */
1154
2221
  VERTICAL_SCROLL: "verticalScroll",
1155
- /** 가로 두루마리 */
2222
+ /** Horizontal Scroll. */
1156
2223
  HORIZONTAL_SCROLL: "horizontalScroll",
1157
- /** 물결 */
2224
+ /** Wave. */
1158
2225
  WAVE: "wave",
1159
- /** 이중 물결 */
2226
+ /** Double Wave. */
1160
2227
  DOUBLE_WAVE: "doubleWave",
1161
- /** 사각형 설명선 */
2228
+ /** Rectangular Callout. */
1162
2229
  WEDGE_RECT_CALLOUT: "wedgeRectCallout",
1163
- /** 둥근 사각형 설명선 */
2230
+ /** Rounded Rectangular Callout. */
1164
2231
  WEDGE_ROUND_RECT_CALLOUT: "wedgeRoundRectCallout",
1165
- /** 타원형 설명선 */
2232
+ /** Oval Callout. */
1166
2233
  WEDGE_ELLIPSE_CALLOUT: "wedgeEllipseCallout",
1167
- /** 구름 설명선 */
2234
+ /** Cloud Callout. */
1168
2235
  CLOUD_CALLOUT: "cloudCallout",
1169
- /** 선 설명선 1 */
2236
+ /** Line Callout 1 (No Border). */
1170
2237
  CALLOUT_1: "callout1",
1171
- /** 선 설명선 2 */
2238
+ /** Line Callout 2 (No Border). */
1172
2239
  CALLOUT_2: "callout2",
1173
- /** 선 설명선 3 */
2240
+ /** Line Callout 3 (No Border). */
1174
2241
  CALLOUT_3: "callout3",
1175
- /** 선 설명선 1 (강조선) */
2242
+ /** Line Callout 1 (Accent Bar). */
1176
2243
  ACCENT_CALLOUT_1: "accentCallout1",
1177
- /** 선 설명선 2 (강조선) */
2244
+ /** Line Callout 2 (Accent Bar). */
1178
2245
  ACCENT_CALLOUT_2: "accentCallout2",
1179
- /** 선 설명선 3 (강조선) */
2246
+ /** Line Callout 3 (Accent Bar). */
1180
2247
  ACCENT_CALLOUT_3: "accentCallout3",
1181
- /** 선 설명선 1 (테두리) */
2248
+ /** Line Callout 1. */
1182
2249
  BORDER_CALLOUT_1: "borderCallout1",
1183
- /** 선 설명선 2 (테두리) */
2250
+ /** Line Callout 2. */
1184
2251
  BORDER_CALLOUT_2: "borderCallout2",
1185
- /** 선 설명선 3 (테두리) */
2252
+ /** Line Callout 3. */
1186
2253
  BORDER_CALLOUT_3: "borderCallout3",
1187
- /** 선 설명선 1 (강조선+테두리) */
2254
+ /** Line Callout 1 (Border and Accent Bar). */
1188
2255
  ACCENT_BORDER_CALLOUT_1: "accentBorderCallout1",
1189
- /** 선 설명선 2 (강조선+테두리) */
2256
+ /** Line Callout 2 (Border and Accent Bar). */
1190
2257
  ACCENT_BORDER_CALLOUT_2: "accentBorderCallout2",
1191
- /** 선 설명선 3 (강조선+테두리) */
2258
+ /** Line Callout 3 (Border and Accent Bar). */
1192
2259
  ACCENT_BORDER_CALLOUT_3: "accentBorderCallout3",
1193
- /** 순서도: 처리 */
2260
+ /** Flowchart: Process. */
1194
2261
  FLOW_CHART_PROCESS: "flowChartProcess",
1195
- /** 순서도: 대체 처리 */
2262
+ /** Flowchart: Alternate Process. */
1196
2263
  FLOW_CHART_ALTERNATE_PROCESS: "flowChartAlternateProcess",
1197
- /** 순서도: 판단 */
2264
+ /** Flowchart: Decision. */
1198
2265
  FLOW_CHART_DECISION: "flowChartDecision",
1199
- /** 순서도: 데이터 */
2266
+ /** Flowchart: Data. */
1200
2267
  FLOW_CHART_INPUT_OUTPUT: "flowChartInputOutput",
1201
- /** 순서도: 미리 정의된 처리 */
2268
+ /** Flowchart: Predefined Process. */
1202
2269
  FLOW_CHART_PREDEFINED_PROCESS: "flowChartPredefinedProcess",
1203
- /** 순서도: 내부 저장소 */
2270
+ /** Flowchart: Internal Storage. */
1204
2271
  FLOW_CHART_INTERNAL_STORAGE: "flowChartInternalStorage",
1205
- /** 순서도: 문서 */
2272
+ /** Flowchart: Document. */
1206
2273
  FLOW_CHART_DOCUMENT: "flowChartDocument",
1207
- /** 순서도: 다중 문서 */
2274
+ /** Flowchart: Multidocument. */
1208
2275
  FLOW_CHART_MULTIDOCUMENT: "flowChartMultidocument",
1209
- /** 순서도: 종결 */
2276
+ /** Flowchart: Terminator. */
1210
2277
  FLOW_CHART_TERMINATOR: "flowChartTerminator",
1211
- /** 순서도: 준비 */
2278
+ /** Flowchart: Preparation. */
1212
2279
  FLOW_CHART_PREPARATION: "flowChartPreparation",
1213
- /** 순서도: 수동 입력 */
2280
+ /** Flowchart: Manual Input. */
1214
2281
  FLOW_CHART_MANUAL_INPUT: "flowChartManualInput",
1215
- /** 순서도: 수동 연산 */
2282
+ /** Flowchart: Manual Operation. */
1216
2283
  FLOW_CHART_MANUAL_OPERATION: "flowChartManualOperation",
1217
- /** 순서도: 연결자 */
2284
+ /** Flowchart: Connector. */
1218
2285
  FLOW_CHART_CONNECTOR: "flowChartConnector",
1219
- /** 순서도: 페이지 연결자 */
2286
+ /** Flowchart: Off-page Connector. */
1220
2287
  FLOW_CHART_OFFPAGE_CONNECTOR: "flowChartOffpageConnector",
1221
- /** 순서도: 카드 */
2288
+ /** Flowchart: Card. */
1222
2289
  FLOW_CHART_PUNCHED_CARD: "flowChartPunchedCard",
1223
- /** 순서도: 천공 테이프 */
2290
+ /** Flowchart: Punched Tape. */
1224
2291
  FLOW_CHART_PUNCHED_TAPE: "flowChartPunchedTape",
1225
- /** 순서도: 합 접합 */
2292
+ /** Flowchart: Summing Junction. */
1226
2293
  FLOW_CHART_SUMMING_JUNCTION: "flowChartSummingJunction",
1227
- /** 순서도: 논리합 */
2294
+ /** Flowchart: Or. */
1228
2295
  FLOW_CHART_OR: "flowChartOr",
1229
- /** 순서도: 대조 */
2296
+ /** Flowchart: Collate. */
1230
2297
  FLOW_CHART_COLLATE: "flowChartCollate",
1231
- /** 순서도: 정렬 */
2298
+ /** Flowchart: Sort. */
1232
2299
  FLOW_CHART_SORT: "flowChartSort",
1233
- /** 순서도: 추출 */
2300
+ /** Flowchart: Extract. */
1234
2301
  FLOW_CHART_EXTRACT: "flowChartExtract",
1235
- /** 순서도: 병합 */
2302
+ /** Flowchart: Merge. */
1236
2303
  FLOW_CHART_MERGE: "flowChartMerge",
1237
- /** 순서도: 저장 데이터 */
2304
+ /** Flowchart: Stored Data. */
1238
2305
  FLOW_CHART_ONLINE_STORAGE: "flowChartOnlineStorage",
1239
- /** 순서도: 지연 */
2306
+ /** Flowchart: Delay. */
1240
2307
  FLOW_CHART_DELAY: "flowChartDelay",
1241
- /** 순서도: 순차 액세스 저장소 */
2308
+ /** Flowchart: Sequential Access Storage. */
1242
2309
  FLOW_CHART_MAGNETIC_TAPE: "flowChartMagneticTape",
1243
- /** 순서도: 자기 디스크 */
2310
+ /** Flowchart: Magnetic Disk. */
1244
2311
  FLOW_CHART_MAGNETIC_DISK: "flowChartMagneticDisk",
1245
- /** 순서도: 직접 액세스 저장소 */
2312
+ /** Flowchart: Direct Access Storage. */
1246
2313
  FLOW_CHART_MAGNETIC_DRUM: "flowChartMagneticDrum",
1247
- /** 순서도: 화면 표시 */
2314
+ /** Flowchart: Display. */
1248
2315
  FLOW_CHART_DISPLAY: "flowChartDisplay",
1249
- /** 실행 단추: 뒤로 또는 이전 */
2316
+ /** Action Button: Back or Previous. */
1250
2317
  ACTION_BUTTON_BACK_PREVIOUS: "actionButtonBackPrevious",
1251
- /** 실행 단추: 앞으로 또는 다음 */
2318
+ /** Action Button: Forward or Next. */
1252
2319
  ACTION_BUTTON_FORWARD_NEXT: "actionButtonForwardNext",
1253
- /** 실행 단추: 처음으로 이동 */
2320
+ /** Action Button: Beginning. */
1254
2321
  ACTION_BUTTON_BEGINNING: "actionButtonBeginning",
1255
- /** 실행 단추: 끝으로 이동 */
2322
+ /** Action Button: End. */
1256
2323
  ACTION_BUTTON_END: "actionButtonEnd",
1257
- /** 실행 단추: 홈으로 이동 */
2324
+ /** Action Button: Home. */
1258
2325
  ACTION_BUTTON_HOME: "actionButtonHome",
1259
- /** 실행 단추: 정보 */
2326
+ /** Action Button: Information. */
1260
2327
  ACTION_BUTTON_INFORMATION: "actionButtonInformation",
1261
- /** 실행 단추: 돌아가기 */
2328
+ /** Action Button: Return. */
1262
2329
  ACTION_BUTTON_RETURN: "actionButtonReturn",
1263
- /** 실행 단추: 비디오 */
2330
+ /** Action Button: Movie. */
1264
2331
  ACTION_BUTTON_MOVIE: "actionButtonMovie",
1265
- /** 실행 단추: 문서 */
2332
+ /** Action Button: Document. */
1266
2333
  ACTION_BUTTON_DOCUMENT: "actionButtonDocument",
1267
- /** 실행 단추: 소리 */
2334
+ /** Action Button: Sound. */
1268
2335
  ACTION_BUTTON_SOUND: "actionButtonSound",
1269
- /** 실행 단추: 도움말 */
2336
+ /** Action Button: Help. */
1270
2337
  ACTION_BUTTON_HELP: "actionButtonHelp",
1271
- /** 실행 단추: 빈 단추(사용자 지정) */
2338
+ /** Action Button: Custom. */
1272
2339
  ACTION_BUTTON_BLANK: "actionButtonBlank",
1273
- /** 더하기 기호 */
2340
+ /** Plus. */
1274
2341
  MATH_PLUS: "mathPlus",
1275
- /** 빼기 기호 */
2342
+ /** Minus. */
1276
2343
  MATH_MINUS: "mathMinus",
1277
- /** 곱하기 기호 */
2344
+ /** Multiply. */
1278
2345
  MATH_MULTIPLY: "mathMultiply",
1279
- /** 나누기 기호 */
2346
+ /** Division. */
1280
2347
  MATH_DIVIDE: "mathDivide",
1281
- /** 등호 */
2348
+ /** Equal. */
1282
2349
  MATH_EQUAL: "mathEqual",
1283
- /** 부등호 */
2350
+ /** Not Equal. */
1284
2351
  MATH_NOT_EQUAL: "mathNotEqual"
1285
2352
  };
1286
2353
  var ShapeZOrder = {
1287
- /** 맨 앞으로 */
2354
+ /** Bring to Front. */
1288
2355
  FRONT: "front",
1289
- /** 맨 뒤로 */
2356
+ /** Send to Back. */
1290
2357
  BACK: "back",
1291
- /** 앞으로 (한 단계) */
2358
+ /** Bring Forward (one level). */
1292
2359
  FORWARD: "forward",
1293
- /** 뒤로 (한 단계) */
2360
+ /** Send Backward (one level). */
1294
2361
  BACKWARD: "backward"
1295
2362
  };
1296
2363
  var ChartType = {
2364
+ /** Clustered Column. */
1297
2365
  clusteredColumn: "clustered_column",
2366
+ /** Stacked Column. */
1298
2367
  stackedColumn: "stacked_column",
2368
+ /** 3-D Clustered Column. */
1299
2369
  _3dClusteredColumn: "3d_clustered_column",
2370
+ /** 3-D Stacked Column. */
1300
2371
  _3dStackedColumn: "3d_stacked_column",
2372
+ /** Clustered Bar. */
1301
2373
  clusteredBar: "clustered_bar",
2374
+ /** Stacked Bar. */
1302
2375
  stackedBar: "stacked_bar",
2376
+ /** 3-D Clustered Bar. */
1303
2377
  _3dClusteredBar: "3d_clustered_bar",
2378
+ /** 3-D Stacked Bar. */
1304
2379
  _3dStackedBar: "3d_stacked_bar",
2380
+ /** Line. */
1305
2381
  line: "line",
2382
+ /** Pie. */
1306
2383
  pie: "pie",
2384
+ /** 3-D Pie. */
1307
2385
  _3dPie: "3d_pie",
2386
+ /** Exploded Pie. */
1308
2387
  explodedPie: "exploded_pie",
2388
+ /** 3-D Exploded Pie. */
1309
2389
  _3dExplodedPie: "3d_exploded_pie",
2390
+ /** Scatter. */
1310
2391
  scatter: "scatter",
2392
+ /** Area. */
1311
2393
  area: "area",
2394
+ /** Stacked Area. */
1312
2395
  stackedArea: "stacked_area",
2396
+ /** 3-D Area. */
1313
2397
  _3dArea: "3d_area",
2398
+ /** 3-D Stacked Area. */
1314
2399
  _3dStackedArea: "3d_stacked_area",
2400
+ /** Doughnut. */
1315
2401
  doughnut: "doughnut",
2402
+ /** Radar. */
1316
2403
  radar: "radar"
1317
2404
  };
1318
2405
  var ChartGridLineType = {
2406
+ /** Hides the gridlines of that axis. */
1319
2407
  none: "none",
2408
+ /** Shows major gridlines only. */
1320
2409
  major: "major",
2410
+ /** Shows minor gridlines only. */
1321
2411
  minor: "minor",
2412
+ /** Shows both major and minor gridlines. */
1322
2413
  majorMinor: "major_minor"
1323
2414
  };
1324
2415
  var ChartAxis = {
2416
+ /** Horizontal axis. */
1325
2417
  horizontal: "horizontal",
2418
+ /** Vertical axis. */
1326
2419
  vertical: "vertical"
1327
2420
  };
1328
2421
  var ChartLegendPosition = {
2422
+ /** Hides the legend. */
1329
2423
  none: "none",
2424
+ /** Bottom of the chart. */
1330
2425
  bottom: "bottom",
2426
+ /** Top-right corner of the chart. */
1331
2427
  topRight: "top_right",
2428
+ /** Top of the chart. */
1332
2429
  top: "top",
2430
+ /** Right side of the chart. */
1333
2431
  right: "right",
2432
+ /** Left side of the chart. */
1334
2433
  left: "left"
1335
2434
  };
1336
2435
  var ChartDataLabelPosition = {
2436
+ /** No data labels. When set, removes the data labels, and when returned, means that no data labels are set. */
1337
2437
  none: "none",
2438
+ /** Center of the data point. Available for pie, column, bar, line, and scatter charts. */
1338
2439
  center: "center",
2440
+ /** Inside end of the data point. Available for pie, column, and bar charts. */
1339
2441
  insideEnd: "inside_end",
2442
+ /** Inside the data point, at the end nearest the axis. Available for column and bar charts. */
1340
2443
  insideBase: "inside_base",
2444
+ /** Outside end of the data point. Available for pie, clustered column, and clustered bar charts. */
1341
2445
  outsideEnd: "outside_end",
2446
+ /** Position chosen by the chart. Available for pie, doughnut, area, and radar charts. */
1342
2447
  bestFit: "best_fit",
2448
+ /** Left of the data point. Available for line and scatter charts. */
1343
2449
  left: "left",
2450
+ /** Right of the data point. Available for line and scatter charts. */
1344
2451
  right: "right",
2452
+ /** Above the data point. Available for line and scatter charts. */
1345
2453
  top: "top",
2454
+ /** Below the data point. Available for line and scatter charts. */
1346
2455
  bottom: "bottom"
1347
2456
  };
1348
2457
 
@@ -1350,431 +2459,485 @@ var ChartDataLabelPosition = {
1350
2459
  var Word;
1351
2460
  ((Word2) => {
1352
2461
  Word2.InsertAt = {
1353
- /** 기준 요소 앞(형제) */
2462
+ /** Before the receiver (sibling). */
1354
2463
  BEFORE: "before",
1355
- /** 기준 요소 뒤(형제) */
2464
+ /** After the receiver (sibling). */
1356
2465
  AFTER: "after",
1357
- /** 기준 요소 콘텐츠 맨 앞 */
2466
+ /** At the beginning of the receiver's content. */
1358
2467
  START: "start",
1359
- /** 기준 요소 콘텐츠 맨 끝 */
2468
+ /** At the end of the receiver's content. */
1360
2469
  END: "end"
1361
2470
  };
1362
2471
  Word2.RangePosition = {
1363
- /** 전체(단락 기호 포함) */
2472
+ /** The whole range, including the paragraph mark. */
1364
2473
  WHOLE: "whole",
1365
- /** 시작 지점(collapsed) */
2474
+ /** The start point (collapsed). */
1366
2475
  START: "start",
1367
- /** 끝 지점(단락 기호 앞, collapsed) */
2476
+ /** The end point, before the paragraph mark (collapsed). */
1368
2477
  END: "end",
1369
- /** 단락 기호 다음 지점(collapsed) */
2478
+ /** The point after the paragraph mark (collapsed). */
1370
2479
  AFTER: "after",
1371
- /** 단락 기호 제외한 내용 범위 */
2480
+ /** The content range, excluding the paragraph mark. */
1372
2481
  CONTENT: "content",
1373
- /** 시작 앞 지점(collapsed) */
2482
+ /** The point before the start (collapsed). */
1374
2483
  BEFORE: "before"
1375
2484
  };
1376
2485
  Word2.SelectionMode = {
1377
- /** 현재 선택 영역 전체 */
2486
+ /** The whole current selection. */
1378
2487
  SELECT: "select",
1379
- /** 선택/커서 시작 지점(collapsed) */
2488
+ /** The start point of the selection or cursor (collapsed). */
1380
2489
  START: "start",
1381
- /** 선택/커서 끝 지점(collapsed) */
2490
+ /** The end point of the selection or cursor (collapsed). */
1382
2491
  END: "end"
1383
2492
  };
1384
- Word2.ViewContextType = {
1385
- /** 현재 커서 (selection.getModelRange(false)) */
1386
- CURSOR: "cursor",
1387
- /** 현재 선택 영역 (selection.getModelRange(true)) */
1388
- SELECTION: "selection"
1389
- };
1390
2493
  Word2.StructureFilter = {
1391
- /** 표 */
2494
+ /** Table. */
1392
2495
  TABLE: "table",
1393
- /** 목록 단락 */
2496
+ /** List paragraph. */
1394
2497
  LIST: "list"
1395
2498
  };
1396
- Word2.RangeKind = {
1397
- /** 단락 ID + 글자 위치를 직접 지정(좌표를 들고 있음 — 이후 편집으로 어긋날 수 있다) */
1398
- OFFSET: "offset",
1399
- /** 영역의 어느 부분인지로 지정(맨앞/맨끝/전체 등 — RangePosition) */
1400
- RANGE_POSITION: "rangePosition",
1401
- /** 화면의 선택 영역/커서(쓸 때마다 현재 선택을 다시 읽는다) */
1402
- VIEW: "view",
1403
- /** 그 댓글이 달린 본문 구간 */
1404
- COMMENT: "comment",
1405
- /** 각주/미주 표시가 놓인 자리 */
1406
- NOTE: "note",
1407
- /** 책갈피 표시가 놓인 자리(글자 한 칸) */
1408
- BOOKMARK: "bookmark",
1409
- /** 도형·이미지가 놓인 자리(글자 한 칸 — floating 이면 앵커 자리) */
1410
- SHAPE: "shape",
1411
- /** 하이퍼링크의 표시 텍스트 구간(앞뒤 마커는 제외 — 링크를 유지한 채 글자만 다룬다) */
1412
- HYPERLINK: "hyperlink",
1413
- /** 변경 추적 항목이 차지하는 구간 */
1414
- CHANGE_TRACKING: "changeTracking"
1415
- };
1416
2499
  Word2.SpecialCharacter = {
1417
- /** 페이지 나누기 */
2500
+ /** Page break. */
1418
2501
  PAGE_BREAK: "pageBreak",
1419
- /** 단 나누기 */
2502
+ /** Column break. */
1420
2503
  COLUMN_BREAK: "columnBreak",
1421
- /** 줄바꿈(Shift+Enter) */
2504
+ /** Line break (Shift+Enter). */
1422
2505
  SOFT_BREAK: "softBreak",
1423
- /** 탭 */
2506
+ /** Tab. */
1424
2507
  TAB: "tab",
1425
- /** 기호 */
2508
+ /** Symbol. */
1426
2509
  SYMBOL: "symbol"
1427
2510
  };
1428
2511
  Word2.ZoomMode = {
1429
- /** 50% */
2512
+ /** 50%. */
1430
2513
  SCALE_50: "50",
1431
- /** 66% */
2514
+ /** 66%. */
1432
2515
  SCALE_66: "66",
1433
- /** 75% */
2516
+ /** 75%. */
1434
2517
  SCALE_75: "75",
1435
- /** 100% (원래 배율) */
2518
+ /** 100% (actual size). */
1436
2519
  SCALE_100: "100",
1437
- /** 125% */
2520
+ /** 125%. */
1438
2521
  SCALE_125: "125",
1439
- /** 150% */
2522
+ /** 150%. */
1440
2523
  SCALE_150: "150",
1441
- /** 200% */
2524
+ /** 200%. */
1442
2525
  SCALE_200: "200",
1443
- /** 폭 맞춤 */
2526
+ /** Fit to width. */
1444
2527
  FIT_WIDTH: "fitWidth",
1445
- /** 쪽 맞춤 */
2528
+ /** Fit to page. */
1446
2529
  FIT_WINDOW: "fitInWindow",
1447
- /** 한 단계 확대 */
2530
+ /** Zoom in one step. */
1448
2531
  ZOOM_IN: "zoomIn",
1449
- /** 한 단계 축소 */
2532
+ /** Zoom out one step. */
1450
2533
  ZOOM_OUT: "zoomOut"
1451
2534
  };
1452
2535
  Word2.HeaderFooterType = {
1453
- /** 기본 머리글/바닥글 (OOXML default) */
2536
+ /** Primary header/footer (OOXML default). */
1454
2537
  PRIMARY: "primary",
1455
- /** 첫 페이지 (OOXML first) */
2538
+ /** First page (OOXML first). */
1456
2539
  FIRST_PAGE: "firstPage",
1457
- /** 짝수 페이지 (OOXML even) */
2540
+ /** Even pages (OOXML even). */
1458
2541
  EVEN_PAGES: "evenPages"
1459
2542
  };
1460
2543
  Word2.HeaderFooterVariant = {
1461
- /** 기본(= HeaderFooterType.PRIMARY) */
2544
+ /** Default (= HeaderFooterType.PRIMARY). */
1462
2545
  DEFAULT: "default",
1463
- /** 첫 페이지(= HeaderFooterType.FIRST_PAGE) */
2546
+ /** First page (= HeaderFooterType.FIRST_PAGE). */
1464
2547
  FIRST: "first",
1465
- /** 짝수 페이지(= HeaderFooterType.EVEN_PAGES) */
2548
+ /** Even pages (= HeaderFooterType.EVEN_PAGES). */
1466
2549
  EVEN: "even"
1467
2550
  };
1468
2551
  Word2.SectionBreakType = {
1469
- /** 이어서 (이어나누기) */
2552
+ /** Continuous. */
1470
2553
  CONTINUOUS: "continuous",
1471
- /** 다음 페이지부터 */
2554
+ /** Next page. */
1472
2555
  NEXT_PAGE: "nextPage",
1473
- /** 짝수 페이지부터 */
2556
+ /** Even page. */
1474
2557
  EVEN_PAGE: "evenPage",
1475
- /** 홀수 페이지부터 */
2558
+ /** Odd page. */
1476
2559
  ODD_PAGE: "oddPage"
1477
2560
  };
1478
2561
  Word2.NoteType = {
1479
- /** 각주 (페이지 하단) */
2562
+ /** Footnote (bottom of the page). */
1480
2563
  FOOTNOTE: "footnote",
1481
- /** 미주 (문서 끝) */
2564
+ /** Endnote (end of the document). */
1482
2565
  ENDNOTE: "endnote"
1483
2566
  };
1484
2567
  Word2.HyperlinkType = {
1485
- /** 웹 주소 (http/https) */
2568
+ /** Web address (http/https). */
1486
2569
  LINK: "link",
1487
- /** 이메일 */
2570
+ /** Email. */
1488
2571
  MAILTO: "mailto",
1489
- /** 문서 내부 북마크 */
2572
+ /** Bookmark in the document. */
1490
2573
  BOOKMARK: "bookmark"
1491
2574
  };
1492
2575
  Word2.ChangeTrackingType = {
1493
- /** 삽입 (코어 ins) */
2576
+ /** Insertion. */
1494
2577
  ADDED: "added",
1495
- /** 삭제 (코어 del) */
2578
+ /** Deletion. */
1496
2579
  DELETED: "deleted",
1497
- /** 서식 변경 (코어 change) */
2580
+ /** Formatting change. */
1498
2581
  FORMATTED: "formatted"
1499
2582
  };
1500
2583
  Word2.ShapeWrap = {
1501
- /** 텍스트 흐름 안에 글자처럼 박힘 (paragraphId + offset 으로 위치) */
2584
+ /** In line with text, like a character (positioned by paragraphId + offset). */
1502
2585
  INLINE: "inline",
1503
- /** 텍스트 위에 떠있음 */
2586
+ /** In front of text. */
1504
2587
  INFRONT: "infront",
1505
- /** 텍스트 뒤에 깔림 */
2588
+ /** Behind text. */
1506
2589
  BEHIND: "behind"
1507
2590
  };
1508
2591
  Word2.PositionRelativeFromH = {
2592
+ /** Page. */
1509
2593
  PAGE: "page",
2594
+ /** Margin. */
1510
2595
  MARGIN: "margin",
2596
+ /** Column. */
1511
2597
  COLUMN: "column"
1512
2598
  };
1513
2599
  Word2.PositionRelativeFromV = {
2600
+ /** Page. */
1514
2601
  PAGE: "page",
2602
+ /** Margin. */
1515
2603
  MARGIN: "margin",
2604
+ /** Paragraph. */
1516
2605
  PARAGRAPH: "paragraph"
1517
2606
  };
1518
2607
  Word2.ShapeType = {
1519
- /** preset geometry 도형 */
2608
+ /** Preset geometry shape. */
1520
2609
  SHAPE: "sp",
1521
- /** 이미지 */
2610
+ /** Image. */
1522
2611
  PICTURE: "pic"
1523
2612
  };
1524
2613
  Word2.FillType = {
2614
+ /** No fill. */
1525
2615
  NONE: "noFill",
2616
+ /** Solid fill. */
1526
2617
  SOLID: "solidFill",
2618
+ /** Gradient fill. */
1527
2619
  GRADIENT: "gradFill",
2620
+ /** Image fill. */
1528
2621
  IMAGE: "blipFill"
1529
2622
  };
1530
2623
  Word2.TextVerticalAlign = {
2624
+ /** Top. */
1531
2625
  TOP: "top",
2626
+ /** Middle. */
1532
2627
  MIDDLE: "middle",
2628
+ /** Bottom. */
1533
2629
  BOTTOM: "bottom"
1534
2630
  };
1535
2631
  Word2.LineCompound = {
2632
+ /** Single line. */
1536
2633
  SINGLE: "sng",
2634
+ /** Double line. */
1537
2635
  DOUBLE: "dbl",
2636
+ /** Thick-thin double line. */
1538
2637
  THICK_THIN: "thickThin",
2638
+ /** Thin-thick double line. */
1539
2639
  THIN_THICK: "thinThick",
2640
+ /** Triple line. */
1540
2641
  TRIPLE: "tri"
1541
2642
  };
1542
2643
  Word2.TextAlign = {
2644
+ /** Left. */
1543
2645
  LEFT: "left",
2646
+ /** Center. */
1544
2647
  CENTER: "center",
2648
+ /** Right. */
1545
2649
  RIGHT: "right",
2650
+ /** Justified. */
1546
2651
  JUSTIFY: "justify"
1547
2652
  };
1548
2653
  Word2.TableAlign = {
2654
+ /** Left. */
1549
2655
  LEFT: "left",
2656
+ /** Center. */
1550
2657
  CENTER: "center",
2658
+ /** Right. */
1551
2659
  RIGHT: "right"
1552
2660
  };
1553
2661
  Word2.CellVerticalAlign = {
2662
+ /** Top. */
1554
2663
  TOP: "top",
2664
+ /** Center. */
1555
2665
  CENTER: "center",
2666
+ /** Bottom. */
1556
2667
  BOTTOM: "bottom"
1557
2668
  };
1558
2669
  Word2.OutlineLevel = {
2670
+ /** Level 1. */
1559
2671
  LEVEL_1: "level1",
2672
+ /** Level 2. */
1560
2673
  LEVEL_2: "level2",
2674
+ /** Level 3. */
1561
2675
  LEVEL_3: "level3",
2676
+ /** Level 4. */
1562
2677
  LEVEL_4: "level4",
2678
+ /** Level 5. */
1563
2679
  LEVEL_5: "level5",
2680
+ /** Level 6. */
1564
2681
  LEVEL_6: "level6",
2682
+ /** Level 7. */
1565
2683
  LEVEL_7: "level7",
2684
+ /** Level 8. */
1566
2685
  LEVEL_8: "level8",
2686
+ /** Level 9. */
1567
2687
  LEVEL_9: "level9",
2688
+ /** Body text (no outline level). */
1568
2689
  BODY: "body"
1569
2690
  };
1570
2691
  Word2.Style = {
1571
- /** 본문(기본 단락 스타일) */
2692
+ /** Normal (default paragraph style). */
1572
2693
  NORMAL: "normal",
2694
+ /** Title. */
1573
2695
  TITLE: "title",
2696
+ /** Subtitle. */
1574
2697
  SUBTITLE: "subtitle",
2698
+ /** Heading 1. */
1575
2699
  HEADING_1: "heading_1",
2700
+ /** Heading 2. */
1576
2701
  HEADING_2: "heading_2",
2702
+ /** Heading 3. */
1577
2703
  HEADING_3: "heading_3",
2704
+ /** Quote. */
1578
2705
  QUOTE: "quote",
1579
- /** ↓ 글자 스타일 */
2706
+ /** Strong (character style). */
1580
2707
  STRONG: "strong",
2708
+ /** Emphasis (character style). */
1581
2709
  EMPHASIS: "emphasis",
2710
+ /** Subtle emphasis (character style). */
1582
2711
  SUBTLE_EMPHASIS: "subtle_emphasis",
2712
+ /** Intense emphasis (character style). */
1583
2713
  INTENSE_EMPHASIS: "intense_emphasis"
1584
2714
  };
1585
2715
  Word2.IndentType = {
2716
+ /** Increase indent. */
1586
2717
  INDENT: "indent",
2718
+ /** Decrease indent. */
1587
2719
  OUTDENT: "outdent"
1588
2720
  };
1589
2721
  Word2.ListType = {
1590
- /** ● */
2722
+ /** Bullet ●. */
1591
2723
  BULLET_CIRCLE: "bulletCircle",
1592
- /** ■ */
2724
+ /** Bullet ■. */
1593
2725
  BULLET_SQUARE: "bulletSquare",
1594
- /** ◆ */
2726
+ /** Bullet ◆. */
1595
2727
  BULLET_DIAMOND: "bulletDiamond",
1596
- /** ✓ */
2728
+ /** Bullet ✓. */
1597
2729
  BULLET_CHECK: "bulletCheck",
1598
- /** ➢ */
2730
+ /** Bullet ➢. */
1599
2731
  BULLET_ARROW: "bulletArrow",
1600
- /** ✧ */
2732
+ /** Bullet ✧. */
1601
2733
  BULLET_STAR: "bulletStar",
1602
- /** 1. */
2734
+ /** Numbering 1. */
1603
2735
  NUMBER_DECIMAL: "numberDecimal",
1604
- /** A. */
2736
+ /** Numbering A. */
1605
2737
  NUMBER_UPPER_LETTER: "numberUpperLetter",
1606
- /** I. */
2738
+ /** Numbering I. */
1607
2739
  NUMBER_UPPER_ROMAN: "numberUpperRoman",
1608
- /** ① */
2740
+ /** Numbering ①. */
1609
2741
  NUMBER_CIRCLED: "numberCircled",
1610
- /** a. */
2742
+ /** Numbering a. */
1611
2743
  NUMBER_LOWER_LETTER: "numberLowerLetter",
1612
- /** i. */
2744
+ /** Numbering i. */
1613
2745
  NUMBER_LOWER_ROMAN: "numberLowerRoman",
1614
- /** 1. / A. / i. */
2746
+ /** Multilevel 1. / A. / i. */
1615
2747
  MULTILEVEL_NUMBER_LETTER_ROMAN: "multilevelNumberLetterRoman",
1616
- /** 1. / A. / a. */
2748
+ /** Multilevel 1. / A. / a. */
1617
2749
  MULTILEVEL_NUMBER_LETTER_LETTER: "multilevelNumberLetterLetter",
1618
- /** I. / A. / i. */
2750
+ /** Multilevel I. / A. / i. */
1619
2751
  MULTILEVEL_ROMAN_LETTER_ROMAN: "multilevelRomanLetterRoman",
1620
- /** 1 / 1.1 / 1.1.1 */
2752
+ /** Multilevel 1 / 1.1 / 1.1.1. */
1621
2753
  MULTILEVEL_NESTED_NUMBER: "multilevelNestedNumber",
1622
- /** 1. / 1.1. / 1.1.1. */
2754
+ /** Multilevel 1. / 1.1. / 1.1.1. */
1623
2755
  MULTILEVEL_NESTED_NUMBER_DOT: "multilevelNestedNumberDot",
1624
- /** 1 / 1-1 / 1-1-1 */
2756
+ /** Multilevel 1 / 1-1 / 1-1-1 (full-width). */
1625
2757
  MULTILEVEL_NESTED_FULL_WIDTH: "multilevelNestedFullWidth"
1626
2758
  };
1627
2759
  Word2.PageNumberArea = {
1628
- /** 머리글 */
2760
+ /** Header. */
1629
2761
  HEADER: "header",
1630
- /** 바닥글 */
2762
+ /** Footer. */
1631
2763
  FOOTER: "footer"
1632
2764
  };
1633
2765
  Word2.PageNumberAlign = {
1634
- /** 왼쪽 정렬 */
2766
+ /** Left. */
1635
2767
  LEFT: "left",
1636
- /** 가운데 정렬 */
2768
+ /** Center. */
1637
2769
  CENTER: "center",
1638
- /** 오른쪽 정렬 */
2770
+ /** Right. */
1639
2771
  RIGHT: "right"
1640
2772
  };
1641
2773
  Word2.BorderStyle = {
2774
+ /** Solid line. */
1642
2775
  SOLID: "solid",
2776
+ /** Dashed line. */
1643
2777
  DASHED: "dashed",
2778
+ /** Dotted line. */
1644
2779
  DOTTED: "dotted",
2780
+ /** Double line. */
1645
2781
  DOUBLE: "double",
2782
+ /** No border. */
1646
2783
  NONE: "none",
2784
+ /** Hidden border. */
1647
2785
  HIDDEN: "hidden"
1648
2786
  };
1649
2787
  Word2.BorderLocation = {
2788
+ /** Top. */
1650
2789
  TOP: "top",
2790
+ /** Right. */
1651
2791
  RIGHT: "right",
2792
+ /** Bottom. */
1652
2793
  BOTTOM: "bottom",
2794
+ /** Left. */
1653
2795
  LEFT: "left",
2796
+ /** All sides. */
1654
2797
  ALL: "all",
2798
+ /** Outer edges. */
1655
2799
  OUTER: "outer",
2800
+ /** Inner lines. */
1656
2801
  INNER: "inner",
2802
+ /** Lines between rows. */
1657
2803
  BETWEEN_ROWS: "betweenRows",
2804
+ /** Lines between columns. */
1658
2805
  BETWEEN_COLUMNS: "betweenColumns",
2806
+ /** Line between paragraphs (paragraph only). */
1659
2807
  BETWEEN: "between"
1660
2808
  };
1661
2809
  Word2.TabAlignment = {
2810
+ /** Left. */
1662
2811
  LEFT: "left",
2812
+ /** Center. */
1663
2813
  CENTER: "center",
2814
+ /** Right. */
1664
2815
  RIGHT: "right",
2816
+ /** Decimal point. */
1665
2817
  DECIMAL: "decimal"
1666
2818
  };
1667
2819
  Word2.TabLeader = {
2820
+ /** None. */
1668
2821
  NONE: "none",
2822
+ /** Dots. */
1669
2823
  DOT: "dot",
2824
+ /** Hyphens. */
1670
2825
  HYPHEN: "hyphen",
2826
+ /** Underscores. */
1671
2827
  UNDERSCORE: "underscore",
2828
+ /** Middle dots. */
1672
2829
  MIDDLE_DOT: "middleDot"
1673
2830
  };
1674
2831
  Word2.PageOrientation = {
1675
- /** 세로 */
2832
+ /** Portrait. */
1676
2833
  PORTRAIT: "portrait",
1677
- /** 가로 */
2834
+ /** Landscape. */
1678
2835
  LANDSCAPE: "landscape"
1679
2836
  };
1680
2837
  Word2.PaperSize = {
2838
+ /** A3. */
1681
2839
  A3: "A3",
2840
+ /** A4. */
1682
2841
  A4: "A4",
2842
+ /** A5. */
1683
2843
  A5: "A5",
2844
+ /** Letter. */
1684
2845
  LETTER: "Letter",
2846
+ /** Legal. */
1685
2847
  LEGAL: "Legal",
2848
+ /** Executive. */
1686
2849
  EXECUTIVE: "Executive"
1687
2850
  };
1688
2851
  Word2.NumberFormat = {
1689
- /** 1, 2, 3 */
2852
+ /** 1, 2, 3. */
1690
2853
  DECIMAL: "decimal",
1691
- /** ①, ②, ③ */
2854
+ /** ①, ②, ③. */
1692
2855
  DECIMAL_CIRCLE: "decimalEnclosedCircle",
1693
- /** (1), (2), (3) */
2856
+ /** (1), (2), (3). */
1694
2857
  DECIMAL_PAREN: "decimalEnclosedParen",
1695
2858
  /** 1., 2., 3. */
1696
2859
  DECIMAL_FULLSTOP: "decimalEnclosedFullstop",
1697
- /** 01, 02, 03 */
2860
+ /** 01, 02, 03. */
1698
2861
  DECIMAL_ZERO: "decimalZero",
1699
- /** 1, 2, 3 (전각) */
2862
+ /** 1, 2, 3 (full-width). */
1700
2863
  DECIMAL_FULL_WIDTH: "decimalFullWidth",
1701
- /** 1, 2, 3 (반각) */
2864
+ /** 1, 2, 3 (half-width). */
1702
2865
  DECIMAL_HALF_WIDTH: "decimalHalfWidth",
1703
- /** -1-, -2-, -3- */
2866
+ /** -1-, -2-, -3-. */
1704
2867
  NUMBER_DASH: "numberInDash",
1705
- /** One, Two, Three */
2868
+ /** One, Two, Three. */
1706
2869
  CARDINAL_TEXT: "cardinalText",
1707
- /** 1st, 2nd, 3rd */
2870
+ /** 1st, 2nd, 3rd. */
1708
2871
  ORDINAL: "ordinal",
1709
- /** First, Second, Third */
2872
+ /** First, Second, Third. */
1710
2873
  ORDINAL_TEXT: "ordinalText",
1711
- /** *, †, ‡, § */
2874
+ /** , †, ‡, §. */
1712
2875
  CHICAGO: "chicago",
1713
- /** 1, 2, ..., 9, A, B */
2876
+ /** 1, 2, ..., 9, A, B. */
1714
2877
  HEX: "hex",
1715
- /** a, b, c */
2878
+ /** a, b, c. */
1716
2879
  LOWER_LETTER: "lowerLetter",
1717
- /** A, B, C */
2880
+ /** A, B, C. */
1718
2881
  UPPER_LETTER: "upperLetter",
1719
- /** i, ii, iii */
2882
+ /** i, ii, iii. */
1720
2883
  LOWER_ROMAN: "lowerRoman",
1721
- /** I, II, III */
2884
+ /** I, II, III. */
1722
2885
  UPPER_ROMAN: "upperRoman",
1723
- /** ㄱ, ㄴ, ㄷ */
2886
+ /** ㄱ, ㄴ, ㄷ (Korean consonants). */
1724
2887
  HANGUL_CHOSUNG: "chosung",
1725
- /** 가, 나, 다 */
2888
+ /** 가, 나, 다 (Korean syllables). */
1726
2889
  HANGUL_GANADA: "ganada",
1727
- /** 일, 이, 삼 */
2890
+ /** 일, 이, 삼 (Korean counting). */
1728
2891
  KOREAN_COUNT: "koreanCounting",
1729
- /** 하나, 둘, 셋 */
2892
+ /** 하나, 둘, 셋 (Korean native numbers). */
1730
2893
  KOREAN_LEGAL: "koreanLegal",
1731
- /** 一, 二, 三 */
2894
+ /** 一, 二, 三. */
1732
2895
  KOREAN_DIGITAL: "koreanDigital",
1733
- /** 壹, 貳, 參 */
2896
+ /** 壹, 貳, 參. */
1734
2897
  KOREAN_DIGITAL2: "koreanDigital2",
1735
- /** 一, 二, 三 */
2898
+ /** 一, 二, 三. */
1736
2899
  CHINESE_COUNT: "chineseCounting",
1737
- /** 一, 二, 三 (천 단위) */
2900
+ /** 一, 二, 三 (thousands). */
1738
2901
  CHINESE_COUNTING_THOUSAND: "chineseCountingThousand",
1739
- /** 壹, 贰, 叁 */
2902
+ /** 壹, 贰, 叁. */
1740
2903
  CHINESE_LEGAL: "chineseLegalSimplified",
1741
- /** 一, 二, 三 (자릿수 나열) */
2904
+ /** 一, 二, 三 (digit by digit). */
1742
2905
  CHINESE_DIGITAL: "chineseDigital",
1743
- /** 〇, 一, 二 */
2906
+ /** 〇, 一, 二. */
1744
2907
  CHINESE_ZERO_TAIWANESE_DIGITAL: "chineseZeroTaiwaneseDigital",
1745
- /** 一, 二, 三 */
2908
+ /** 一, 二, 三. */
1746
2909
  TAIWANESE_COUNT: "taiwaneseCounting",
1747
- /** 一, 二, 三 (천 단위) */
2910
+ /** 一, 二, 三 (thousands). */
1748
2911
  TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand",
1749
- /** 一, 二, 三 (자릿수 나열) */
2912
+ /** 一, 二, 三 (digit by digit). */
1750
2913
  TAIWANESE_DIGITAL: "taiwaneseDigital",
1751
- /** 一, 二, 三 */
2914
+ /** 一, 二, 三. */
1752
2915
  IDEOGRAPH_DIGITAL: "ideographDigital",
1753
- /** ㊀, ㊁, ㊂ */
2916
+ /** ㊀, ㊁, ㊂. */
1754
2917
  IDEOGRAPH_CIRCLE: "ideographEnclosedCircle",
1755
- /** 壹, 貳, 參 */
2918
+ /** 壹, 貳, 參. */
1756
2919
  IDEOGRAPH_LEGAL: "ideographLegalTraditional",
1757
- /** 갑, 을, 병 (십간) */
2920
+ /** 갑, 을, 병 (heavenly stems). */
1758
2921
  IDEOGRAPH_TRADITIONAL: "ideographTraditional",
1759
- /** 자, 축, 인 (십이지) */
2922
+ /** 자, 축, 인 (earthly branches). */
1760
2923
  IDEOGRAPH_ZODIAC: "ideographZodiac",
1761
- /** 갑자, 을축, 병인 (육십갑자) */
2924
+ /** 갑자, 을축, 병인 (sexagenary cycle). */
1762
2925
  IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional",
1763
- /** 一, 二, 三 */
2926
+ /** 一, 二, 三. */
1764
2927
  JAPANESE_COUNT: "japaneseCounting",
1765
- /** 一, 二, 三 (만 단위) */
2928
+ /** 一, 二, 三 (ten thousands). */
1766
2929
  JAPANESE_DIGITAL: "japaneseDigitalTenThousand",
1767
- /** 壱, 弐, 参 */
2930
+ /** 壱, 弐, 参. */
1768
2931
  JAPANESE_LEGAL: "japaneseLegal",
1769
- /** ア, イ, ウ (반각) */
2932
+ /** ア, イ, ウ (half-width). */
1770
2933
  JAPANESE_AIUEO: "aiueo",
1771
- /** ア, イ, ウ (전각) */
2934
+ /** ア, イ, ウ (full-width). */
1772
2935
  JAPANESE_AIUEO_FULL_WIDTH: "aiueoFullWidth",
1773
- /** イ, ロ, ハ (반각) */
2936
+ /** イ, ロ, ハ (half-width). */
1774
2937
  JAPANESE_IROHA: "iroha",
1775
- /** イ, ロ, ハ (전각) */
2938
+ /** イ, ロ, ハ (full-width). */
1776
2939
  JAPANESE_IROHA_FULL_WIDTH: "irohaFullWidth",
1777
- /** 번호 표시 안 함 */
2940
+ /** No page number. */
1778
2941
  NONE: "none"
1779
2942
  };
1780
2943
  })(Word || (Word = {}));
@@ -1783,310 +2946,462 @@ var Word;
1783
2946
  var Cell;
1784
2947
  ((Cell2) => {
1785
2948
  Cell2.HorizontalAlign = {
2949
+ /** Left alignment. */
1786
2950
  LEFT: "left",
2951
+ /** Center alignment. */
1787
2952
  CENTER: "center",
2953
+ /** Right alignment. */
1788
2954
  RIGHT: "right",
2955
+ /** Justified. */
1789
2956
  JUSTIFY: "justify",
2957
+ /** Distributed. */
1790
2958
  DISTRIBUTED: "distributed"
1791
2959
  };
1792
2960
  Cell2.VerticalAlign = {
2961
+ /** Top alignment. */
1793
2962
  TOP: "top",
2963
+ /** Center alignment. */
1794
2964
  CENTER: "center",
2965
+ /** Bottom alignment. */
1795
2966
  BOTTOM: "bottom",
2967
+ /** Justified. */
1796
2968
  JUSTIFY: "justify"
1797
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
+ };
1798
2982
  Cell2.BorderType = {
1799
- /** 바깥 네 변과 내부 선 전체 */
2983
+ /** All four outer edges and all inner lines. */
1800
2984
  ALL: "all",
1801
- /** 바깥 네 변 */
2985
+ /** The four outer edges. */
1802
2986
  RECTANGLE: "rectangle",
1803
- /** 내부의 가로선과 세로선 */
2987
+ /** Inner horizontal and vertical lines. */
1804
2988
  CROSS: "cross",
1805
- /** 위쪽 변 */
2989
+ /** Top edge. */
1806
2990
  TOP: "top",
1807
- /** 아래쪽 변 */
2991
+ /** Bottom edge. */
1808
2992
  BOTTOM: "bottom",
1809
- /** 왼쪽 변 */
2993
+ /** Left edge. */
1810
2994
  LEFT: "left",
1811
- /** 오른쪽 변 */
2995
+ /** Right edge. */
1812
2996
  RIGHT: "right",
1813
- /** 내부의 세로선 */
2997
+ /** Inner vertical lines. */
1814
2998
  CENTER: "center",
1815
- /** 내부의 가로선 */
2999
+ /** Inner horizontal lines. */
1816
3000
  MIDDLE: "middle",
1817
- /** 방향이 정해지지 않아 테두리가 그려지지 않는다. 대각선은 DIAGONAL_UP·DIAGONAL_DOWN·DIAGONAL_CROSS 로 지정한다 */
1818
- DIAGONAL: "diagonal",
1819
- /** 각 셀의 왼쪽 아래에서 오른쪽 위로 긋는 대각선 */
3001
+ /** Diagonal line from the bottom-left to the top-right of each cell. */
1820
3002
  DIAGONAL_UP: "diagonal_up",
1821
- /** 각 셀의 왼쪽 위에서 오른쪽 아래로 긋는 대각선 */
3003
+ /** Diagonal line from the top-left to the bottom-right of each cell. */
1822
3004
  DIAGONAL_DOWN: "diagonal_down",
1823
- /** 각 셀의 대각선 두 방향 */
3005
+ /** Both diagonal lines of each cell. */
1824
3006
  DIAGONAL_CROSS: "diagonal_cross",
1825
- /** 테두리 제거. 선 스타일과 색은 무시된다 */
3007
+ /** Removes borders. The line style and color are ignored. */
1826
3008
  NONE: "none"
1827
3009
  };
1828
3010
  Cell2.BorderLineStyle = {
3011
+ /** Hairline. */
1829
3012
  HAIR: "hair",
3013
+ /** Thin solid line. */
1830
3014
  THIN: "thin",
3015
+ /** Medium solid line. */
1831
3016
  MEDIUM: "medium",
3017
+ /** Thick solid line. */
1832
3018
  THICK: "thick",
3019
+ /** Double line. */
1833
3020
  DOUBLE: "double",
3021
+ /** Thin dotted line. */
1834
3022
  DOTTED: "dotted",
3023
+ /** Thin dashed line. */
1835
3024
  DASHED: "dashed",
3025
+ /** Thin dash-dot line. */
1836
3026
  DASH_DOT: "dashDot",
3027
+ /** Thin dash-dot-dot line. */
1837
3028
  DASH_DOT_DOT: "dashDotDot",
3029
+ /** Medium dashed line. */
1838
3030
  MEDIUM_DASHED: "mediumDashed",
3031
+ /** Medium dash-dot line. */
1839
3032
  MEDIUM_DASH_DOT: "mediumDashDot",
3033
+ /** Medium dash-dot-dot line. */
1840
3034
  MEDIUM_DASH_DOT_DOT: "mediumDashDotDot",
3035
+ /** Medium slanted dash-dot line. */
1841
3036
  SLANT_DASH_DOT: "slantDashDot",
3037
+ /** No line. In setBorder, clears the existing lines at the position specified by type. */
1842
3038
  NONE: "none"
1843
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
+ };
1844
3064
  Cell2.SortOrder = {
3065
+ /** Ascending. Numbers come before text. */
1845
3066
  ASCENDING: "asc",
3067
+ /** Descending. Text comes before numbers. */
1846
3068
  DESCENDING: "desc"
1847
3069
  };
1848
3070
  Cell2.HyperlinkType = {
3071
+ /** Link that opens a web address. */
1849
3072
  WEB: "web",
3073
+ /** Link that opens a new email to an email address. */
1850
3074
  EMAIL: "email",
3075
+ /** Link that moves to a location in the same document. Pass a sheet and range in location. */
1851
3076
  BOOK: "book"
1852
3077
  };
1853
3078
  Cell2.DataValidationType = {
3079
+ /** Does not restrict input and only attaches an input message. No formula is needed. */
1854
3080
  ANY: "any",
3081
+ /** Accepts only values in a list. Pass a comma-separated list or a reference to a single-column or single-row range in formula1. */
1855
3082
  LIST: "list",
3083
+ /** Accepts whole numbers only. */
1856
3084
  WHOLE: "whole",
3085
+ /** Accepts numbers, including decimals. */
1857
3086
  DECIMAL: "decimal",
3087
+ /** Accepts dates. */
1858
3088
  DATE: "date",
3089
+ /** Accepts times. */
1859
3090
  TIME: "time",
3091
+ /** Restricts input by text length. */
1860
3092
  TEXT_LENGTH: "textLength",
3093
+ /** Accepts only input for which the Boolean formula in formula1 is true. */
1861
3094
  CUSTOM: "custom"
1862
3095
  };
1863
3096
  Cell2.DataValidationOperator = {
3097
+ /** Accepts only values greater than or equal to formula1 and less than or equal to formula2. */
1864
3098
  BETWEEN: "between",
3099
+ /** Accepts only values less than formula1 or greater than formula2. */
1865
3100
  NOT_BETWEEN: "notBetween",
3101
+ /** Accepts only values equal to formula1. */
1866
3102
  EQUAL: "equal",
3103
+ /** Accepts only values not equal to formula1. */
1867
3104
  NOT_EQUAL: "notEqual",
3105
+ /** Accepts only values less than formula1. */
1868
3106
  LESS_THAN: "lessThan",
3107
+ /** Accepts only values less than or equal to formula1. */
1869
3108
  LESS_THAN_OR_EQUAL: "lessThanOrEqual",
3109
+ /** Accepts only values greater than formula1. */
1870
3110
  GREATER_THAN: "greaterThan",
3111
+ /** Accepts only values greater than or equal to formula1. */
1871
3112
  GREATER_THAN_OR_EQUAL: "greaterThanOrEqual"
1872
3113
  };
1873
3114
  Cell2.DataValidationErrorStyle = {
3115
+ /** Rejects input that does not match the rule. */
1874
3116
  STOP: "stop",
3117
+ /** Shows a warning and allows the input if the user accepts. */
1875
3118
  WARNING: "warning",
3119
+ /** Shows an information message and allows the input unless the user cancels. */
1876
3120
  INFORMATION: "information"
1877
3121
  };
1878
3122
  Cell2.ConditionalFormatRuleType = {
3123
+ /** Compares the cell value with boundary values using operator. */
1879
3124
  CELL_IS: "cellIs",
3125
+ /** Cells for which the formula in formula1 is true. */
1880
3126
  EXPRESSION: "expression",
3127
+ /** Cells that contain the string in text. */
1881
3128
  CONTAINS_TEXT: "containsText",
3129
+ /** Cells that do not contain the string in text. */
1882
3130
  NOT_CONTAINS_TEXT: "notContainsText",
3131
+ /** Cells that begin with the string in text. */
1883
3132
  BEGINS_WITH: "beginsWith",
3133
+ /** Cells that end with the string in text. */
1884
3134
  ENDS_WITH: "endsWith",
3135
+ /** Cells that are empty or contain only spaces. */
1885
3136
  CONTAINS_BLANKS: "containsBlanks",
3137
+ /** Cells that contain a character other than a space. */
1886
3138
  NOT_CONTAINS_BLANKS: "notContainsBlanks",
3139
+ /** Cells whose value is an error. */
1887
3140
  CONTAINS_ERRORS: "containsErrors",
3141
+ /** Cells whose value is not an error. */
1888
3142
  NOT_CONTAINS_ERRORS: "notContainsErrors",
3143
+ /** Cells whose value ranks within the top rank in the applied range. If bottom is set, picks from the smallest values instead. */
1889
3144
  TOP10: "top10",
3145
+ /** Cells whose value is above the average of the applied range. */
1890
3146
  ABOVE_AVERAGE: "aboveAverage",
3147
+ /** Cells whose value is below the average of the applied range. */
1891
3148
  BELOW_AVERAGE: "belowAverage",
3149
+ /** Cells whose value appears more than once in the applied range. */
1892
3150
  DUPLICATE_VALUES: "duplicateValues",
3151
+ /** Cells whose value appears only once in the applied range. */
1893
3152
  UNIQUE_VALUES: "uniqueValues",
3153
+ /** Cells whose date falls within the period in timePeriod. */
1894
3154
  TIME_PERIOD: "timePeriod",
3155
+ /** Fills cells with the scale colors in colors according to their values. */
1895
3156
  COLOR_SCALE: "colorScale",
3157
+ /** Draws a bar in each cell according to its value. The bar appearance is set by the dataBar preset. */
1896
3158
  DATA_BAR: "dataBar",
3159
+ /** Adds an icon from iconSet to each cell according to its value. */
1897
3160
  ICON_SET: "iconSet"
1898
3161
  };
1899
3162
  Cell2.ConditionalFormatOperator = {
3163
+ /** Cells whose value is equal to formula1. */
1900
3164
  EQUAL: "equal",
3165
+ /** Cells whose value is not equal to formula1. */
1901
3166
  NOT_EQUAL: "notEqual",
3167
+ /** Cells whose value is between the two boundaries. The boundary values are included. */
1902
3168
  BETWEEN: "between",
3169
+ /** Cells whose value is outside the two boundaries. The boundary values are not included. */
1903
3170
  NOT_BETWEEN: "notBetween",
3171
+ /** Cells whose value is greater than formula1. */
1904
3172
  GREATER_THAN: "greaterThan",
3173
+ /** Cells whose value is greater than or equal to formula1. */
1905
3174
  GREATER_THAN_OR_EQUAL: "greaterThanOrEqual",
3175
+ /** Cells whose value is less than formula1. */
1906
3176
  LESS_THAN: "lessThan",
3177
+ /** Cells whose value is less than or equal to formula1. */
1907
3178
  LESS_THAN_OR_EQUAL: "lessThanOrEqual"
1908
3179
  };
1909
3180
  Cell2.ConditionalFormatTimePeriod = {
3181
+ /** Yesterday. */
1910
3182
  YESTERDAY: "yesterday",
3183
+ /** Today. */
1911
3184
  TODAY: "today",
3185
+ /** Tomorrow. */
1912
3186
  TOMORROW: "tomorrow",
3187
+ /** The last 7 days, including today. */
1913
3188
  LAST_7_DAYS: "last7Days",
3189
+ /** Last week. */
1914
3190
  LAST_WEEK: "lastWeek",
3191
+ /** This week. */
1915
3192
  THIS_WEEK: "thisWeek",
3193
+ /** Next week. */
1916
3194
  NEXT_WEEK: "nextWeek",
3195
+ /** Last month. */
1917
3196
  LAST_MONTH: "lastMonth",
3197
+ /** This month. */
1918
3198
  THIS_MONTH: "thisMonth",
3199
+ /** Next month. */
1919
3200
  NEXT_MONTH: "nextMonth"
1920
3201
  };
1921
3202
  Cell2.ConditionalFormatValueType = {
3203
+ /** Number given in formula. */
1922
3204
  NUM: "num",
3205
+ /** Minimum value in the range. */
1923
3206
  MIN: "min",
3207
+ /** Maximum value in the range. */
1924
3208
  MAX: "max",
3209
+ /** Percentage, where the span from the minimum to the maximum is 100. Give the value in formula. */
1925
3210
  PERCENT: "percent",
3211
+ /** Percentile. Give the value in formula. */
1926
3212
  PERCENTILE: "percentile",
3213
+ /** Result of the formula given in formula. */
1927
3214
  FORMULA: "formula",
3215
+ /** Default minimum threshold of a data bar preset. Appears only in getter results and is not accepted as input. */
1928
3216
  AUTO_MIN: "autoMin",
3217
+ /** Default maximum threshold of a data bar preset. Appears only in getter results and is not accepted as input. */
1929
3218
  AUTO_MAX: "autoMax"
1930
3219
  };
1931
3220
  Cell2.FilterType = {
3221
+ /** Keeps only rows whose value is in the list of values to show. */
1932
3222
  VALUES: "values",
3223
+ /** Keeps only rows that match one or two conditions. */
1933
3224
  CUSTOM: "custom",
3225
+ /** Keeps only rows picked from the largest or smallest values by count or percentage. */
1934
3226
  TOP10: "top10",
3227
+ /** Keeps only rows picked relative to the column average. The criterion is a FilterDynamicType value. */
1935
3228
  DYNAMIC: "dynamic"
1936
3229
  };
1937
3230
  Cell2.FilterOperator = {
3231
+ /** Rows whose value is equal to value. */
1938
3232
  EQUAL: "equal",
3233
+ /** Rows whose value is not equal to value. Rows with an empty cell are also kept. */
1939
3234
  NOT_EQUAL: "notEqual",
3235
+ /** Rows whose value is greater than value. */
1940
3236
  GREATER_THAN: "greaterThan",
3237
+ /** Rows whose value is greater than or equal to value. */
1941
3238
  GREATER_OR_EQUAL: "greaterOrEqual",
3239
+ /** Rows whose value is less than value. */
1942
3240
  LESS_THAN: "lessThan",
3241
+ /** Rows whose value is less than or equal to value. */
1943
3242
  LESS_OR_EQUAL: "lessOrEqual",
3243
+ /** Rows that begin with value. */
1944
3244
  BEGINS_WITH: "beginsWith",
3245
+ /** Rows that do not begin with value. */
1945
3246
  NOT_BEGINS_WITH: "notBeginsWith",
3247
+ /** Rows that end with value. */
1946
3248
  ENDS_WITH: "endsWith",
3249
+ /** Rows that do not end with value. */
1947
3250
  NOT_ENDS_WITH: "notEndsWith",
3251
+ /** Rows that contain value. */
1948
3252
  CONTAINS: "contains",
3253
+ /** Rows that do not contain value. */
1949
3254
  NOT_CONTAINS: "notContains"
1950
3255
  };
1951
3256
  Cell2.FilterDynamicType = {
3257
+ /** Rows whose value is above the column average. */
1952
3258
  ABOVE_AVERAGE: "aboveAverage",
3259
+ /** Rows whose value is below the column average. */
1953
3260
  BELOW_AVERAGE: "belowAverage"
1954
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
+ };
1955
3270
  })(Cell || (Cell = {}));
1956
3271
 
1957
3272
  // src/builtin/show-api.generated.ts
1958
3273
  var Show;
1959
3274
  ((Show2) => {
1960
3275
  Show2.ShapeType = {
1961
- /** 일반 도형 */
3276
+ /** Shape. */
1962
3277
  SHAPE: "sp",
1963
- /** 이미지(그림) */
3278
+ /** Image (picture). */
1964
3279
  IMAGE: "pic",
1965
- /** 연결선 */
3280
+ /** Line (connector). */
1966
3281
  CONNECTOR: "cxnSp",
1967
- /** 그룹 */
3282
+ /** Group. */
1968
3283
  GROUP: "grpSp",
1969
- /** 차트 */
3284
+ /** Chart. */
1970
3285
  CHART: "chart",
1971
- /** 표 */
3286
+ /** Table. */
1972
3287
  TABLE: "tbl",
1973
- /** 다이어그램 */
3288
+ /** Diagram. */
1974
3289
  DIAGRAM: "diagram",
1975
- /** OLE 개체 */
3290
+ /** OLE object. */
1976
3291
  OLE_OBJECT: "ole",
1977
- /** 컨트롤 개체 */
3292
+ /** Control object. */
1978
3293
  CONTROL: "control"
1979
3294
  };
1980
3295
  Show2.PlaceholderType = {
1981
- /** 제목 */
3296
+ /** Title. */
1982
3297
  TITLE: "title",
1983
- /** 가운데 제목 (제목 슬라이드용) */
3298
+ /** Center Title (for the title slide). */
1984
3299
  CTR_TITLE: "ctrTitle",
1985
- /** 부제목 */
3300
+ /** Subtitle. */
1986
3301
  SUB_TITLE: "subTitle",
1987
- /** 본문 */
3302
+ /** Body. */
1988
3303
  BODY: "body",
1989
- /** 개체(내용) */
3304
+ /** Object (content). */
1990
3305
  OBJECT: "obj",
1991
- /** 차트 */
3306
+ /** Chart. */
1992
3307
  CHART: "chart",
1993
- /** 표 */
3308
+ /** Table. */
1994
3309
  TABLE: "tbl",
1995
- /** 클립아트 */
3310
+ /** Clip Art. */
1996
3311
  CLIP_ART: "clipArt",
1997
- /** 다이어그램 */
3312
+ /** Diagram. */
1998
3313
  DIAGRAM: "dgm",
1999
- /** 미디어 */
3314
+ /** Media. */
2000
3315
  MEDIA: "media",
2001
- /** 날짜 */
3316
+ /** Date. */
2002
3317
  DATE: "dt",
2003
- /** 슬라이드 번호 */
3318
+ /** Slide Number. */
2004
3319
  SLIDE_NUM: "sldNum",
2005
- /** 바닥글 */
3320
+ /** Footer. */
2006
3321
  FOOTER: "ftr",
2007
- /** 머리글 (유인물·슬라이드 노트용) */
3322
+ /** Header (for handouts and slide notes). */
2008
3323
  HEADER: "hdr",
2009
- /** 그림 */
3324
+ /** Picture. */
2010
3325
  PICTURE: "pic",
2011
- /** 슬라이드 이미지 (슬라이드 노트용) */
3326
+ /** Slide Image (for slide notes). */
2012
3327
  SLIDE_IMAGE: "sldImg"
2013
3328
  };
2014
3329
  Show2.SlideLayoutType = {
2015
- /** 제목 슬라이드 */
3330
+ /** Title Slide. */
2016
3331
  TITLE: "title",
2017
- /** 제목과 텍스트 */
3332
+ /** Title and Text. */
2018
3333
  TX: "tx",
2019
- /** 제목과 2단 텍스트 */
3334
+ /** Title and Two-Column Text. */
2020
3335
  TWO_COL_TX: "twoColTx",
2021
- /** 제목과 표 */
3336
+ /** Title and Table. */
2022
3337
  TBL: "tbl",
2023
- /** 텍스트(왼쪽)와 차트(오른쪽) */
3338
+ /** Text (left) and Chart (right). */
2024
3339
  TX_AND_CHART: "txAndChart",
2025
- /** 차트(왼쪽)와 텍스트(오른쪽) */
3340
+ /** Chart (left) and Text (right). */
2026
3341
  CHART_AND_TX: "chartAndTx",
2027
- /** 다이어그램 */
3342
+ /** Diagram. */
2028
3343
  DGM: "dgm",
2029
- /** 차트 */
3344
+ /** Chart. */
2030
3345
  CHART: "chart",
2031
- /** 텍스트와 클립아트 */
3346
+ /** Text and Clip Art. */
2032
3347
  TX_AND_CLIP_ART: "txAndClipArt",
2033
- /** 클립아트와 텍스트 */
3348
+ /** Clip Art and Text. */
2034
3349
  CLIP_ART_AND_TX: "clipArtAndTx",
2035
- /** 제목만 */
3350
+ /** Title Only. */
2036
3351
  TITLE_ONLY: "titleOnly",
2037
- /** 빈 화면 */
3352
+ /** Blank. */
2038
3353
  BLANK: "blank",
2039
- /** 텍스트와 개체 */
3354
+ /** Text and Object. */
2040
3355
  TX_AND_OBJ: "txAndObj",
2041
- /** 개체와 텍스트 */
3356
+ /** Object and Text. */
2042
3357
  OBJ_AND_TX: "objAndTx",
2043
- /** 개체만 */
3358
+ /** Object Only. */
2044
3359
  OBJ_ONLY: "objOnly",
2045
- /** 제목과 개체 */
3360
+ /** Title and Content. */
2046
3361
  OBJ: "obj",
2047
- /** 텍스트와 미디어 */
3362
+ /** Text and Media. */
2048
3363
  TX_AND_MEDIA: "txAndMedia",
2049
- /** 미디어와 텍스트 */
3364
+ /** Media and Text. */
2050
3365
  MEDIA_AND_TX: "mediaAndTx",
2051
- /** 텍스트 위에 개체 */
3366
+ /** Object over Text. */
2052
3367
  OBJ_OVER_TX: "objOverTx",
2053
- /** 개체 위에 텍스트 */
3368
+ /** Text over Object. */
2054
3369
  TX_OVER_OBJ: "txOverObj",
2055
- /** 텍스트와 개체 2개 */
3370
+ /** Text and Two Objects. */
2056
3371
  TX_AND_TWO_OBJ: "txAndTwoObj",
2057
- /** 개체 2개와 텍스트 */
3372
+ /** Two Objects and Text. */
2058
3373
  TWO_OBJ_AND_TX: "twoObjAndTx",
2059
- /** 텍스트 위에 개체 2개 */
3374
+ /** Two Objects over Text. */
2060
3375
  TWO_OBJ_OVER_TX: "twoObjOverTx",
2061
- /** 개체 4개 */
3376
+ /** Four Objects. */
2062
3377
  FOUR_OBJ: "fourObj",
2063
- /** 세로 텍스트 */
3378
+ /** Title and Vertical Text. */
2064
3379
  VERT_TX: "vertTx",
2065
- /** 클립아트와 세로 텍스트 */
3380
+ /** Clip Art and Vertical Text. */
2066
3381
  CLIP_ART_AND_VERT_TX: "clipArtAndVertTx",
2067
- /** 세로 제목과 텍스트 */
3382
+ /** Vertical Title and Text. */
2068
3383
  VERT_TITLE_AND_TX: "vertTitleAndTx",
2069
- /** 세로 제목과 차트 위 텍스트 */
3384
+ /** Vertical Title and Text over Chart. */
2070
3385
  VERT_TITLE_AND_TX_OVER_CHART: "vertTitleAndTxOverChart",
2071
- /** 개체 2개 */
3386
+ /** Two Content. */
2072
3387
  TWO_OBJ: "twoObj",
2073
- /** 개체 1개와 개체 2개 */
3388
+ /** Object and Two Objects. */
2074
3389
  OBJ_AND_TWO_OBJ: "objAndTwoObj",
2075
- /** 개체 2개와 개체 1개 */
3390
+ /** Two Objects and Object. */
2076
3391
  TWO_OBJ_AND_OBJ: "twoObjAndObj",
2077
- /** 사용자 정의 */
3392
+ /** Custom. */
2078
3393
  CUST: "cust",
2079
- /** 구역 머리글 */
3394
+ /** Section Header. */
2080
3395
  SEC_HEAD: "secHead",
2081
- /** 텍스트 2개와 개체 2개 */
3396
+ /** Comparison (two text and two objects). */
2082
3397
  TWO_TX_TWO_OBJ: "twoTxTwoObj",
2083
- /** 제목, 개체, 캡션 텍스트 */
3398
+ /** Content with Caption. */
2084
3399
  OBJ_TX: "objTx",
2085
- /** 그림과 캡션 텍스트 */
3400
+ /** Picture with Caption. */
2086
3401
  PIC_TX: "picTx"
2087
3402
  };
2088
3403
  Show2.ViewMode = {
2089
- /** 창 크기에 맞춤 */
3404
+ /** Fit to window. */
2090
3405
  FIT_IN_WINDOW: "fitInWindow",
2091
3406
  /** 50% */
2092
3407
  ZOOM_50: "50",
@@ -2104,329 +3419,331 @@ var Show;
2104
3419
  ZOOM_400: "400"
2105
3420
  };
2106
3421
  Show2.SelectScope = {
2107
- /** 현재 슬라이드의 모든 도형 */
3422
+ /** All shapes on the current slide. */
2108
3423
  SHAPE: "shape",
2109
- /** 모든 슬라이드 */
3424
+ /** All slides. */
2110
3425
  SLIDE: "slide",
2111
- /** 편집 중인 텍스트 전체 */
3426
+ /** All of the text being edited. */
2112
3427
  TEXT: "text"
2113
3428
  };
2114
- Show2.RunProperty = {
2115
- /** 글자 크기 */
2116
- FONT_SIZE: "fontSize",
2117
- /** 굵게 */
2118
- BOLD: "bold",
2119
- /** 기울임꼴 */
2120
- ITALIC: "italic",
2121
- /** 밑줄 */
2122
- UNDERLINE: "underline",
2123
- /** 취소선 */
2124
- STRIKE: "strike",
2125
- /** 글꼴 */
2126
- FONT_FAMILY: "fontFamily",
2127
- /** 기준선 이동(위/아래 첨자) */
2128
- BASELINE_SHIFT: "baselineShift"
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"
2129
3462
  };
2130
3463
  Show2.FlipDirection = {
2131
- /** 좌우 대칭 */
3464
+ /** Flip Horizontal. */
2132
3465
  HORIZONTAL: "horizontal",
2133
- /** 상하 대칭 */
3466
+ /** Flip Vertical. */
2134
3467
  VERTICAL: "vertical"
2135
3468
  };
2136
3469
  Show2.EffectType = {
2137
- /** 바깥쪽 그림자 */
3470
+ /** Outer shadow. */
2138
3471
  OUTER_SHADOW: "outerShdw",
2139
- /** 안쪽 그림자 */
3472
+ /** Inner shadow. */
2140
3473
  INNER_SHADOW: "innerShdw",
2141
- /** 반사 */
3474
+ /** Reflection. */
2142
3475
  REFLECTION: "reflection",
2143
- /** 네온 */
3476
+ /** Glow. */
2144
3477
  GLOW: "glow",
2145
- /** 부드러운 가장자리 */
3478
+ /** Soft edges. */
2146
3479
  SOFT_EDGE: "softEdge"
2147
3480
  };
2148
3481
  Show2.LineCap = {
2149
- /** 평면 끝 */
3482
+ /** Flat. */
2150
3483
  FLAT: "flat",
2151
- /** 둥근 끝 */
3484
+ /** Round. */
2152
3485
  ROUND: "rnd",
2153
- /** 사각형 끝 */
3486
+ /** Square. */
2154
3487
  SQUARE: "sq"
2155
3488
  };
2156
3489
  Show2.LineJoin = {
2157
- /** 둥근 모서리 */
3490
+ /** Round. */
2158
3491
  ROUND: "round",
2159
- /** 빗면(경사) 모서리 */
3492
+ /** Bevel. */
2160
3493
  BEVEL: "bevel",
2161
- /** 각진 모서리 */
3494
+ /** Miter. */
2162
3495
  MITER: "miter"
2163
3496
  };
2164
3497
  Show2.LineEndType = {
2165
- /** 없음 */
3498
+ /** None. */
2166
3499
  NONE: "none",
2167
- /** 삼각형 화살표 */
3500
+ /** Triangle Arrow. */
2168
3501
  TRIANGLE: "triangle",
2169
- /** 스텔스(오목한) 화살표 */
3502
+ /** Stealth Arrow (concave). */
2170
3503
  STEALTH: "stealth",
2171
- /** 마름모 */
3504
+ /** Diamond Arrow. */
2172
3505
  DIAMOND: "diamond",
2173
- /** 원형 */
3506
+ /** Oval Arrow. */
2174
3507
  OVAL: "oval",
2175
- /** 열린 화살표 */
3508
+ /** Open Arrow. */
2176
3509
  ARROW: "arrow"
2177
3510
  };
2178
3511
  Show2.LineEndSize = {
2179
- /** 작게 */
3512
+ /** Small. */
2180
3513
  SMALL: "sm",
2181
- /** 보통 */
3514
+ /** Medium. */
2182
3515
  MEDIUM: "med",
2183
- /** 크게 */
3516
+ /** Large. */
2184
3517
  LARGE: "lg"
2185
3518
  };
2186
3519
  Show2.TextAlignH = {
2187
- /** 왼쪽 정렬 */
3520
+ /** Align Left. */
2188
3521
  LEFT: "l",
2189
- /** 가운데 정렬 */
3522
+ /** Center. */
2190
3523
  CENTER: "ctr",
2191
- /** 오른쪽 정렬 */
3524
+ /** Align Right. */
2192
3525
  RIGHT: "r",
2193
- /** 양쪽 맞춤 */
3526
+ /** Justify. */
2194
3527
  JUSTIFY: "just",
2195
- /** 균등 분할 */
3528
+ /** Distributed. */
2196
3529
  DISTRIBUTE: "dist"
2197
3530
  };
2198
3531
  Show2.LineSpacingType = {
2199
- /** 줄 높이의 배수 */
3532
+ /** Multiple of the line height. */
2200
3533
  MULTIPLE: "multiple",
2201
- /** 고정 값(포인트) */
3534
+ /** Exact value in points. */
2202
3535
  EXACT: "exact"
2203
3536
  };
2204
3537
  Show2.SpeedType = {
2205
- /** 느리게 */
3538
+ /** Slow. */
2206
3539
  SLOW: "slow",
2207
- /** 보통 */
3540
+ /** Medium. */
2208
3541
  MED: "med",
2209
- /** 빠르게 */
3542
+ /** Fast. */
2210
3543
  FAST: "fast"
2211
3544
  };
2212
3545
  Show2.TransitionType = {
2213
- /** 없음 */
3546
+ /** None. */
2214
3547
  NONE: "none",
2215
- /** 임의(무작위 전환) */
3548
+ /** Random. */
2216
3549
  RANDOM: "random",
2217
- /** 밝기 변화 */
3550
+ /** Fade. */
2218
3551
  FADE: "fade",
2219
- /** 밀어내기 */
3552
+ /** Push. */
2220
3553
  PUSH: "push",
2221
- /** 덮기 */
3554
+ /** Cover. */
2222
3555
  COVER: "cover",
2223
- /** 자르기 */
3556
+ /** Cut. */
2224
3557
  CUT: "cut",
2225
- /** 나누기 */
3558
+ /** Split. */
2226
3559
  SPLIT: "split",
2227
- /** 닦아내기 */
3560
+ /** Wipe. */
2228
3561
  WIPE: "wipe",
2229
- /** 대각선 닦아내기 */
3562
+ /** Diagonal Wipe. */
2230
3563
  STRIPS: "strips",
2231
- /** 당기기(벗기기) */
3564
+ /** Uncover (pull). */
2232
3565
  PULL: "pull",
2233
- /** 빗질 */
3566
+ /** Comb. */
2234
3567
  COMB: "comb",
2235
- /** 원형 */
3568
+ /** Circle. */
2236
3569
  CIRCLE: "circle",
2237
- /** 마름모형 */
3570
+ /** Diamond. */
2238
3571
  DIAMOND: "diamond",
2239
- /** 십자형 */
3572
+ /** Plus. */
2240
3573
  PLUS: "plus",
2241
- /** 확대/축소 */
3574
+ /** Zoom. */
2242
3575
  ZOOM: "zoom",
2243
- /** 시계 방향 회전 */
3576
+ /** Clockwise. */
2244
3577
  WHEEL: "wheel",
2245
- /** 시계 반대 방향 회전 */
3578
+ /** Counterclockwise. */
2246
3579
  WHEEL_REVERSE: "wheelReverse",
2247
- /** 쐐기형 */
3580
+ /** Wedge. */
2248
3581
  WEDGE: "wedge",
2249
- /** 넘기기(뒤집기) */
3582
+ /** Flip. */
2250
3583
  FLIP: "flip"
2251
3584
  };
2252
3585
  Show2.TransitionEffectDir = {
2253
- /** 아래로 */
3586
+ /** Down. */
2254
3587
  DOWN: "d",
2255
- /** 왼쪽으로 */
3588
+ /** Left. */
2256
3589
  LEFT: "l",
2257
- /** 오른쪽으로 */
3590
+ /** Right. */
2258
3591
  RIGHT: "r",
2259
- /** 위로 */
3592
+ /** Up. */
2260
3593
  UP: "u",
2261
- /** 왼쪽 아래로 */
3594
+ /** Left-Down. */
2262
3595
  LEFT_DOWN: "ld",
2263
- /** 왼쪽 위로 */
3596
+ /** Left-Up. */
2264
3597
  LEFT_UP: "lu",
2265
- /** 오른쪽 아래로 */
3598
+ /** Right-Down. */
2266
3599
  RIGHT_DOWN: "rd",
2267
- /** 오른쪽 위로 */
3600
+ /** Right-Up. */
2268
3601
  RIGHT_UP: "ru",
2269
- /** 안쪽으로 */
3602
+ /** In. */
2270
3603
  IN: "in",
2271
- /** 바깥쪽으로 */
3604
+ /** Out. */
2272
3605
  OUT: "out",
2273
- /** 가로 (분할 방향) */
3606
+ /** Horizontal (orientation). */
2274
3607
  HORIZONTAL: "horz",
2275
- /** 세로 (분할 방향) */
3608
+ /** Vertical (orientation). */
2276
3609
  VERTICAL: "vert"
2277
3610
  };
2278
3611
  Show2.DateFormat = {
2279
- /** 년-월-일 (예: 2026-06-30) */
3612
+ /** Month/day/year (e.g. 6/30/2026). */
2280
3613
  Datetime1: "datetime1",
2281
- /** 전체 날짜와 요일 (예: 2026년 6월 30일 화요일) */
3614
+ /** Weekday, month day, year (e.g. Tuesday, June 30, 2026). */
2282
3615
  Datetime2: "datetime2",
2283
- /** 연호 날짜 (한국어·일본어 전용) */
3616
+ /** Day month year (e.g. 30 June 2026). */
2284
3617
  Datetime3: "datetime3",
2285
- /** 년 월 일 */
3618
+ /** Month day, year (e.g. June 30, 2026). */
2286
3619
  Datetime4: "datetime4",
2287
- /** 년/월/일 (예: 2026/6/30) */
3620
+ /** Day-month-two-digit year (e.g. 30-Jun-26). */
2288
3621
  Datetime5: "datetime5",
2289
- /** 년 월 */
3622
+ /** Month and two-digit year (e.g. June 26). */
2290
3623
  Datetime6: "datetime6",
2291
- /** 연호 년 월 (한국어·일본어 전용) */
3624
+ /** Abbreviated month-two-digit year (e.g. Jun-26). */
2292
3625
  Datetime7: "datetime7",
2293
- /** 날짜 + 시:분:초 */
3626
+ /** Date and 12-hour time (e.g. 6/30/2026 3:05 PM). */
2294
3627
  Datetime8: "datetime8",
2295
- /** 날짜 + 오전/오후 시:분 */
3628
+ /** Date and 12-hour time with seconds (e.g. 6/30/2026 3:05:09 PM). */
2296
3629
  Datetime9: "datetime9",
2297
- /** 시:분 */
3630
+ /** 24-hour time (e.g. 15:05). */
2298
3631
  Datetime10: "datetime10",
2299
- /** 시:분:초 */
3632
+ /** 24-hour time with seconds (e.g. 15:05:09). */
2300
3633
  Datetime11: "datetime11",
2301
- /** 오전/오후 시:분 */
3634
+ /** 12-hour time (e.g. 3:05 PM). */
2302
3635
  Datetime12: "datetime12",
2303
- /** 오전/오후 시:분:초 */
3636
+ /** 12-hour time with seconds (e.g. 3:05:09 PM). */
2304
3637
  Datetime13: "datetime13"
2305
3638
  };
2306
3639
  Show2.DateLanguage = {
2307
- /** 영어(미국) */
3640
+ /** English (United States). */
2308
3641
  ENGLISH: "en-US",
2309
- /** 한국어 */
3642
+ /** Korean. */
2310
3643
  KOREAN: "ko-KR",
2311
- /** 일본어 */
3644
+ /** Japanese. */
2312
3645
  JAPANESE: "ja-JP",
2313
- /** 러시아어 */
3646
+ /** Russian. */
2314
3647
  RUSSIAN: "ru-RU"
2315
3648
  };
2316
3649
  Show2.BulletType = {
2317
- /** 글머리 없음 */
3650
+ /** No bullet. */
2318
3651
  NONE: "buNone",
2319
- /** 문자 글머리 기호 */
3652
+ /** Character bullet. */
2320
3653
  CHAR: "buChar",
2321
- /** 자동 번호 매기기 */
3654
+ /** Automatic numbering. */
2322
3655
  AUTO_NUM: "buAutoNum",
2323
- /** 그림 글머리 기호 */
3656
+ /** Image bullet. */
2324
3657
  BLIP: "buBlip"
2325
3658
  };
2326
3659
  Show2.Underline = {
2327
- /** 없음 */
3660
+ /** None. */
2328
3661
  NONE: "none",
2329
- /** 단어에만(공백 제외) */
3662
+ /** Words Only (excluding spaces). */
2330
3663
  WORDS: "words",
2331
- /** 실선 */
3664
+ /** Single Underline. */
2332
3665
  SINGLE: "sng",
2333
- /** 이중선 */
3666
+ /** Double Underline. */
2334
3667
  DOUBLE: "dbl",
2335
- /** 굵은 실선 */
3668
+ /** Heavy Underline. */
2336
3669
  HEAVY: "heavy",
2337
- /** 점선 */
3670
+ /** Dotted Underline. */
2338
3671
  DOTTED: "dotted",
2339
- /** 굵은 점선 */
3672
+ /** Dotted Heavy Underline. */
2340
3673
  DOTTED_HEAVY: "dottedHeavy",
2341
- /** 파선 */
3674
+ /** Dash Underline. */
2342
3675
  DASH: "dash",
2343
- /** 굵은 파선 */
3676
+ /** Dash Heavy Underline. */
2344
3677
  DASH_HEAVY: "dashHeavy",
2345
- /** 긴 파선 */
3678
+ /** Long Dash Underline. */
2346
3679
  DASH_LONG: "dashLong",
2347
- /** 굵은 긴 파선 */
3680
+ /** Long Dash Heavy Underline. */
2348
3681
  DASH_LONG_HEAVY: "dashLongHeavy",
2349
- /** 일점쇄선(점·파선) */
3682
+ /** Dot Dash Underline. */
2350
3683
  DOT_DASH: "dotDash",
2351
- /** 굵은 일점쇄선 */
3684
+ /** Dot Dash Heavy Underline. */
2352
3685
  DOT_DASH_HEAVY: "dotDashHeavy",
2353
- /** 이점쇄선(점·점·파선) */
3686
+ /** Dot Dot Dash Underline. */
2354
3687
  DOT_DOT_DASH: "dotDotDash",
2355
- /** 굵은 이점쇄선 */
3688
+ /** Dot Dot Dash Heavy Underline. */
2356
3689
  DOT_DOT_DASH_HEAVY: "dotDotDashHeavy",
2357
- /** 물결선 */
3690
+ /** Wavy Underline. */
2358
3691
  WAVY: "wavy",
2359
- /** 굵은 물결선 */
3692
+ /** Wavy Heavy Underline. */
2360
3693
  WAVY_HEAVY: "wavyHeavy",
2361
- /** 이중 물결선 */
3694
+ /** Wavy Double Underline. */
2362
3695
  WAVY_DOUBLE: "wavyDbl"
2363
3696
  };
2364
3697
  Show2.Strike = {
2365
- /** 없음 */
3698
+ /** None. */
2366
3699
  NONE: "noStrike",
2367
- /** 한 줄 취소선 */
3700
+ /** Strikethrough. */
2368
3701
  SINGLE: "sngStrike",
2369
- /** 두 줄 취소선 */
3702
+ /** Double Strikethrough. */
2370
3703
  DOUBLE: "dblStrike"
2371
3704
  };
2372
3705
  Show2.AutoFitType = {
2373
- /** 자동 맞춤 안 함 */
3706
+ /** Do not Autofit. */
2374
3707
  NO_AUTOFIT: "noAutofit",
2375
- /** 넘치면 텍스트 크기 축소 */
3708
+ /** Shrink text on overflow. */
2376
3709
  NORMAL: "normAutofit",
2377
- /** 텍스트에 맞춰 도형 크기 조정 */
3710
+ /** Resize shape to fit text. */
2378
3711
  SHAPE_AUTOFIT: "spAutoFit"
2379
3712
  };
2380
- Show2.WriteMode = {
2381
- /** 가로쓰기 */
2382
- HORIZONTAL: "horz",
2383
- /** 세로쓰기(동아시아 글자는 세워서 표시) */
2384
- VERTICAL_EAST: "eaVert",
2385
- /** 세로쓰기(전체 90° 회전) */
2386
- VERTICAL: "vert",
2387
- /** 세로쓰기(270° 회전) */
2388
- VERTICAL_270: "vert270",
2389
- /** 워드아트 세로쓰기(오른쪽에서 왼쪽) */
2390
- WORDART_VERTICAL_RTL: "wordArtVertRtl",
2391
- /** 워드아트 세로쓰기(글자를 세로로 쌓음) */
2392
- WORDART_VERTICAL: "wordArtVert",
2393
- /** 몽골식 세로쓰기(위에서 아래, 줄은 왼쪽에서 오른쪽) */
2394
- MONGOLIAN_VERTICAL: "mongolianVert"
2395
- };
2396
3713
  Show2.CommentStyle = {
2397
- /** 분홍 */
3714
+ /** Pink. */
2398
3715
  PINK: "pink",
2399
- /** 주황 */
3716
+ /** Orange. */
2400
3717
  ORANGE: "orange",
2401
- /** 노랑 */
3718
+ /** Yellow. */
2402
3719
  YELLOW: "yellow",
2403
- /** 연두 */
3720
+ /** Light Green. */
2404
3721
  LIGHT_GREEN: "lightGreen",
2405
- /** 초록 */
3722
+ /** Green. */
2406
3723
  GREEN: "green",
2407
- /** 하늘 */
3724
+ /** Sky Blue. */
2408
3725
  SKY_BLUE: "skyBlue",
2409
- /** 파랑 */
3726
+ /** Blue. */
2410
3727
  BLUE: "blue",
2411
- /** 남색 */
3728
+ /** Navy. */
2412
3729
  NAVY: "navy",
2413
- /** 보라 */
3730
+ /** Purple. */
2414
3731
  PURPLE: "purple",
2415
- /** 회색 */
3732
+ /** Gray. */
2416
3733
  GRAY: "gray"
2417
3734
  };
2418
3735
  Show2.TextAlignV = {
2419
- /** 위쪽 */
3736
+ /** Top. */
2420
3737
  TOP: 0,
2421
- /** 세로 가운데 */
3738
+ /** Middle. */
2422
3739
  MIDDLE: 1,
2423
- /** 아래쪽 */
3740
+ /** Bottom. */
2424
3741
  BOTTOM: 2,
2425
- /** 위쪽 + 가로 가운데 */
3742
+ /** Top Centered. */
2426
3743
  TOP_CENTER: 3,
2427
- /** 세로 가운데 + 가로 가운데 */
3744
+ /** Middle Centered. */
2428
3745
  MIDDLE_CENTER: 4,
2429
- /** 아래쪽 + 가로 가운데 */
3746
+ /** Bottom Centered. */
2430
3747
  BOTTOM_CENTER: 5
2431
3748
  };
2432
3749
  Show2.NumberedType = {
@@ -2442,7 +3759,7 @@ var Show;
2442
3759
  NUMBER_WITH_ROUND_BRACKET: "arabicParenR",
2443
3760
  /** a. b. c. */
2444
3761
  LOWERCASE_ALPHABET: "alphaLcPeriod",
2445
- /** 一. 二. 三. (한자 숫자) */
3762
+ /** 一. 二. 三. (Chinese numerals). */
2446
3763
  CHINESE: "ea1JpnKorPeriod",
2447
3764
  /** i. ii. iii. */
2448
3765
  ROMAN_NUMERAL_LOWERCASE: "romanLcPeriod",
@@ -2466,347 +3783,307 @@ var Show;
2466
3783
  CHECK: "7"
2467
3784
  };
2468
3785
  Show2.HyperlinkType = {
2469
- /** 웹 주소 */
3786
+ /** Web address. */
2470
3787
  URL: "url",
2471
- /** 이메일 주소 */
3788
+ /** Email address. */
2472
3789
  EMAIL: "email",
2473
- /** 문서 안 슬라이드로 이동 */
3790
+ /** Go to a slide in the document. */
2474
3791
  SLIDE_JUMP: "slideJump",
2475
- /** 쇼 진행 이동(다음/이전 슬라이드 등) */
3792
+ /** Show jump (next/previous slide, etc.). */
2476
3793
  SHOW_JUMP: "showJump",
2477
- /** 파일 링크 */
3794
+ /** File link. */
2478
3795
  FILE: "file"
2479
3796
  };
2480
3797
  Show2.ShowJumpType = {
2481
- /** 첫 슬라이드로 */
3798
+ /** First Slide. */
2482
3799
  FIRST: "first",
2483
- /** 마지막 슬라이드로 */
3800
+ /** Last Slide. */
2484
3801
  LAST: "last",
2485
- /** 다음 슬라이드로 */
3802
+ /** Next Slide. */
2486
3803
  NEXT: "next",
2487
- /** 이전 슬라이드로 */
3804
+ /** Previous Slide. */
2488
3805
  PREV: "prev",
2489
- /** 쇼 마침 */
3806
+ /** End Show. */
2490
3807
  EXIT: "endShow",
2491
- /** 마지막으로 본 슬라이드로 */
3808
+ /** Last Slide Viewed. */
2492
3809
  LAST_VIEWED: "lastSlideViewed"
2493
3810
  };
2494
3811
  Show2.GradientType = {
2495
- /** 선형 */
3812
+ /** Linear. */
2496
3813
  LINEAR: "lin",
2497
- /** 원형(방사형) */
3814
+ /** Radial. */
2498
3815
  CIRCLE: "circle",
2499
- /** 사각형 */
3816
+ /** Rectangular. */
2500
3817
  RECT: "rect",
2501
- /** 도형 모양 따라 */
3818
+ /** Path. */
2502
3819
  SHAPE: "shape"
2503
3820
  };
2504
3821
  Show2.FillType = {
2505
- /** 단색 채우기 */
3822
+ /** Solid fill. */
2506
3823
  SOLID: "solidFill",
2507
- /** 그라데이션 채우기 */
3824
+ /** Gradient fill. */
2508
3825
  GRADIENT: "gradFill",
2509
- /** 채우기 없음 */
3826
+ /** No fill. */
2510
3827
  NONE: "noFill",
2511
- /** 그림 채우기 */
3828
+ /** Image fill. */
2512
3829
  IMAGE: "blipFill",
2513
- /** 패턴(무늬) 채우기 */
3830
+ /** Pattern fill. */
2514
3831
  PATTERN: "pattFill"
2515
3832
  };
2516
3833
  Show2.ImageFillMode = {
2517
- /** 늘이기 */
3834
+ /** Stretch. */
2518
3835
  STRETCH: "stretch",
2519
- /** 바둑판식 배열 */
3836
+ /** Tile. */
2520
3837
  TILE: "tile"
2521
3838
  };
2522
3839
  Show2.ImageTileFlip = {
2523
- /** 대칭 없음 */
3840
+ /** None. */
2524
3841
  NONE: "none",
2525
- /** 가로 대칭 */
3842
+ /** Horizontal. */
2526
3843
  HORIZONTAL: "x",
2527
- /** 세로 대칭 */
3844
+ /** Vertical. */
2528
3845
  VERTICAL: "y",
2529
- /** 가로·세로 대칭 */
3846
+ /** Both. */
2530
3847
  BOTH: "xy"
2531
3848
  };
2532
3849
  Show2.RectAlign = {
2533
- /** 왼쪽 위 */
3850
+ /** Top Left. */
2534
3851
  TOP_LEFT: "tl",
2535
- /** 위쪽 */
3852
+ /** Top. */
2536
3853
  TOP: "t",
2537
- /** 오른쪽 위 */
3854
+ /** Top Right. */
2538
3855
  TOP_RIGHT: "tr",
2539
- /** 왼쪽 */
3856
+ /** Left. */
2540
3857
  LEFT: "l",
2541
- /** 가운데 */
3858
+ /** Center. */
2542
3859
  CENTER: "ctr",
2543
- /** 오른쪽 */
3860
+ /** Right. */
2544
3861
  RIGHT: "r",
2545
- /** 왼쪽 아래 */
3862
+ /** Bottom Left. */
2546
3863
  BOTTOM_LEFT: "bl",
2547
- /** 아래쪽 */
3864
+ /** Bottom. */
2548
3865
  BOTTOM: "b",
2549
- /** 오른쪽 아래 */
3866
+ /** Bottom Right. */
2550
3867
  BOTTOM_RIGHT: "br"
2551
3868
  };
2552
3869
  Show2.PatternPreset = {
2553
- /** 5% 음영 */
3870
+ /** 5% */
2554
3871
  PERCENT_5: "pct5",
2555
- /** 10% 음영 */
3872
+ /** 10% */
2556
3873
  PERCENT_10: "pct10",
2557
- /** 20% 음영 */
3874
+ /** 20% */
2558
3875
  PERCENT_20: "pct20",
2559
- /** 25% 음영 */
3876
+ /** 25% */
2560
3877
  PERCENT_25: "pct25",
2561
- /** 30% 음영 */
3878
+ /** 30% */
2562
3879
  PERCENT_30: "pct30",
2563
- /** 40% 음영 */
3880
+ /** 40% */
2564
3881
  PERCENT_40: "pct40",
2565
- /** 50% 음영 */
3882
+ /** 50% */
2566
3883
  PERCENT_50: "pct50",
2567
- /** 60% 음영 */
3884
+ /** 60% */
2568
3885
  PERCENT_60: "pct60",
2569
- /** 70% 음영 */
3886
+ /** 70% */
2570
3887
  PERCENT_70: "pct70",
2571
- /** 75% 음영 */
3888
+ /** 75% */
2572
3889
  PERCENT_75: "pct75",
2573
- /** 80% 음영 */
3890
+ /** 80% */
2574
3891
  PERCENT_80: "pct80",
2575
- /** 90% 음영 */
3892
+ /** 90% */
2576
3893
  PERCENT_90: "pct90",
2577
- /** 밝은 하향 대각선 */
3894
+ /** Light Downward Diagonal. */
2578
3895
  LIGHT_DOWNWARD_DIAGONAL: "ltDnDiag",
2579
- /** 밝은 상향 대각선 */
3896
+ /** Light Upward Diagonal. */
2580
3897
  LIGHT_UPWARD_DIAGONAL: "ltUpDiag",
2581
- /** 어두운 하향 대각선 */
3898
+ /** Dark Downward Diagonal. */
2582
3899
  DARK_DOWNWARD_DIAGONAL: "dkDnDiag",
2583
- /** 어두운 상향 대각선 */
3900
+ /** Dark Upward Diagonal. */
2584
3901
  DARK_UPWARD_DIAGONAL: "dkUpDiag",
2585
- /** 넓은 하향 대각선 */
3902
+ /** Wide Downward Diagonal. */
2586
3903
  WIDE_DOWNWARD_DIAGONAL: "wdDnDiag",
2587
- /** 넓은 상향 대각선 */
3904
+ /** Wide Upward Diagonal. */
2588
3905
  WIDE_UPWARD_DIAGONAL: "wdUpDiag",
2589
- /** 밝은 세로선 */
3906
+ /** Light Vertical. */
2590
3907
  LIGHT_VERTICAL: "ltVert",
2591
- /** 밝은 가로선 */
3908
+ /** Light Horizontal. */
2592
3909
  LIGHT_HORIZONTAL: "ltHorz",
2593
- /** 좁은 세로선 */
3910
+ /** Narrow Vertical. */
2594
3911
  NARROW_VERTICAL: "narVert",
2595
- /** 좁은 가로선 */
3912
+ /** Narrow Horizontal. */
2596
3913
  NARROW_HORIZONTAL: "narHorz",
2597
- /** 어두운 세로선 */
3914
+ /** Dark Vertical. */
2598
3915
  DARK_VERTICAL: "dkVert",
2599
- /** 어두운 가로선 */
3916
+ /** Dark Horizontal. */
2600
3917
  DARK_HORIZONTAL: "dkHorz",
2601
- /** 파선 하향 대각선 */
3918
+ /** Dashed Downward Diagonal. */
2602
3919
  DASHED_DOWNWARD_DIAGONAL: "dashDnDiag",
2603
- /** 파선 상향 대각선 */
3920
+ /** Dashed Upward Diagonal. */
2604
3921
  DASHED_UPWARD_DIAGONAL: "dashUpDiag",
2605
- /** 파선 가로선 */
3922
+ /** Dashed Horizontal. */
2606
3923
  DASHED_HORIZONTAL: "dashHorz",
2607
- /** 파선 세로선 */
3924
+ /** Dashed Vertical. */
2608
3925
  DASHED_VERTICAL: "dashVert",
2609
- /** 작은 색종이 */
3926
+ /** Small Confetti. */
2610
3927
  SMALL_CONFETTI: "smConfetti",
2611
- /** 큰 색종이 */
3928
+ /** Large Confetti. */
2612
3929
  LARGE_CONFETTI: "lgConfetti",
2613
- /** 지그재그 */
3930
+ /** Zig Zag. */
2614
3931
  ZIGZAG: "zigZag",
2615
- /** 물결 */
3932
+ /** Wave. */
2616
3933
  WAVE: "wave",
2617
- /** 대각선 벽돌 */
3934
+ /** Diagonal Brick. */
2618
3935
  DIAGONAL_BRICK: "diagBrick",
2619
- /** 가로 벽돌 */
3936
+ /** Horizontal Brick. */
2620
3937
  HORIZONTAL_BRICK: "horzBrick",
2621
- /** 짜임 */
3938
+ /** Weave. */
2622
3939
  WEAVE: "weave",
2623
- /** 격자 무늬(체크) */
3940
+ /** Plaid. */
2624
3941
  PLAID: "plaid",
2625
- /** 잔디 */
3942
+ /** Divot. */
2626
3943
  DIVOT: "divot",
2627
- /** 점선 격자 */
3944
+ /** Dotted Grid. */
2628
3945
  DOTTED_GRID: "dotGrid",
2629
- /** 점선 마름모 */
3946
+ /** Dotted Diamond. */
2630
3947
  DOTTED_DIAMOND: "dotDmnd",
2631
- /** 지붕널 */
3948
+ /** Shingle. */
2632
3949
  SHINGLE: "shingle",
2633
- /** 격자 울타리 */
3950
+ /** Trellis. */
2634
3951
  TRELLIS: "trellis",
2635
- /** 구 모양 */
3952
+ /** Sphere. */
2636
3953
  SPHERE: "sphere",
2637
- /** 작은 격자 */
3954
+ /** Small Grid. */
2638
3955
  SMALL_GRID: "smGrid",
2639
- /** 큰 격자 */
3956
+ /** Large Grid. */
2640
3957
  LARGE_GRID: "lgGrid",
2641
- /** 작은 바둑판 */
3958
+ /** Small Checker Board. */
2642
3959
  SMALL_CHECKER_BOARD: "smCheck",
2643
- /** 큰 바둑판 */
3960
+ /** Large Checker Board. */
2644
3961
  LARGE_CHECKER_BOARD: "lgCheck",
2645
- /** 윤곽선 마름모 */
3962
+ /** Outlined Diamond. */
2646
3963
  OUTLINED_DIAMOND: "openDmnd",
2647
- /** 단색 마름모 */
3964
+ /** Solid Diamond. */
2648
3965
  SOLID_DIAMOND: "solidDmnd",
2649
- /** 가로선 */
3966
+ /** Horizontal. */
2650
3967
  HORIZONTAL: "horz",
2651
- /** 세로선 */
3968
+ /** Vertical. */
2652
3969
  VERTICAL: "vert",
2653
- /** 십자 */
3970
+ /** Cross. */
2654
3971
  CROSS: "cross",
2655
- /** 하향 대각선 */
3972
+ /** Downward Diagonal. */
2656
3973
  DOWNWARD_DIAGONAL: "dnDiag",
2657
- /** 상향 대각선 */
3974
+ /** Upward Diagonal. */
2658
3975
  UPWARD_DIAGONAL: "upDiag",
2659
- /** 대각선 십자 */
3976
+ /** Diagonal Cross. */
2660
3977
  DIAGONAL_CROSS: "diagCross"
2661
3978
  };
2662
3979
  Show2.AlignType = {
2663
- /** 왼쪽 맞춤 */
3980
+ /** Align Left. */
2664
3981
  LEFT: "left",
2665
- /** 가운데 맞춤(가로) */
3982
+ /** Align Center (horizontal). */
2666
3983
  CENTER: "center",
2667
- /** 오른쪽 맞춤 */
3984
+ /** Align Right. */
2668
3985
  RIGHT: "right",
2669
- /** 위쪽 맞춤 */
3986
+ /** Align Top. */
2670
3987
  TOP: "top",
2671
- /** 중간 맞춤(세로) */
3988
+ /** Align Middle (vertical). */
2672
3989
  MIDDLE: "middle",
2673
- /** 아래쪽 맞춤 */
3990
+ /** Align Bottom. */
2674
3991
  BOTTOM: "bottom"
2675
3992
  };
2676
3993
  Show2.DistributeDirection = {
2677
- /** 가로 균등 분배 */
3994
+ /** Distribute Horizontally. */
2678
3995
  HORIZONTAL: "horizontal",
2679
- /** 세로 균등 분배 */
3996
+ /** Distribute Vertically. */
2680
3997
  VERTICAL: "vertical"
2681
3998
  };
2682
3999
  Show2.GridPosition = {
2683
- /** 왼쪽 위 */
4000
+ /** Top Left. */
2684
4001
  TOP_LEFT: "top-left",
2685
- /** 위 가운데 */
4002
+ /** Top Center. */
2686
4003
  TOP_CENTER: "top-center",
2687
- /** 오른쪽 위 */
4004
+ /** Top Right. */
2688
4005
  TOP_RIGHT: "top-right",
2689
- /** 왼쪽 가운데 */
4006
+ /** Center Left. */
2690
4007
  CENTER_LEFT: "center-left",
2691
- /** 정중앙 */
4008
+ /** Center. */
2692
4009
  CENTER: "center",
2693
- /** 오른쪽 가운데 */
4010
+ /** Center Right. */
2694
4011
  CENTER_RIGHT: "center-right",
2695
- /** 왼쪽 아래 */
4012
+ /** Bottom Left. */
2696
4013
  BOTTOM_LEFT: "bottom-left",
2697
- /** 아래 가운데 */
4014
+ /** Bottom Center. */
2698
4015
  BOTTOM_CENTER: "bottom-center",
2699
- /** 오른쪽 아래 */
4016
+ /** Bottom Right. */
2700
4017
  BOTTOM_RIGHT: "bottom-right"
2701
4018
  };
2702
4019
  Show2.SizeCategory = {
2703
- /** 작게(슬라이드 면적의 약 10% 미만) */
4020
+ /** Small (10% or less of the slide area). */
2704
4021
  SMALL: "small",
2705
- /** 보통(약 10~40%) */
4022
+ /** Medium (more than 10% and up to 40%). */
2706
4023
  MEDIUM: "medium",
2707
- /** 크게(약 40% 이상) */
4024
+ /** Large (more than 40%). */
2708
4025
  LARGE: "large"
2709
4026
  };
2710
4027
  Show2.BorderPosition = {
2711
- /** 위쪽 테두리 */
4028
+ /** Top Border. */
2712
4029
  TOP: "top",
2713
- /** 아래쪽 테두리 */
4030
+ /** Bottom Border. */
2714
4031
  BOTTOM: "bottom",
2715
- /** 왼쪽 테두리 */
4032
+ /** Left Border. */
2716
4033
  LEFT: "left",
2717
- /** 오른쪽 테두리 */
4034
+ /** Right Border. */
2718
4035
  RIGHT: "right",
2719
- /** 하향 대각선(↘) */
4036
+ /** Diagonal Down Border (↘). */
2720
4037
  DIAGONAL_DOWN: "diagonalDown",
2721
- /** 상향 대각선(↗) */
4038
+ /** Diagonal Up Border (↗). */
2722
4039
  DIAGONAL_UP: "diagonalUp",
2723
- /** 모든 테두리 */
4040
+ /** All four sides (excluding diagonals; setBorderStyle only). */
2724
4041
  ALL: "all"
2725
4042
  };
2726
4043
  Show2.InsertPosition = {
2727
- /** 기준 행의 위 */
4044
+ /** Above the reference row. */
2728
4045
  ABOVE: 0,
2729
- /** 기준 행의 아래 */
4046
+ /** Below the reference row. */
2730
4047
  BELOW: 1,
2731
- /** 기준 열의 왼쪽 */
4048
+ /** To the left of the reference column. */
2732
4049
  LEFT: 2,
2733
- /** 기준 열의 오른쪽 */
4050
+ /** To the right of the reference column. */
2734
4051
  RIGHT: 3
2735
4052
  };
2736
4053
  Show2.TableStyleOption = {
2737
- /** 머리글 행 */
4054
+ /** Header Row. */
2738
4055
  FIRST_ROW: 0,
2739
- /** 요약 행(마지막 행) */
4056
+ /** Total Row (last row). */
2740
4057
  LAST_ROW: 1,
2741
- /** 줄무늬 행 */
4058
+ /** Banded Rows. */
2742
4059
  BAND_ROW: 2,
2743
- /** 첫째 열 */
4060
+ /** First Column. */
2744
4061
  FIRST_COL: 3,
2745
- /** 마지막 열 */
4062
+ /** Last Column. */
2746
4063
  LAST_COL: 4,
2747
- /** 줄무늬 열 */
4064
+ /** Banded Columns. */
2748
4065
  BAND_COL: 5
2749
4066
  };
2750
- Show2.TableStyleColor = {
2751
- /** 테마 텍스트 1 색 */
2752
- TX1: "tx1",
2753
- /** 테마 강조 1 색 */
2754
- ACCENT1: "accent1",
2755
- /** 테마 강조 2 색 */
2756
- ACCENT2: "accent2",
2757
- /** 테마 강조 3 색 */
2758
- ACCENT3: "accent3",
2759
- /** 테마 강조 4 색 */
2760
- ACCENT4: "accent4",
2761
- /** 테마 강조 5 색 */
2762
- ACCENT5: "accent5",
2763
- /** 테마 강조 6 색 */
2764
- ACCENT6: "accent6"
2765
- };
2766
- Show2.TableStyleType = {
2767
- /** 일반 스타일 1 */
2768
- GENERIC1: "generic1",
2769
- /** 일반 스타일 2 */
2770
- GENERIC2: "generic2",
2771
- /** 밝은 스타일 1 */
2772
- LIGHT1: "light1",
2773
- /** 밝은 스타일 2 */
2774
- LIGHT2: "light2",
2775
- /** 밝은 스타일 3 */
2776
- LIGHT3: "light3",
2777
- /** 중간 스타일 1 */
2778
- NORMAL1: "normal1",
2779
- /** 중간 스타일 2 */
2780
- NORMAL2: "normal2",
2781
- /** 중간 스타일 3 */
2782
- NORMAL3: "normal3",
2783
- /** 중간 스타일 4 */
2784
- NORMAL4: "normal4",
2785
- /** 어두운 스타일 1 */
2786
- DARK1: "dark1",
2787
- /** 어두운 스타일 2 */
2788
- DARK2: "dark2"
2789
- };
2790
4067
  Show2.ShapePresetFamily = {
2791
- /** 사각형 계열 — 기본·둥근/잘린 모서리 사각형 */
4068
+ /** Rectangles — basic, rounded-corner, and snipped-corner rectangles. */
2792
4069
  rectangle: ["rect", "roundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "snipRoundRect", "round1Rect", "round2SameRect", "round2DiagRect"],
2793
- /** 화살표 계열 — 블록 화살표·화살표 설명선 */
4070
+ /** Block Arrows — block arrows and arrow callouts. */
2794
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"],
2795
- /** 기본 도형 계열 — 원·다각형·괄호·기호 등 */
4072
+ /** Basic Shapes — ovals, polygons, brackets, symbols, and more. */
2796
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"],
2797
- /** 별 계열 — 별·폭발 */
4074
+ /** Stars — stars and explosions. */
2798
4075
  star: ["irregularSeal1", "irregularSeal2", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32"],
2799
- /** 현수막 계열 — 리본·두루마리·물결 */
4076
+ /** Banners — ribbons, scrolls, and waves. */
2800
4077
  banner: ["ribbon2", "ribbon", "ellipseRibbon2", "ellipseRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave"],
2801
- /** 설명선 계열 — 말풍선·선 설명선 */
4078
+ /** Callouts — speech bubbles and line callouts. */
2802
4079
  callout: ["wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3"],
2803
- /** 순서도 계열 — 프로세스·판단·저장소 등 */
4080
+ /** Flowchart — process, decision, storage, and more. */
2804
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"],
2805
- /** 실행 단추 계열 — 앞으로/뒤로·홈·도움말 등 */
4082
+ /** Action Buttons — back/forward, home, help, and more. */
2806
4083
  actionButton: ["actionButtonBackPrevious", "actionButtonForwardNext", "actionButtonBeginning", "actionButtonEnd", "actionButtonHome", "actionButtonInformation", "actionButtonReturn", "actionButtonMovie", "actionButtonDocument", "actionButtonSound", "actionButtonHelp", "actionButtonBlank"],
2807
- /** 수식 기호 계열 — 더하기·빼기·곱하기·나누기·등호·부등호 */
4084
+ /** Equation Shapes — plus, minus, multiply, divide, equal, and not equal. */
2808
4085
  equation: ["mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual"],
2809
- /** 선 계열 — 직선·꺾인 연결선·곡선 연결선 */
4086
+ /** Lines — line, elbow connector, and curved connector. */
2810
4087
  line: ["line", "bentConnector3", "curvedConnector3"]
2811
4088
  };
2812
4089
  })(Show || (Show = {}));
@@ -2819,6 +4096,7 @@ export {
2819
4096
  ChartGridLineType,
2820
4097
  ChartLegendPosition,
2821
4098
  ChartType,
4099
+ DEFAULT_TOOLKIT_RULES,
2822
4100
  LineDash,
2823
4101
  MODULE_APP_ID,
2824
4102
  Office,
@@ -2827,18 +4105,36 @@ export {
2827
4105
  SDKError,
2828
4106
  SDK_ERROR_CODE,
2829
4107
  SDK_SYSTEM_PROMPT_METHOD,
4108
+ SDK_TOOL_API_REFERENCE,
2830
4109
  SDK_TOOL_EXECUTE_METHOD,
4110
+ SDK_TOOL_EXECUTE_SCRIPT,
2831
4111
  SDK_TOOL_LIST_METHOD,
2832
4112
  SDK_VERSION,
2833
4113
  ShapePreset,
2834
4114
  ShapeZOrder,
2835
4115
  Show,
4116
+ TOOLKIT_PRESETS,
4117
+ TOOLKIT_PROVIDERS,
4118
+ TOOL_FAILURE_CODES,
2836
4119
  Word,
4120
+ classifyModuleCode,
4121
+ composeSystemPrompt,
2837
4122
  createOffice,
4123
+ createOfficeToolkit,
4124
+ deriveFrameworkOrigin,
2838
4125
  getSystemPrompt,
2839
4126
  getToolSchemas,
2840
4127
  getTools,
4128
+ isToolResult,
4129
+ isToolkitPreset,
4130
+ presetIncludes,
2841
4131
  registerTools,
2842
- waitForOfficeReady
4132
+ toProviderTool,
4133
+ toolResultFromError,
4134
+ toolResultFromRaw,
4135
+ toolResultToMcp,
4136
+ waitForOfficeReady,
4137
+ withExecute,
4138
+ withMcpExecute
2843
4139
  };
2844
4140
  //# sourceMappingURL=index.js.map