@itwin/editor-frontend 3.0.0-extension.1 → 3.0.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +108 -1
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/EditTool.d.ts.map +1 -1
  4. package/lib/cjs/EditTool.js +18 -7
  5. package/lib/cjs/EditTool.js.map +1 -1
  6. package/lib/cjs/ElementGeometryTool.d.ts +64 -80
  7. package/lib/cjs/ElementGeometryTool.d.ts.map +1 -1
  8. package/lib/cjs/ElementGeometryTool.js +333 -295
  9. package/lib/cjs/ElementGeometryTool.js.map +1 -1
  10. package/lib/cjs/ProjectLocation/ProjectGeolocation.d.ts +10 -17
  11. package/lib/cjs/ProjectLocation/ProjectGeolocation.d.ts.map +1 -1
  12. package/lib/cjs/ProjectLocation/ProjectGeolocation.js +54 -94
  13. package/lib/cjs/ProjectLocation/ProjectGeolocation.js.map +1 -1
  14. package/lib/cjs/SketchTools.d.ts +21 -9
  15. package/lib/cjs/SketchTools.d.ts.map +1 -1
  16. package/lib/cjs/SketchTools.js +197 -204
  17. package/lib/cjs/SketchTools.js.map +1 -1
  18. package/lib/cjs/SolidModelingTools.d.ts +381 -0
  19. package/lib/cjs/SolidModelingTools.d.ts.map +1 -0
  20. package/lib/cjs/SolidModelingTools.js +1460 -0
  21. package/lib/cjs/SolidModelingTools.js.map +1 -0
  22. package/lib/cjs/TransformElementsTool.d.ts.map +1 -1
  23. package/lib/cjs/TransformElementsTool.js +8 -28
  24. package/lib/cjs/TransformElementsTool.js.map +1 -1
  25. package/lib/cjs/UndoRedoTool.js +1 -1
  26. package/lib/cjs/UndoRedoTool.js.map +1 -1
  27. package/lib/cjs/editor-frontend.d.ts +1 -0
  28. package/lib/cjs/editor-frontend.d.ts.map +1 -1
  29. package/lib/cjs/editor-frontend.js +1 -0
  30. package/lib/cjs/editor-frontend.js.map +1 -1
  31. package/lib/esm/EditTool.d.ts.map +1 -1
  32. package/lib/esm/EditTool.js +14 -3
  33. package/lib/esm/EditTool.js.map +1 -1
  34. package/lib/esm/ElementGeometryTool.d.ts +64 -80
  35. package/lib/esm/ElementGeometryTool.d.ts.map +1 -1
  36. package/lib/esm/ElementGeometryTool.js +334 -290
  37. package/lib/esm/ElementGeometryTool.js.map +1 -1
  38. package/lib/esm/ProjectLocation/ProjectGeolocation.d.ts +10 -17
  39. package/lib/esm/ProjectLocation/ProjectGeolocation.d.ts.map +1 -1
  40. package/lib/esm/ProjectLocation/ProjectGeolocation.js +54 -94
  41. package/lib/esm/ProjectLocation/ProjectGeolocation.js.map +1 -1
  42. package/lib/esm/SketchTools.d.ts +21 -9
  43. package/lib/esm/SketchTools.d.ts.map +1 -1
  44. package/lib/esm/SketchTools.js +198 -205
  45. package/lib/esm/SketchTools.js.map +1 -1
  46. package/lib/esm/SolidModelingTools.d.ts +381 -0
  47. package/lib/esm/SolidModelingTools.d.ts.map +1 -0
  48. package/lib/esm/SolidModelingTools.js +1435 -0
  49. package/lib/esm/SolidModelingTools.js.map +1 -0
  50. package/lib/esm/TransformElementsTool.d.ts.map +1 -1
  51. package/lib/esm/TransformElementsTool.js +8 -28
  52. package/lib/esm/TransformElementsTool.js.map +1 -1
  53. package/lib/esm/UndoRedoTool.js +1 -1
  54. package/lib/esm/UndoRedoTool.js.map +1 -1
  55. package/lib/esm/editor-frontend.d.ts +1 -0
  56. package/lib/esm/editor-frontend.d.ts.map +1 -1
  57. package/lib/esm/editor-frontend.js +1 -0
  58. package/lib/esm/editor-frontend.js.map +1 -1
  59. package/lib/public/locales/en/Editor.json +141 -3
  60. package/package.json +16 -24
package/CHANGELOG.md CHANGED
@@ -1,6 +1,113 @@
1
1
  # Change Log - @itwin/editor-frontend
2
2
 
