@mlightcad/cad-simple-viewer 1.7.8-preview.1 → 1.7.8-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cad-simple-viewer.js +10120 -8596
- package/dist/cad-simple-viewer.umd.cjs +82 -82
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +10 -1
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +28 -2
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/command/AcApObjectScaleCmd.d.ts +12 -0
- package/lib/command/AcApObjectScaleCmd.d.ts.map +1 -0
- package/lib/command/AcApObjectScaleCmd.js +193 -0
- package/lib/command/AcApObjectScaleCmd.js.map +1 -0
- package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
- package/lib/command/AcApSysVarCmd.js +2 -0
- package/lib/command/AcApSysVarCmd.js.map +1 -1
- package/lib/command/draw/AcApDimAlignedCmd.d.ts +21 -0
- package/lib/command/draw/AcApDimAlignedCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimAlignedCmd.js +218 -0
- package/lib/command/draw/AcApDimAlignedCmd.js.map +1 -0
- package/lib/command/draw/AcApDimAngularCmd.d.ts +27 -0
- package/lib/command/draw/AcApDimAngularCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimAngularCmd.js +264 -0
- package/lib/command/draw/AcApDimAngularCmd.js.map +1 -0
- package/lib/command/draw/AcApDimArcCmd.d.ts +26 -0
- package/lib/command/draw/AcApDimArcCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimArcCmd.js +184 -0
- package/lib/command/draw/AcApDimArcCmd.js.map +1 -0
- package/lib/command/draw/AcApDimBlockUtil.d.ts +40 -0
- package/lib/command/draw/AcApDimBlockUtil.d.ts.map +1 -0
- package/lib/command/draw/AcApDimBlockUtil.js +290 -0
- package/lib/command/draw/AcApDimBlockUtil.js.map +1 -0
- package/lib/command/draw/AcApDimChainUtil.d.ts +13 -0
- package/lib/command/draw/AcApDimChainUtil.d.ts.map +1 -0
- package/lib/command/draw/AcApDimChainUtil.js +140 -0
- package/lib/command/draw/AcApDimChainUtil.js.map +1 -0
- package/lib/command/draw/AcApDimCmdUtil.d.ts +22 -0
- package/lib/command/draw/AcApDimCmdUtil.d.ts.map +1 -0
- package/lib/command/draw/AcApDimCmdUtil.js +125 -0
- package/lib/command/draw/AcApDimCmdUtil.js.map +1 -0
- package/lib/command/draw/AcApDimContinueCmd.d.ts +13 -0
- package/lib/command/draw/AcApDimContinueCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimContinueCmd.js +204 -0
- package/lib/command/draw/AcApDimContinueCmd.js.map +1 -0
- package/lib/command/draw/AcApDimDiameterCmd.d.ts +27 -0
- package/lib/command/draw/AcApDimDiameterCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimDiameterCmd.js +204 -0
- package/lib/command/draw/AcApDimDiameterCmd.js.map +1 -0
- package/lib/command/draw/AcApDimLinearCmd.d.ts +10 -13
- package/lib/command/draw/AcApDimLinearCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApDimLinearCmd.js +161 -97
- package/lib/command/draw/AcApDimLinearCmd.js.map +1 -1
- package/lib/command/draw/AcApDimOrdinateCmd.d.ts +22 -0
- package/lib/command/draw/AcApDimOrdinateCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimOrdinateCmd.js +186 -0
- package/lib/command/draw/AcApDimOrdinateCmd.js.map +1 -0
- package/lib/command/draw/AcApDimRadiusCmd.d.ts +28 -0
- package/lib/command/draw/AcApDimRadiusCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApDimRadiusCmd.js +206 -0
- package/lib/command/draw/AcApDimRadiusCmd.js.map +1 -0
- package/lib/command/draw/index.d.ts +9 -0
- package/lib/command/draw/index.d.ts.map +1 -1
- package/lib/command/draw/index.js +9 -0
- package/lib/command/draw/index.js.map +1 -1
- package/lib/command/index.d.ts +1 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +1 -0
- package/lib/command/index.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +34 -0
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +1 -1
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +244 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +1 -1
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +24 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +24 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +221 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +21 -5
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/en/command.d.ts +34 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +34 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +244 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +147 -3
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +24 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +24 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +221 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +21 -5
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +34 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +34 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +244 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +135 -3
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +28 -0
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +147 -74
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
+
function step(op) {
|
|
30
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
+
switch (op[0]) {
|
|
35
|
+
case 0: case 1: t = op; break;
|
|
36
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
+
default:
|
|
40
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
+
if (t[2]) _.ops.pop();
|
|
45
|
+
_.trys.pop(); continue;
|
|
46
|
+
}
|
|
47
|
+
op = body.call(thisArg, _);
|
|
48
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var __values = (this && this.__values) || function(o) {
|
|
53
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
54
|
+
if (m) return m.call(o);
|
|
55
|
+
if (o && typeof o.length === "number") return {
|
|
56
|
+
next: function () {
|
|
57
|
+
if (o && i >= o.length) o = void 0;
|
|
58
|
+
return { value: o && o[i++], done: !o };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
62
|
+
};
|
|
63
|
+
import { acdbAddAnnotationScaleToObject, acdbGetAnnotationScaleContexts, acdbListAnnotationScales, acdbRemoveAnnotationScaleFromObject } from '@mlightcad/data-model';
|
|
64
|
+
import { AcApDocManager } from '../app';
|
|
65
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPromptKeywordOptions, AcEdPromptStatus, AcEdPromptStringOptions } from '../editor';
|
|
66
|
+
import { AcApI18n } from '../i18n';
|
|
67
|
+
import { resolveSelectedIds } from '../service';
|
|
68
|
+
/**
|
|
69
|
+
* Adds or removes annotation scales on selected annotative objects
|
|
70
|
+
* (`OBJECTSCALE`).
|
|
71
|
+
*/
|
|
72
|
+
var AcApObjectScaleCmd = /** @class */ (function (_super) {
|
|
73
|
+
__extends(AcApObjectScaleCmd, _super);
|
|
74
|
+
function AcApObjectScaleCmd() {
|
|
75
|
+
var _this = _super.call(this) || this;
|
|
76
|
+
_this.mode = AcEdOpenMode.Write;
|
|
77
|
+
return _this;
|
|
78
|
+
}
|
|
79
|
+
AcApObjectScaleCmd.prototype.execute = function (context) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var ids, db, entities, ids_1, ids_1_1, id, entity, actionPrompt, addKey, deleteKey, listKey, actionResult, keyword, scales, scaleNames, scalePrompt, scaleResult, scaleName, changed, entities_1, entities_1_1, entity;
|
|
82
|
+
var e_1, _a, e_2, _b;
|
|
83
|
+
return __generator(this, function (_c) {
|
|
84
|
+
switch (_c.label) {
|
|
85
|
+
case 0: return [4 /*yield*/, resolveSelectedIds(context, 'objectscale')];
|
|
86
|
+
case 1:
|
|
87
|
+
ids = _c.sent();
|
|
88
|
+
if (!(ids === null || ids === void 0 ? void 0 : ids.length))
|
|
89
|
+
return [2 /*return*/];
|
|
90
|
+
db = context.doc.database;
|
|
91
|
+
entities = [];
|
|
92
|
+
try {
|
|
93
|
+
for (ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
94
|
+
id = ids_1_1.value;
|
|
95
|
+
entity = db.tables.blockTable.getEntityById(id);
|
|
96
|
+
if (entity)
|
|
97
|
+
entities.push(entity);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
101
|
+
finally {
|
|
102
|
+
try {
|
|
103
|
+
if (ids_1_1 && !ids_1_1.done && (_a = ids_1.return)) _a.call(ids_1);
|
|
104
|
+
}
|
|
105
|
+
finally { if (e_1) throw e_1.error; }
|
|
106
|
+
}
|
|
107
|
+
if (entities.length === 0)
|
|
108
|
+
return [2 /*return*/];
|
|
109
|
+
actionPrompt = new AcEdPromptKeywordOptions(AcApI18n.t('jig.objectscale.action'));
|
|
110
|
+
addKey = actionPrompt.keywords.add(AcApI18n.t('jig.objectscale.keywords.add.display'), AcApI18n.t('jig.objectscale.keywords.add.global'), AcApI18n.t('jig.objectscale.keywords.add.local'));
|
|
111
|
+
deleteKey = actionPrompt.keywords.add(AcApI18n.t('jig.objectscale.keywords.delete.display'), AcApI18n.t('jig.objectscale.keywords.delete.global'), AcApI18n.t('jig.objectscale.keywords.delete.local'));
|
|
112
|
+
listKey = actionPrompt.keywords.add(AcApI18n.t('jig.objectscale.keywords.list.display'), AcApI18n.t('jig.objectscale.keywords.list.global'), AcApI18n.t('jig.objectscale.keywords.list.local'));
|
|
113
|
+
actionPrompt.keywords.default = addKey;
|
|
114
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getKeywords(actionPrompt)];
|
|
115
|
+
case 2:
|
|
116
|
+
actionResult = _c.sent();
|
|
117
|
+
if (actionResult.status !== AcEdPromptStatus.OK)
|
|
118
|
+
return [2 /*return*/];
|
|
119
|
+
keyword = actionResult.stringResult;
|
|
120
|
+
if (keyword === listKey.globalName) {
|
|
121
|
+
this.listScales(entities);
|
|
122
|
+
return [2 /*return*/];
|
|
123
|
+
}
|
|
124
|
+
scales = acdbListAnnotationScales(db);
|
|
125
|
+
scaleNames = scales.map(function (s) { return s.scaleName; }).filter(Boolean);
|
|
126
|
+
scalePrompt = new AcEdPromptStringOptions("".concat(AcApI18n.t('jig.objectscale.scaleName'), " [").concat(scaleNames.join(', '), "]"));
|
|
127
|
+
if (db.cannoscale) {
|
|
128
|
+
scalePrompt.defaultValue = db.cannoscale;
|
|
129
|
+
scalePrompt.useDefaultValue = true;
|
|
130
|
+
}
|
|
131
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getString(scalePrompt)];
|
|
132
|
+
case 3:
|
|
133
|
+
scaleResult = _c.sent();
|
|
134
|
+
if (scaleResult.status !== AcEdPromptStatus.OK || !scaleResult.stringResult) {
|
|
135
|
+
return [2 /*return*/];
|
|
136
|
+
}
|
|
137
|
+
scaleName = scaleResult.stringResult.trim();
|
|
138
|
+
if (!scaleName)
|
|
139
|
+
return [2 /*return*/];
|
|
140
|
+
changed = 0;
|
|
141
|
+
try {
|
|
142
|
+
for (entities_1 = __values(entities), entities_1_1 = entities_1.next(); !entities_1_1.done; entities_1_1 = entities_1.next()) {
|
|
143
|
+
entity = entities_1_1.value;
|
|
144
|
+
if (keyword === deleteKey.globalName) {
|
|
145
|
+
if (acdbRemoveAnnotationScaleFromObject(entity, scaleName))
|
|
146
|
+
changed++;
|
|
147
|
+
}
|
|
148
|
+
else if (keyword === addKey.globalName) {
|
|
149
|
+
if (acdbAddAnnotationScaleToObject(entity, scaleName))
|
|
150
|
+
changed++;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
155
|
+
finally {
|
|
156
|
+
try {
|
|
157
|
+
if (entities_1_1 && !entities_1_1.done && (_b = entities_1.return)) _b.call(entities_1);
|
|
158
|
+
}
|
|
159
|
+
finally { if (e_2) throw e_2.error; }
|
|
160
|
+
}
|
|
161
|
+
AcApDocManager.instance.editor.showMessage("".concat(AcApI18n.t('jig.objectscale.done'), ": ").concat(changed));
|
|
162
|
+
if (changed > 0) {
|
|
163
|
+
AcApDocManager.instance.regen();
|
|
164
|
+
}
|
|
165
|
+
return [2 /*return*/];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
AcApObjectScaleCmd.prototype.listScales = function (entities) {
|
|
171
|
+
var e_3, _a;
|
|
172
|
+
try {
|
|
173
|
+
for (var entities_2 = __values(entities), entities_2_1 = entities_2.next(); !entities_2_1.done; entities_2_1 = entities_2.next()) {
|
|
174
|
+
var entity = entities_2_1.value;
|
|
175
|
+
var contexts = acdbGetAnnotationScaleContexts(entity);
|
|
176
|
+
var names = contexts.length > 0
|
|
177
|
+
? contexts.map(function (c) { return c.scale.scaleName; }).join(', ')
|
|
178
|
+
: AcApI18n.t('jig.objectscale.none');
|
|
179
|
+
AcApDocManager.instance.editor.showMessage("".concat(entity.type, " (").concat(entity.objectId, "): ").concat(names));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
183
|
+
finally {
|
|
184
|
+
try {
|
|
185
|
+
if (entities_2_1 && !entities_2_1.done && (_a = entities_2.return)) _a.call(entities_2);
|
|
186
|
+
}
|
|
187
|
+
finally { if (e_3) throw e_3.error; }
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return AcApObjectScaleCmd;
|
|
191
|
+
}(AcEdCommand));
|
|
192
|
+
export { AcApObjectScaleCmd };
|
|
193
|
+
//# sourceMappingURL=AcApObjectScale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.ts","sourceRoot":"","sources":["../../src/command/AcApSysVarCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAkB,MAAM,QAAQ,CAAA;AACpD,OAAO,EACL,WAAW,EAIZ,MAAM,WAAW,CAAA;AAGlB;;;GAGG;AACH,qBAAa,aAAc,SAAQ,WAAW;;IAM5C;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CAsBnC"}
|
|
@@ -91,6 +91,8 @@ var AcApSysVarCmd = /** @class */ (function (_super) {
|
|
|
91
91
|
value = result.stringResult;
|
|
92
92
|
sysVar = sysVarManager.getDescriptor(this.globalName);
|
|
93
93
|
if (sysVar) {
|
|
94
|
+
// CANNOSCALE / ANNOALLVISIBLE regen is handled by AcApDocManager's
|
|
95
|
+
// sysVarChanged listener.
|
|
94
96
|
sysVarManager.setVar(this.globalName, value, context.doc.database);
|
|
95
97
|
}
|
|
96
98
|
return [2 /*return*/];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApSysVarCmd.js","sourceRoot":"","sources":["../../src/command/AcApSysVarCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAe,cAAc,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC;;;GAGG;AACH;IAAmC,iCAAW;IAC5C;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAA;;IACjC,CAAC;IAED;;;;OAIG;IACG,+BAAO,GAAb,UAAc,OAAoB;;;;;;wBAC1B,aAAa,GAAG,iBAAiB,CAAC,QAAQ,EAA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GAAG,CAAC,QAAQ,CAAC,CAAA;wBACpE,CAAC;;;;;KACF;IACH,oBAAC;AAAD,CAAC,AAjCD,CAAmC,WAAW,GAiC7C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AcDbAlignedDimension, AcDbDatabase, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcApContext } from '../../app';
|
|
3
|
+
import { AcEdBaseView, AcEdCommand, AcEdPreviewJig } from '../../editor';
|
|
4
|
+
export declare class AcApDimAlignedJig extends AcEdPreviewJig<AcGePoint3dLike> {
|
|
5
|
+
private _db;
|
|
6
|
+
private _dim;
|
|
7
|
+
constructor(view: AcEdBaseView, db: AcDbDatabase, xLine1Point: AcGePoint3dLike, xLine2Point: AcGePoint3dLike);
|
|
8
|
+
get entity(): AcDbAlignedDimension;
|
|
9
|
+
update(point: AcGePoint3dLike): void;
|
|
10
|
+
end(): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* DIMALIGNED — create an aligned dimension (AcDbAlignedDimension).
|
|
14
|
+
*/
|
|
15
|
+
export declare class AcApDimAlignedCmd extends AcEdCommand {
|
|
16
|
+
constructor();
|
|
17
|
+
execute(context: AcApContext): Promise<void>;
|
|
18
|
+
private promptDefinitionPoints;
|
|
19
|
+
private promptObjectDefinitionPoints;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=AcApDimAlignedCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApDimAlignedCmd.d.ts","sourceRoot":"","sources":["../../../src/command/draw/AcApDimAlignedCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EAEZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,YAAY,EACZ,WAAW,EAEX,cAAc,EAIf,MAAM,cAAc,CAAA;AAgBrB,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACpE,OAAO,CAAC,GAAG,CAAc;IACzB,OAAO,CAAC,IAAI,CAAsB;gBAGhC,IAAI,EAAE,YAAY,EAClB,EAAE,EAAE,YAAY,EAChB,WAAW,EAAE,eAAe,EAC5B,WAAW,EAAE,eAAe;IAQ9B,IAAI,MAAM,IAAI,oBAAoB,CAEjC;IAED,MAAM,CAAC,KAAK,EAAE,eAAe;IAQ7B,GAAG;CAIJ;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;;IAM1C,OAAO,CAAC,OAAO,EAAE,WAAW;YA8DpB,sBAAsB;YA8BtB,4BAA4B;CAsB3C"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
+
function step(op) {
|
|
30
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
+
switch (op[0]) {
|
|
35
|
+
case 0: case 1: t = op; break;
|
|
36
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
+
default:
|
|
40
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
+
if (t[2]) _.ops.pop();
|
|
45
|
+
_.trys.pop(); continue;
|
|
46
|
+
}
|
|
47
|
+
op = body.call(thisArg, _);
|
|
48
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
import { AcDbAlignedDimension, AcGePoint3d } from '@mlightcad/data-model';
|
|
53
|
+
import { AcApDocManager } from '../../app';
|
|
54
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPreviewJig, AcEdPromptEntityOptions, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
|
|
55
|
+
import { AcApI18n } from '../../i18n';
|
|
56
|
+
import { addCommonDimKeywords, applyCurrentDimStyle, commitDimBlock, definitionPointsFromEntity, DIM_PREVIEW_BLOCK, handleCommonDimKeyword, rebuildPreviewBlock, rememberCreatedDimension, removePreviewBlock } from './AcApDimCmdUtil';
|
|
57
|
+
var I18N = 'jig.dimaligned';
|
|
58
|
+
var AcApDimAlignedJig = /** @class */ (function (_super) {
|
|
59
|
+
__extends(AcApDimAlignedJig, _super);
|
|
60
|
+
function AcApDimAlignedJig(view, db, xLine1Point, xLine2Point) {
|
|
61
|
+
var _this = _super.call(this, view) || this;
|
|
62
|
+
_this._db = db;
|
|
63
|
+
_this._dim = new AcDbAlignedDimension(xLine1Point, xLine2Point, xLine1Point);
|
|
64
|
+
applyCurrentDimStyle(_this._dim, db);
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
Object.defineProperty(AcApDimAlignedJig.prototype, "entity", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this._dim;
|
|
70
|
+
},
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
AcApDimAlignedJig.prototype.update = function (point) {
|
|
75
|
+
this._dim.dimLinePoint = point;
|
|
76
|
+
var dx = this._dim.xLine2Point.x - this._dim.xLine1Point.x;
|
|
77
|
+
var dy = this._dim.xLine2Point.y - this._dim.xLine1Point.y;
|
|
78
|
+
this._dim.rotation = Math.atan2(dy, dx);
|
|
79
|
+
rebuildPreviewBlock(this._db, this._dim, DIM_PREVIEW_BLOCK);
|
|
80
|
+
};
|
|
81
|
+
AcApDimAlignedJig.prototype.end = function () {
|
|
82
|
+
_super.prototype.end.call(this);
|
|
83
|
+
removePreviewBlock(this._db, DIM_PREVIEW_BLOCK);
|
|
84
|
+
};
|
|
85
|
+
return AcApDimAlignedJig;
|
|
86
|
+
}(AcEdPreviewJig));
|
|
87
|
+
export { AcApDimAlignedJig };
|
|
88
|
+
/**
|
|
89
|
+
* DIMALIGNED — create an aligned dimension (AcDbAlignedDimension).
|
|
90
|
+
*/
|
|
91
|
+
var AcApDimAlignedCmd = /** @class */ (function (_super) {
|
|
92
|
+
__extends(AcApDimAlignedCmd, _super);
|
|
93
|
+
function AcApDimAlignedCmd() {
|
|
94
|
+
var _this = _super.call(this) || this;
|
|
95
|
+
_this.mode = AcEdOpenMode.Write;
|
|
96
|
+
return _this;
|
|
97
|
+
}
|
|
98
|
+
AcApDimAlignedCmd.prototype.execute = function (context) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var editor, db, points, xLine1Point, xLine2Point, customText, textAngle, jig, prompt_1, result, dimension;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
editor = AcApDocManager.instance.editor;
|
|
105
|
+
db = context.doc.database;
|
|
106
|
+
return [4 /*yield*/, this.promptDefinitionPoints()];
|
|
107
|
+
case 1:
|
|
108
|
+
points = _a.sent();
|
|
109
|
+
if (!points)
|
|
110
|
+
return [2 /*return*/];
|
|
111
|
+
xLine1Point = points.xLine1Point, xLine2Point = points.xLine2Point;
|
|
112
|
+
customText = null;
|
|
113
|
+
jig = new AcApDimAlignedJig(context.view, db, xLine1Point, xLine2Point);
|
|
114
|
+
_a.label = 2;
|
|
115
|
+
case 2:
|
|
116
|
+
prompt_1 = new AcEdPromptPointOptions(AcApI18n.t("".concat(I18N, ".dimLinePoint")));
|
|
117
|
+
addCommonDimKeywords(prompt_1, I18N);
|
|
118
|
+
prompt_1.jig = jig;
|
|
119
|
+
return [4 /*yield*/, editor.getPoint(prompt_1)];
|
|
120
|
+
case 3:
|
|
121
|
+
result = _a.sent();
|
|
122
|
+
if (result.status === AcEdPromptStatus.Cancel) {
|
|
123
|
+
jig.end();
|
|
124
|
+
return [2 /*return*/];
|
|
125
|
+
}
|
|
126
|
+
if (!(result.status === AcEdPromptStatus.Keyword)) return [3 /*break*/, 5];
|
|
127
|
+
return [4 /*yield*/, handleCommonDimKeyword(result.stringResult, jig.entity, I18N)];
|
|
128
|
+
case 4:
|
|
129
|
+
if (_a.sent()) {
|
|
130
|
+
customText = jig.entity.dimensionText;
|
|
131
|
+
textAngle = jig.entity.textRotation;
|
|
132
|
+
return [3 /*break*/, 6];
|
|
133
|
+
}
|
|
134
|
+
return [3 /*break*/, 6];
|
|
135
|
+
case 5:
|
|
136
|
+
if (result.status !== AcEdPromptStatus.OK || !result.value) {
|
|
137
|
+
jig.end();
|
|
138
|
+
return [2 /*return*/];
|
|
139
|
+
}
|
|
140
|
+
jig.end();
|
|
141
|
+
dimension = new AcDbAlignedDimension(xLine1Point, xLine2Point, result.value);
|
|
142
|
+
applyCurrentDimStyle(dimension, db);
|
|
143
|
+
if (customText != null)
|
|
144
|
+
dimension.dimensionText = customText;
|
|
145
|
+
if (textAngle != null)
|
|
146
|
+
dimension.textRotation = textAngle;
|
|
147
|
+
commitDimBlock(db, dimension);
|
|
148
|
+
db.tables.blockTable.modelSpace.appendEntity(dimension);
|
|
149
|
+
rememberCreatedDimension(dimension.objectId);
|
|
150
|
+
return [2 /*return*/];
|
|
151
|
+
case 6: return [3 /*break*/, 2];
|
|
152
|
+
case 7: return [2 /*return*/];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
AcApDimAlignedCmd.prototype.promptDefinitionPoints = function () {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
+
var editor, firstPrompt, first, secondPrompt, second;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
editor = AcApDocManager.instance.editor;
|
|
164
|
+
firstPrompt = new AcEdPromptPointOptions(AcApI18n.t("".concat(I18N, ".xLine1Point")));
|
|
165
|
+
firstPrompt.allowNone = true;
|
|
166
|
+
return [4 /*yield*/, editor.getPoint(firstPrompt)];
|
|
167
|
+
case 1:
|
|
168
|
+
first = _a.sent();
|
|
169
|
+
if (first.status === AcEdPromptStatus.Cancel)
|
|
170
|
+
return [2 /*return*/, null];
|
|
171
|
+
if (first.status === AcEdPromptStatus.None) {
|
|
172
|
+
return [2 /*return*/, this.promptObjectDefinitionPoints()];
|
|
173
|
+
}
|
|
174
|
+
if (first.status !== AcEdPromptStatus.OK || !first.value)
|
|
175
|
+
return [2 /*return*/, null];
|
|
176
|
+
secondPrompt = new AcEdPromptPointOptions(AcApI18n.t("".concat(I18N, ".xLine2Point")));
|
|
177
|
+
secondPrompt.useBasePoint = true;
|
|
178
|
+
secondPrompt.useDashedLine = true;
|
|
179
|
+
secondPrompt.basePoint = new AcGePoint3d().copy(first.value);
|
|
180
|
+
return [4 /*yield*/, editor.getPoint(secondPrompt)];
|
|
181
|
+
case 2:
|
|
182
|
+
second = _a.sent();
|
|
183
|
+
if (second.status !== AcEdPromptStatus.OK || !second.value)
|
|
184
|
+
return [2 /*return*/, null];
|
|
185
|
+
return [2 /*return*/, { xLine1Point: first.value, xLine2Point: second.value }];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
AcApDimAlignedCmd.prototype.promptObjectDefinitionPoints = function () {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
+
var editor, db, entityPrompt, picked, entity;
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
switch (_a.label) {
|
|
195
|
+
case 0:
|
|
196
|
+
editor = AcApDocManager.instance.editor;
|
|
197
|
+
db = AcApDocManager.instance.curDocument.database;
|
|
198
|
+
entityPrompt = new AcEdPromptEntityOptions(AcApI18n.t("".concat(I18N, ".selectObject")));
|
|
199
|
+
entityPrompt.addAllowedClass('Line');
|
|
200
|
+
entityPrompt.addAllowedClass('Circle');
|
|
201
|
+
entityPrompt.addAllowedClass('Arc');
|
|
202
|
+
entityPrompt.addAllowedClass('Polyline');
|
|
203
|
+
entityPrompt.setRejectMessage(AcApI18n.t("".concat(I18N, ".rejectObject")));
|
|
204
|
+
return [4 /*yield*/, editor.getEntity(entityPrompt)];
|
|
205
|
+
case 1:
|
|
206
|
+
picked = _a.sent();
|
|
207
|
+
if (picked.status !== AcEdPromptStatus.OK || !picked.objectId)
|
|
208
|
+
return [2 /*return*/, null];
|
|
209
|
+
entity = db.tables.blockTable.getEntityById(picked.objectId);
|
|
210
|
+
return [2 /*return*/, definitionPointsFromEntity(entity)];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
return AcApDimAlignedCmd;
|
|
216
|
+
}(AcEdCommand));
|
|
217
|
+
export { AcApDimAlignedCmd };
|
|
218
|
+
//# sourceMappingURL=AcApDimAlignedCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApDimAlignedCmd.js","sourceRoot":"","sources":["../../../src/command/draw/AcApDimAlignedCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,s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BAEjD,YAAY,GAAG,IAAI,uBAAuB,CAC9C,QAAQ,CAAC,CAAC,CAAC,UAAG,IAAI,kBAAe,CAAC,CACnC,CAAA;wBACD,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;wBACpC,YAAY,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;wBACtC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAA;wBACnC,YAAY,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;wBACxC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAG,IAAI,kBAAe,CAAC,CAAC,CAAA;wBAElD,qBAAM,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,EAAA;;wBAA7C,MAAM,GAAG,SAAoC;wBACnD,IAAI,MAAM,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;4BAAE,sBAAO,IAAI,EAAA;wBAEpE,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;wBAClE,sBAAO,0BAA0B,CAAC,MAAM,CAAC,EAAA;;;;KAC1C;IACH,wBAAC;AAAD,CAAC,AAxHD,CAAuC,WAAW,GAwHjD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AcDb3PointAngularDimension, AcDbDatabase, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcApContext } from '../../app';
|
|
3
|
+
import { AcEdBaseView, AcEdCommand, AcEdPreviewJig } from '../../editor';
|
|
4
|
+
interface AngularDef {
|
|
5
|
+
center: AcGePoint3dLike;
|
|
6
|
+
xLine1Point: AcGePoint3dLike;
|
|
7
|
+
xLine2Point: AcGePoint3dLike;
|
|
8
|
+
}
|
|
9
|
+
export declare class AcApDimAngularJig extends AcEdPreviewJig<AcGePoint3dLike> {
|
|
10
|
+
private _db;
|
|
11
|
+
private _dim;
|
|
12
|
+
constructor(view: AcEdBaseView, db: AcDbDatabase, def: AngularDef);
|
|
13
|
+
get entity(): AcDb3PointAngularDimension;
|
|
14
|
+
update(point: AcGePoint3dLike): void;
|
|
15
|
+
end(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* DIMANGULAR — create a 3-point (or 2-line) angular dimension.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AcApDimAngularCmd extends AcEdCommand {
|
|
21
|
+
constructor();
|
|
22
|
+
execute(context: AcApContext): Promise<void>;
|
|
23
|
+
private promptAngularDefinition;
|
|
24
|
+
private promptTwoLines;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=AcApDimAngularCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApDimAngularCmd.d.ts","sourceRoot":"","sources":["../../../src/command/draw/AcApDimAngularCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,YAAY,EAGZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,YAAY,EACZ,WAAW,EAEX,cAAc,EAIf,MAAM,cAAc,CAAA;AAerB,UAAU,UAAU;IAClB,MAAM,EAAE,eAAe,CAAA;IACvB,WAAW,EAAE,eAAe,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;CAC7B;AAED,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACpE,OAAO,CAAC,GAAG,CAAc;IACzB,OAAO,CAAC,IAAI,CAA4B;gBAE5B,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU;IAYjE,IAAI,MAAM,IAAI,0BAA0B,CAEvC;IAED,MAAM,CAAC,KAAK,EAAE,eAAe;IAK7B,GAAG;CAIJ;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;;IAM1C,OAAO,CAAC,OAAO,EAAE,WAAW;YA0DpB,uBAAuB;YA2CvB,cAAc;CA2C7B"}
|