3
- This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Jan 2022 14:00:52 GMT and should not be manually modified.
4
+
5
+ ## 3.0.0
6
+ Mon, 24 Jan 2022 14:00:52 GMT
7
+
8
+ ### Updates
9
+
10
+ - The Cartographic creation API now takes an interface as an argument with named properties. This will avoid callers mixing up the order of longitude, latitude, and height.
11
+ - fix code for breaking change to .query() method
12
+ - Create interpolation curve for through points construction.
13
+ - InterpolationCurve3d support
14
+ - Upgrade target to ES2019 and deliver both a CommonJs and ESModule version of package
15
+ - Dynamics should honor appearance overrides appliled to original element. Added blend tools.
16
+ - Updated to Electron 14
17
+ - Added ability to convert iModel coordinates to or from any Geographic CRS
18
+ - Support multi-select of sub-entities.
19
+ - Provide default tool assistance for face/edge/vertex selection phase.
20
+ - rename to @itwin/editor-frontend
21
+ - Allow sweep/spin of open path to create a sheet.
22
+ - Don't try to locate sub-entity under cursor until previous request completes.
23
+ - Create bcurve from control points now supports closure.
24
+ - Basic solid modeling operations are now covered.
25
+ - Improve error messages for "editor project location save".
26
+ - Don't hide original elements until we get a result. Cache filterHit status.
27
+ - Replace usage of I18N with generic Localization interface.
28
+ - remove ClientRequestContext.current
29
+ - Update to use new tool setting helper methods.
30
+ - New solid modeling ipc interface
31
+ - More solid modeling functionality.
32
+ - Add tool settings for solid modeling tools.
33
+ - New tools to sweep/spin faces and delete faces/imprinted edges.
34
+ - tool.run and tool.parseAndRun are now async methods
35
+ - Added tool setting helper methods.
36
+
37
+ ## 2.19.28
38
+ Wed, 12 Jan 2022 14:52:38 GMT
39
+
40
+ _Version update only_
41
+
42
+ ## 2.19.27
43
+ Wed, 05 Jan 2022 20:07:20 GMT
44
+
45
+ _Version update only_
46
+
47
+ ## 2.19.26
48
+ Wed, 08 Dec 2021 20:54:52 GMT
49
+
50
+ _Version update only_
51
+
52
+ ## 2.19.25
53
+ Fri, 03 Dec 2021 20:05:49 GMT
54
+
55
+ _Version update only_
56
+
57
+ ## 2.19.24
58
+ Mon, 29 Nov 2021 18:44:31 GMT
59
+
60
+ _Version update only_
61
+
62
+ ## 2.19.23
63
+ Mon, 22 Nov 2021 20:41:39 GMT
64
+
65
+ _Version update only_
66
+
67
+ ## 2.19.22
68
+ Wed, 17 Nov 2021 01:23:26 GMT
69
+
70
+ _Version update only_
71
+
72
+ ## 2.19.21
73
+ Wed, 10 Nov 2021 10:58:24 GMT
74
+
75
+ _Version update only_
76
+
77
+ ## 2.19.20
78
+ Fri, 29 Oct 2021 16:14:22 GMT
79
+
80
+ _Version update only_
81
+
82
+ ## 2.19.19
83
+ Mon, 25 Oct 2021 16:16:25 GMT
84
+
85
+ _Version update only_
86
+
87
+ ## 2.19.18
88
+ Thu, 21 Oct 2021 20:59:44 GMT
89
+
90
+ _Version update only_
91
+
92
+ ## 2.19.17
93
+ Thu, 14 Oct 2021 21:19:43 GMT
94
+
95
+ _Version update only_
96
+
97
+ ## 2.19.16
98
+ Mon, 11 Oct 2021 17:37:46 GMT
99
+
100
+ _Version update only_
101
+
102
+ ## 2.19.15
103
+ Fri, 08 Oct 2021 16:44:23 GMT
104
+
105
+ _Version update only_
106
+
107
+ ## 2.19.14
108
+ Fri, 01 Oct 2021 13:07:03 GMT
109
+
110
+ _Version update only_
4
111
 
5
112
  ## 2.19.13
6
113
  Tue, 21 Sep 2021 21:06:40 GMT
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"EditTool.d.ts","sourceRoot":"","sources":["../../src/EditTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AAYH,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,IAAI,GA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E,IAAI,GAAG,SAAS,CAAC;IAClD,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACvC,4DAA4D;IAC5D,0BAA0B,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC/C;AAED,uGAAuG;AACvG,qBAAa,SAAS;IACpB,OAAc,SAAS,SAAY;IACnC,OAAc,KAAK,SAAmB;IACtC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAS;WAEhB,YAAY,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;WAIjF,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAIjF,gBAAgB;WACF,SAAS,CAAC,MAAM,EAAE,MAAM;IAEtC;;;;;;OAMG;WACiB,UAAU,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CA2FvE"}
@@ -11,7 +11,7 @@ exports.EditTools = void 0;
11
11
  const editor_common_1 = require("@itwin/editor-common");
12
12
  const core_frontend_1 = require("@itwin/core-frontend");
13
13
  const DeleteElementsTool_1 = require("./DeleteElementsTool");
14
- const ElementGeometryTool_1 = require("./ElementGeometryTool");
14
+ const SolidModelingTools_1 = require("./SolidModelingTools");
15
15
  const ProjectExtentsDecoration_1 = require("./ProjectLocation/ProjectExtentsDecoration");
16
16
  const ProjectGeolocation_1 = require("./ProjectLocation/ProjectGeolocation");
17
17
  const SketchTools_1 = require("./SketchTools");
@@ -89,12 +89,23 @@ class EditTools {
89
89
  }
90
90
  if (registerAllTools || (options === null || options === void 0 ? void 0 : options.registerSolidModelingTools)) {
91
91
  const tools = [
92
- ElementGeometryTool_1.OffsetFacesTool,
93
- ElementGeometryTool_1.HollowFacesTool,
94
- ElementGeometryTool_1.UniteSolidElementsTool,
95
- ElementGeometryTool_1.SubtractSolidElementsTool,
96
- ElementGeometryTool_1.IntersectSolidElementsTool,
97
- ElementGeometryTool_1.SewSheetElementsTool,
92
+ SolidModelingTools_1.UniteSolidElementsTool,
93
+ SolidModelingTools_1.SubtractSolidElementsTool,
94
+ SolidModelingTools_1.IntersectSolidElementsTool,
95
+ SolidModelingTools_1.SewSheetElementsTool,
96
+ SolidModelingTools_1.ThickenSheetElementsTool,
97
+ SolidModelingTools_1.CutSolidElementsTool,
98
+ SolidModelingTools_1.EmbossSolidElementsTool,
99
+ SolidModelingTools_1.ImprintSolidElementsTool,
100
+ SolidModelingTools_1.SweepAlongPathTool,
101
+ SolidModelingTools_1.LoftProfilesTool,
102
+ SolidModelingTools_1.OffsetFacesTool,
103
+ SolidModelingTools_1.HollowFacesTool,
104
+ SolidModelingTools_1.SweepFacesTool,
105
+ SolidModelingTools_1.SpinFacesTool,
106
+ SolidModelingTools_1.RoundEdgesTool,
107
+ SolidModelingTools_1.ChamferEdgesTool,
108
+ SolidModelingTools_1.DeleteSubEntitiesTool,
98
109
  ];
99
110
  for (const tool of tools)
100
111
  tool.register(this.namespace);
@@ -1 +1 @@
1
- {"version":3,"file":"EditTool.js","sourceRoot":"","sources":["../../src/EditTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAqD;AACrD,wDAAyD;AACzD,6DAA0D;AAC1D,+DAA8K;AAC9K,yFAAkK;AAClK,6EAA4I;AAC5I,+CAAgJ;AAChJ,mEAA+E;AAC/E,iDAAiE;AAkBjE,uGAAuG;AACvG,MAAa,SAAS;IAKb,MAAM,CAAC,KAAK,CAAC,YAAY,CAAI,SAAiB,EAAE,SAAiB,EAAE,GAAG,IAAW;QACtF,OAAO,sBAAM,CAAC,cAAc,CAAC,6BAAa,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAe,CAAC;IAC3G,CAAC;IAEM,MAAM,CAAC,KAAK,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gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,IAAI,gBAAgB,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,8BAA8B,CAAA,EAAE;YAC/D,MAAM,KAAK,GAAG;gBACZ,uCAAkB;gBAClB,wCAAgB;gBAChB,0CAAkB;aACnB,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,IAAI,gBAAgB,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,CAAA,EAAE;YACpD,MAAM,KAAK,GAAG;gBACZ,2BAAa;gBACb,8BAAgB;gBAChB,8BAAgB;gBAChB,+BAAiB;gBACjB,kCAAoB;gBACpB,iCAAmB;aACpB,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,IAAI,gBAAgB,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B,CAAA,EAAE;YAC3D,MAAM,KAAK,GAAG;gBACZ,qCAAe;gBACf,qCAAe;gBACf,4CAAsB;gBACtB,+CAAyB;gBACzB,gDAA0B;gBAC1B,0CAAoB;aACrB,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,OAAO,gBAAgB,CAAC;IAC1B,CAAC;;AAtGH,8BAuGC;AAtGe,mBAAS,GAAG,QAAQ,CAAC;AACrB,eAAK,GAAG,eAAe,CAAC;AACvB,sBAAY,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { editorChannel } from \"@itwin/editor-common\";\r\nimport { IModelApp, IpcApp } from \"@itwin/core-frontend\";\r\nimport { DeleteElementsTool } from \"./DeleteElementsTool\";\r\nimport { HollowFacesTool, IntersectSolidElementsTool, OffsetFacesTool, SewSheetElementsTool, SubtractSolidElementsTool, UniteSolidElementsTool } from \"./ElementGeometryTool\";\r\nimport { ProjectLocationCancelTool, ProjectLocationHideTool, ProjectLocationSaveTool, ProjectLocationShowTool } from \"./ProjectLocation/ProjectExtentsDecoration\";\r\nimport { ProjectGeolocationMoveTool, ProjectGeolocationNorthTool, ProjectGeolocationPointTool } from \"./ProjectLocation/ProjectGeolocation\";\r\nimport { CreateArcTool, CreateBCurveTool, CreateCircleTool, CreateEllipseTool, CreateLineStringTool, CreateRectangleTool } from \"./SketchTools\";\r\nimport { MoveElementsTool, RotateElementsTool } from \"./TransformElementsTool\";\r\nimport { RedoTool, UndoAllTool, UndoTool } from \"./UndoRedoTool\";\r\n\r\n/** @alpha Options for [[EditTools.initialize]]. */\r\nexport interface EditorOptions {\r\n /** If true, all tools will be registered. */\r\n registerAllTools?: true | undefined;\r\n /** If true, tools for undo/redo will be registered. */\r\n registerUndoRedoTools?: true | undefined;\r\n /** If true, tools for updating the project extents and geolocation will be registered. */\r\n registerProjectLocationTools?: true | undefined;\r\n /** If true, tools for basic manipulation will be registered. */\r\n registerBasicManipulationTools?: true | undefined;\r\n /** If true, tools for sketching will be registered. */\r\n registerSketchTools?: true | undefined;\r\n /** If true, tools for solid modeling will be registered. */\r\n registerSolidModelingTools?: true | undefined;\r\n}\r\n\r\n/** @alpha functions to support PrimitiveTool and InputCollector sub-classes with using EditCommand. */\r\nexport class EditTools {\r\n public static namespace = \"Editor\";\r\n public static tools = \"Editor:tools.\";\r\n private static _initialized = false;\r\n\r\n public static async startCommand<T>(commandId: string, iModelKey: string, ...args: any[]): Promise<T> {\r\n return IpcApp.callIpcChannel(editorChannel, \"startCommand\", commandId, iModelKey, ...args) as Promise<T>;\r\n }\r\n\r\n public static async callCommand(methodName: string, ...args: any[]): Promise<any> {\r\n return IpcApp.callIpcChannel(editorChannel, \"callMethod\", methodName, ...args);\r\n }\r\n\r\n /** @internal */\r\n public static translate(prompt: string) { return IModelApp.localization.getLocalizedString(this.tools + prompt); }\r\n\r\n /** Call this before using the package (e.g., before attempting to use any of its tools.)\r\n * To initialize when starting up your app:\r\n * ```ts\r\n * IModelApp.startup();\r\n * await EditorTools.initialize();\r\n * ```\r\n */\r\n public static async initialize(options?: EditorOptions): Promise<void> {\r\n if (this._initialized)\r\n return;\r\n\r\n // NOTE: We should clear the active command whenever a new PrimitiveTool is installed.\r\n // As tool run/install isn't currently async ToolAdmin.activeToolChanged can't be used at this time.\r\n // The active command will be cleared whenever another edit tool calls startCommand.\r\n this._initialized = true;\r\n\r\n const namespacePromise = IModelApp.localization.registerNamespace(this.namespace);\r\n const registerAllTools = options?.registerAllTools;\r\n\r\n // Register requested tools...\r\n if (registerAllTools || options?.registerUndoRedoTools) {\r\n const tools = [\r\n UndoAllTool,\r\n UndoTool,\r\n RedoTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerProjectLocationTools) {\r\n const tools = [\r\n ProjectLocationShowTool,\r\n ProjectLocationHideTool,\r\n ProjectLocationCancelTool,\r\n ProjectLocationSaveTool,\r\n ProjectGeolocationMoveTool,\r\n ProjectGeolocationPointTool,\r\n ProjectGeolocationNorthTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerBasicManipulationTools) {\r\n const tools = [\r\n DeleteElementsTool,\r\n MoveElementsTool,\r\n RotateElementsTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerSketchTools) {\r\n const tools = [\r\n CreateArcTool,\r\n CreateBCurveTool,\r\n CreateCircleTool,\r\n CreateEllipseTool,\r\n CreateLineStringTool,\r\n CreateRectangleTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerSolidModelingTools) {\r\n const tools = [\r\n OffsetFacesTool,\r\n HollowFacesTool,\r\n UniteSolidElementsTool,\r\n SubtractSolidElementsTool,\r\n IntersectSolidElementsTool,\r\n SewSheetElementsTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n return namespacePromise;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"EditTool.js","sourceRoot":"","sources":["../../src/EditTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAqD;AACrD,wDAAyD;AACzD,6DAA0D;AAC1D,6DAA8Y;AAC9Y,yFAAkK;AAClK,6EAA4I;AAC5I,+CAAgJ;AAChJ,mEAA+E;AAC/E,iDAAiE;AAkBjE,uGAAuG;AACvG,MAAa,SAAS;IAKb,MAAM,CAAC,KAAK,CAAC,YAAY,CAAI,SAAiB,EAAE,SAAiB,EAAE,GAAG,IAAW;QACtF,OAAO,sBAAM,CAAC,cAAc,CAAC,6BAAa,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAe,CAAC;IAC3G,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,GAAG,IAAW;QAChE,OAAO,sBAAM,CAAC,cAAc,CAAC,6BAAa,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;IACjF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,SAAS,CAAC,MAAc,IAAI,OAAO,yBAAS,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAElH;;;;;;OAMG;IACI,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AC;SACjC;QAED,IAAI,gBAAgB,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,CAAA,EAAE;YACpD,MAAM,KAAK,GAAG;gBACZ,2BAAa;gBACb,8BAAgB;gBAChB,8BAAgB;gBAChB,+BAAiB;gBACjB,kCAAoB;gBACpB,iCAAmB;aACpB,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,IAAI,gBAAgB,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B,CAAA,EAAE;YAC3D,MAAM,KAAK,GAAG;gBACZ,2CAAsB;gBACtB,8CAAyB;gBACzB,+CAA0B;gBAC1B,yCAAoB;gBACpB,6CAAwB;gBACxB,yCAAoB;gBACpB,4CAAuB;gBACvB,6CAAwB;gBACxB,uCAAkB;gBAClB,qCAAgB;gBAChB,oCAAe;gBACf,oCAAe;gBACf,mCAAc;gBACd,kCAAa;gBACb,mCAAc;gBACd,qCAAgB;gBAChB,0CAAqB;aACtB,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,OAAO,gBAAgB,CAAC;IAC1B,CAAC;;AAjHH,8BAkHC;AAjHe,mBAAS,GAAG,QAAQ,CAAC;AACrB,eAAK,GAAG,eAAe,CAAC;AACvB,sBAAY,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { editorChannel } from \"@itwin/editor-common\";\r\nimport { IModelApp, IpcApp } from \"@itwin/core-frontend\";\r\nimport { DeleteElementsTool } from \"./DeleteElementsTool\";\r\nimport { ChamferEdgesTool, CutSolidElementsTool, DeleteSubEntitiesTool, EmbossSolidElementsTool, HollowFacesTool, ImprintSolidElementsTool, IntersectSolidElementsTool, LoftProfilesTool, OffsetFacesTool, RoundEdgesTool, SewSheetElementsTool, SpinFacesTool, SubtractSolidElementsTool, SweepAlongPathTool, SweepFacesTool, ThickenSheetElementsTool, UniteSolidElementsTool } from \"./SolidModelingTools\";\r\nimport { ProjectLocationCancelTool, ProjectLocationHideTool, ProjectLocationSaveTool, ProjectLocationShowTool } from \"./ProjectLocation/ProjectExtentsDecoration\";\r\nimport { ProjectGeolocationMoveTool, ProjectGeolocationNorthTool, ProjectGeolocationPointTool } from \"./ProjectLocation/ProjectGeolocation\";\r\nimport { CreateArcTool, CreateBCurveTool, CreateCircleTool, CreateEllipseTool, CreateLineStringTool, CreateRectangleTool } from \"./SketchTools\";\r\nimport { MoveElementsTool, RotateElementsTool } from \"./TransformElementsTool\";\r\nimport { RedoTool, UndoAllTool, UndoTool } from \"./UndoRedoTool\";\r\n\r\n/** @alpha Options for [[EditTools.initialize]]. */\r\nexport interface EditorOptions {\r\n /** If true, all tools will be registered. */\r\n registerAllTools?: true | undefined;\r\n /** If true, tools for undo/redo will be registered. */\r\n registerUndoRedoTools?: true | undefined;\r\n /** If true, tools for updating the project extents and geolocation will be registered. */\r\n registerProjectLocationTools?: true | undefined;\r\n /** If true, tools for basic manipulation will be registered. */\r\n registerBasicManipulationTools?: true | undefined;\r\n /** If true, tools for sketching will be registered. */\r\n registerSketchTools?: true | undefined;\r\n /** If true, tools for solid modeling will be registered. */\r\n registerSolidModelingTools?: true | undefined;\r\n}\r\n\r\n/** @alpha functions to support PrimitiveTool and InputCollector sub-classes with using EditCommand. */\r\nexport class EditTools {\r\n public static namespace = \"Editor\";\r\n public static tools = \"Editor:tools.\";\r\n private static _initialized = false;\r\n\r\n public static async startCommand<T>(commandId: string, iModelKey: string, ...args: any[]): Promise<T> {\r\n return IpcApp.callIpcChannel(editorChannel, \"startCommand\", commandId, iModelKey, ...args) as Promise<T>;\r\n }\r\n\r\n public static async callCommand(methodName: string, ...args: any[]): Promise<any> {\r\n return IpcApp.callIpcChannel(editorChannel, \"callMethod\", methodName, ...args);\r\n }\r\n\r\n /** @internal */\r\n public static translate(prompt: string) { return IModelApp.localization.getLocalizedString(this.tools + prompt); }\r\n\r\n /** Call this before using the package (e.g., before attempting to use any of its tools.)\r\n * To initialize when starting up your app:\r\n * ```ts\r\n * IModelApp.startup();\r\n * await EditorTools.initialize();\r\n * ```\r\n */\r\n public static async initialize(options?: EditorOptions): Promise<void> {\r\n if (this._initialized)\r\n return;\r\n\r\n // NOTE: We should clear the active command whenever a new PrimitiveTool is installed.\r\n // As tool run/install isn't currently async ToolAdmin.activeToolChanged can't be used at this time.\r\n // The active command will be cleared whenever another edit tool calls startCommand.\r\n this._initialized = true;\r\n\r\n const namespacePromise = IModelApp.localization.registerNamespace(this.namespace);\r\n const registerAllTools = options?.registerAllTools;\r\n\r\n // Register requested tools...\r\n if (registerAllTools || options?.registerUndoRedoTools) {\r\n const tools = [\r\n UndoAllTool,\r\n UndoTool,\r\n RedoTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerProjectLocationTools) {\r\n const tools = [\r\n ProjectLocationShowTool,\r\n ProjectLocationHideTool,\r\n ProjectLocationCancelTool,\r\n ProjectLocationSaveTool,\r\n ProjectGeolocationMoveTool,\r\n ProjectGeolocationPointTool,\r\n ProjectGeolocationNorthTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerBasicManipulationTools) {\r\n const tools = [\r\n DeleteElementsTool,\r\n MoveElementsTool,\r\n RotateElementsTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerSketchTools) {\r\n const tools = [\r\n CreateArcTool,\r\n CreateBCurveTool,\r\n CreateCircleTool,\r\n CreateEllipseTool,\r\n CreateLineStringTool,\r\n CreateRectangleTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n if (registerAllTools || options?.registerSolidModelingTools) {\r\n const tools = [\r\n UniteSolidElementsTool,\r\n SubtractSolidElementsTool,\r\n IntersectSolidElementsTool,\r\n SewSheetElementsTool,\r\n ThickenSheetElementsTool,\r\n CutSolidElementsTool,\r\n EmbossSolidElementsTool,\r\n ImprintSolidElementsTool,\r\n SweepAlongPathTool,\r\n LoftProfilesTool,\r\n OffsetFacesTool,\r\n HollowFacesTool,\r\n SweepFacesTool,\r\n SpinFacesTool,\r\n RoundEdgesTool,\r\n ChamferEdgesTool,\r\n DeleteSubEntitiesTool,\r\n ];\r\n\r\n for (const tool of tools)\r\n tool.register(this.namespace);\r\n }\r\n\r\n return namespacePromise;\r\n }\r\n}\r\n"]}
@@ -2,10 +2,10 @@
2
2
  * @module Editing
3
3
  */
4
4
  import { Id64Arg, Id64String } from "@itwin/core-bentley";
5
- import { BooleanMode, ElementGeometryCacheFilter, ElementGeometryResultProps, SolidModelingCommandIpc, SubEntityFilter, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType } from "@itwin/editor-common";
5
+ import { BRepEntityType, ElementGeometryCacheFilter, ElementGeometryResultProps, SolidModelingCommandIpc, SubEntityFilter, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType } from "@itwin/editor-common";
6
6
  import { FeatureAppearance } from "@itwin/core-common";
7
7
  import { Point3d, Ray3d, Transform } from "@itwin/core-geometry";
8
- import { BeButtonEvent, DecorateContext, DynamicsContext, ElementSetTool, EventHandled, FeatureOverrideProvider, FeatureSymbology, GraphicBranchOptions, GraphicType, HitDetail, IModelConnection, LocateResponse, RenderGraphicOwner, SelectionMethod, SelectionSet, Viewport } from "@itwin/core-frontend";
8
+ import { BeButtonEvent, BeModifierKeys, CoordinateLockOverrides, DecorateContext, DynamicsContext, ElementSetTool, EventHandled, FeatureOverrideProvider, FeatureSymbology, GraphicBranchOptions, GraphicType, HitDetail, IModelConnection, LocateResponse, RenderGraphicOwner, SelectionMethod, SelectionSet, ToolAssistanceInstruction, Viewport } from "@itwin/core-frontend";
9
9
  /** @alpha */
10
10
  export declare class ElementGeometryGraphicsProvider {
11
11
  readonly iModel: IModelConnection;
@@ -23,10 +23,19 @@ export declare class ElementGeometryGraphicsProvider {
23
23
  addDecoration(context: DecorateContext, type: GraphicType, transform?: Transform, opts?: GraphicBranchOptions): void;
24
24
  }
25
25
  /** @alpha */
26
+ export declare function isSameSubEntity(a: SubEntityProps, b: SubEntityProps): boolean;
27
+ /** @alpha */
26
28
  export declare class SubEntityData {
27
- info?: SubEntityProps;
28
- geom?: SubEntityGeometryProps;
29
- protected _graphicsProvider?: ElementGeometryGraphicsProvider;
29
+ toolData?: any;
30
+ chordTolerance?: number;
31
+ private _props;
32
+ private _geometry?;
33
+ private _graphicsProvider?;
34
+ constructor(props: SubEntityProps);
35
+ get props(): SubEntityProps;
36
+ set props(value: SubEntityProps);
37
+ get geometry(): SubEntityGeometryProps | undefined;
38
+ set geometry(value: SubEntityGeometryProps | undefined);
30
39
  isSame(other: SubEntityProps): boolean;
31
40
  getAppearance(vp: Viewport, accepted: boolean): FeatureAppearance;
32
41
  createGraphic(iModel: IModelConnection): Promise<boolean>;
@@ -41,15 +50,19 @@ export declare abstract class ElementGeometryCacheTool extends ElementSetTool im
41
50
  protected _graphicsProvider?: ElementGeometryGraphicsProvider;
42
51
  protected _graphicsPending?: true;
43
52
  protected _firstResult: boolean;
53
+ protected _agendaAppearanceDefault?: FeatureAppearance;
54
+ protected _agendaAppearanceDynamic?: FeatureAppearance;
44
55
  protected allowView(vp: Viewport): boolean;
45
56
  isCompatibleViewport(vp: Viewport | undefined, isSelectedViewChange: boolean): boolean;
46
57
  protected startCommand(): Promise<string>;
47
58
  static callCommand<T extends keyof SolidModelingCommandIpc>(method: T, ...args: Parameters<SolidModelingCommandIpc[T]>): ReturnType<SolidModelingCommandIpc[T]>;
48
- protected get agendaAppearance(): FeatureAppearance;
59
+ protected agendaAppearance(isDynamics: boolean): FeatureAppearance;
49
60
  protected get wantAgendaAppearanceOverride(): boolean;
50
61
  addFeatureOverrides(overrides: FeatureSymbology.Overrides, _vp: Viewport): void;
51
62
  protected updateAgendaAppearanceProvider(drop?: true): void;
52
63
  protected get geometryCacheFilter(): ElementGeometryCacheFilter | undefined;
64
+ protected onGeometryCacheFilterChanged(): void;
65
+ protected createElementGeometryCache(id: Id64String): Promise<boolean>;
53
66
  protected acceptElementForOperation(id: Id64String): Promise<boolean>;
54
67
  protected isElementValidForOperation(hit: HitDetail, out?: LocateResponse): Promise<boolean>;
55
68
  protected postFilterIds(arg: Id64Arg): Promise<Id64Arg>;
@@ -68,98 +81,69 @@ export declare abstract class ElementGeometryCacheTool extends ElementSetTool im
68
81
  onPostInstall(): Promise<void>;
69
82
  onCleanup(): Promise<void>;
70
83
  }
71
- /** @alpha Base class for tools that perform boolean operations on a set of elements. */
72
- export declare abstract class BooleanOperationTool extends ElementGeometryCacheTool {
73
- protected abstract get mode(): BooleanMode;
74
- protected get allowSelectionSet(): boolean;
75
- protected get allowDragSelect(): boolean;
76
- protected get controlKeyContinuesSelection(): boolean;
77
- protected get requiredElementCount(): number;
78
- protected get geometryCacheFilter(): ElementGeometryCacheFilter | undefined;
79
- protected onAgendaModified(): Promise<void>;
80
- protected applyAgendaOperation(): Promise<ElementGeometryResultProps | undefined>;
81
- processAgenda(_ev: BeButtonEvent): Promise<void>;
82
- }
83
- /** @alpha Perform boolean union of solid geometry. */
84
- export declare class UniteSolidElementsTool extends BooleanOperationTool {
85
- static toolId: string;
86
- static iconSpec: string;
87
- protected get mode(): BooleanMode;
88
- onRestartTool(): Promise<void>;
89
- }
90
- /** @alpha Perform boolean subtract of solid geometry. */
91
- export declare class SubtractSolidElementsTool extends BooleanOperationTool {
92
- static toolId: string;
93
- static iconSpec: string;
94
- protected get mode(): BooleanMode;
95
- onRestartTool(): Promise<void>;
96
- }
97
- /** @alpha Perform boolean intersection of solid geometry. */
98
- export declare class IntersectSolidElementsTool extends BooleanOperationTool {
99
- static toolId: string;
100
- static iconSpec: string;
101
- protected get mode(): BooleanMode;
102
- onRestartTool(): Promise<void>;
103
- }
104
- /** @alpha Perform sew operation on surface geometry. */
105
- export declare class SewSheetElementsTool extends ElementGeometryCacheTool {
106
- static toolId: string;
107
- static iconSpec: string;
108
- protected get allowSelectionSet(): boolean;
109
- protected get allowDragSelect(): boolean;
110
- protected get controlKeyContinuesSelection(): boolean;
111
- protected get requiredElementCount(): number;
112
- protected get geometryCacheFilter(): ElementGeometryCacheFilter | undefined;
113
- protected applyAgendaOperation(): Promise<ElementGeometryResultProps | undefined>;
114
- processAgenda(_ev: BeButtonEvent): Promise<void>;
115
- onRestartTool(): Promise<void>;
116
- }
117
84
  /** @alpha Base class for tools that need to locate faces, edges, and vertices. */
118
85
  export declare abstract class LocateSubEntityTool extends ElementGeometryCacheTool {
119
86
  protected _currentSubEntity?: SubEntityData;
120
- protected _acceptedSubEntity?: SubEntityLocationProps;
121
- protected wantSubEntityType(type: SubEntityType): boolean;
122
- protected getMaximumSubEntityHits(type: SubEntityType): 0 | 25;
87
+ protected _acceptedSubEntities: SubEntityData[];
88
+ protected _locatedSubEntities?: SubEntityLocationProps[];
89
+ protected _subEntityGraphicPending?: true;
90
+ protected readonly _summaryIds: Map<string, BRepEntityType[]>;
91
+ protected provideToolAssistance(mainInstrText?: string, additionalInstr?: ToolAssistanceInstruction[]): void;
123
92
  protected get wantAgendaAppearanceOverride(): boolean;
93
+ protected get wantGeometrySummary(): boolean;
94
+ protected get wantSubEntitySnap(): boolean;
95
+ protected wantSubEntityType(type: SubEntityType): boolean;
96
+ protected getMaximumSubEntityHits(type: SubEntityType): number;
97
+ protected get requiredSubEntityCount(): number;
98
+ protected get haveAcceptedSubEntities(): boolean;
99
+ protected get inhibitSubEntityDisplay(): boolean;
100
+ protected get allowSubEntityControlSelect(): boolean;
101
+ protected get allowSubEntityControlDeselect(): boolean;
102
+ protected get allowSubEntitySelectNext(): boolean;
103
+ protected getBRepEntityTypeForSubEntity(id: Id64String, subEntity: SubEntityProps): BRepEntityType;
104
+ protected createElementGeometrySummary(id: Id64String): Promise<boolean>;
105
+ protected createElementGeometryCache(id: Id64String): Promise<boolean>;
106
+ protected getAcceptedSubEntityData(index?: number): SubEntityData | undefined;
107
+ protected getAcceptedSubEntities(): SubEntityProps[];
108
+ protected drawSubEntity(context: DecorateContext, subEntity: SubEntityData, accepted: boolean): void;
109
+ protected drawAcceptedSubEntities(context: DecorateContext): void;
124
110
  decorate(context: DecorateContext): void;
111
+ decorateSuspended(context: DecorateContext): void;
125
112
  protected getLocateAperture(ev: BeButtonEvent): number;
126
113
  protected getMaxRayDistance(ev: BeButtonEvent, aperture: number): number;
114
+ protected getRayOrigin(ev: BeButtonEvent): Point3d;
115
+ protected wantHiddenEdges(vp: Viewport): boolean;
127
116
  protected getSubEntityFilter(): SubEntityFilter | undefined;
128
117
  protected pickSubEntities(id: Id64String, boresite: Ray3d, maxFace: number, maxEdge: number, maxVertex: number, maxDistance: number, hiddenEdgesVisible: boolean, filter?: SubEntityFilter): Promise<SubEntityLocationProps[] | undefined>;
129
118
  protected doPickSubEntities(id: Id64String, ev: BeButtonEvent): Promise<SubEntityLocationProps[] | undefined>;
119
+ protected createSubEntityData(id: Id64String, hit: SubEntityLocationProps): Promise<SubEntityData>;
120
+ /** Append specified sub-entity to accepted array. */
121
+ protected addSubEntity(id: Id64String, props: SubEntityLocationProps): Promise<void>;
122
+ /** Remove specified sub-entity from accepted array, or pop last sub-entity if undefined. */
123
+ protected removeSubEntity(_id: Id64String, props?: SubEntityLocationProps): Promise<void>;
124
+ /** Locate sub-entities for the most recently added (last) agenda entry. Tool sub-classes that wish to identity
125
+ * sub-entities from multiple elements are responsible for maintaining the sub-entities per-element.
126
+ */
130
127
  protected doLocateSubEntity(ev: BeButtonEvent, newSearch: boolean): Promise<boolean>;
131
128
  protected chooseNextHit(ev: BeButtonEvent): Promise<EventHandled>;
129
+ protected get wantAdditionalSubEntities(): boolean;
132
130
  protected gatherInput(ev: BeButtonEvent): Promise<EventHandled | undefined>;
133
- protected get wantAdditionalInput(): boolean;
134
- protected setCurrentSubEntity(id?: Id64String, current?: SubEntityLocationProps, chordTolerance?: number): Promise<boolean>;
135
- protected clearSubEntityGraphic(): void;
136
- protected updateSubEntityGraphic(ev: BeButtonEvent): Promise<boolean>;
131
+ protected getCurrentElement(): Id64String | undefined;
132
+ protected clearCurrentSubEntity(): void;
133
+ protected setCurrentSubEntity(id: Id64String, hit: SubEntityLocationProps, chordTolerance?: number): Promise<boolean>;
134
+ protected changeCurrentSubEntity(id?: Id64String, current?: SubEntityLocationProps, chordTolerance?: number): Promise<boolean>;
135
+ protected updateCurrentSubEntity(ev: BeButtonEvent): Promise<boolean>;
136
+ protected createSubEntityGraphic(id: Id64String, data: SubEntityData, chordTolerance?: number): Promise<boolean>;
137
137
  protected updateGraphic(ev: BeButtonEvent, isDynamics: boolean): Promise<void>;
138
- protected applyAgendaOperation(_ev: BeButtonEvent, _isAccept: boolean): Promise<ElementGeometryResultProps | undefined>;
139
138
  protected getGraphicData(ev: BeButtonEvent): Promise<Uint8Array | undefined>;
139
+ protected applyAgendaOperation(_ev: BeButtonEvent, _isAccept: boolean): Promise<ElementGeometryResultProps | undefined>;
140
140
  processAgenda(ev: BeButtonEvent): Promise<void>;
141
+ onModifierKeyTransition(wentDown: boolean, modifier: BeModifierKeys, event: KeyboardEvent): Promise<EventHandled>;
142
+ changeLocateState(enableLocate: boolean, enableSnap?: boolean, cursor?: string, coordLockOvr?: CoordinateLockOverrides): void;
143
+ protected get shouldEnableSnap(): boolean;
141
144
  protected setupAccuDraw(): void;
142
145
  protected setupAndPromptForNextAction(): void;
146
+ protected clearSubEntityGraphics(): void;
143
147
  onCleanup(): Promise<void>;
144
148
  }
145
- /** @alpha Identify faces of solids and surfaces to offset. */
146
- export declare class OffsetFacesTool extends LocateSubEntityTool {
147
- static toolId: string;
148
- static iconSpec: string;
149
- requireWriteableTarget(): boolean;
150
- protected get wantDynamics(): boolean;
151
- protected get wantAccuSnap(): boolean;
152
- protected get geometryCacheFilter(): ElementGeometryCacheFilter | undefined;
153
- protected applyAgendaOperation(ev: BeButtonEvent, isAccept: boolean): Promise<ElementGeometryResultProps | undefined>;
154
- protected setupAccuDraw(): void;
155
- onRestartTool(): Promise<void>;
156
- }
157
- /** @alpha Identify faces to offset to hollow solids. */
158
- export declare class HollowFacesTool extends LocateSubEntityTool {
159
- static toolId: string;
160
- static iconSpec: string;
161
- protected get geometryCacheFilter(): ElementGeometryCacheFilter | undefined;
162
- protected applyAgendaOperation(ev: BeButtonEvent, isAccept: boolean): Promise<ElementGeometryResultProps | undefined>;
163
- onRestartTool(): Promise<void>;
164
- }
165
149
  //# sourceMappingURL=ElementGeometryTool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElementGeometryTool.d.ts","sourceRoot":"","sources":["../../src/ElementGeometryTool.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAQ,OAAO,EAAa,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAA8C,0BAA0B,EAAgC,0BAA0B,EAA2E,uBAAuB,EAAE,eAAe,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACvX,OAAO,EAAE,iBAAiB,EAAuC,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAY,OAAO,EAAW,KAAK,EAAE,SAAS,EAAY,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAuB,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,uBAAuB,EAAE,gBAAgB,EAAiB,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAa,gBAAgB,EAAe,cAAc,EAAuB,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