tnx-shared 5.3.252 → 5.3.253

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.
@@ -10279,6 +10279,11 @@
10279
10279
  var api = this.serviceUri + "/LatexToBase64";
10280
10280
  return this._httpClient.post(api, { laTex: laTex, font: font }).toPromise();
10281
10281
  };
10282
+ TemplateInstanceService.prototype.laTexToImage = function (laTex, font) {
10283
+ if (font === void 0) { font = 54; }
10284
+ var api = this.serviceUri + "/LatexToImage";
10285
+ return this._httpClient.post(api, { laTex: laTex, font: font }, { responseType: 'blob' }).toPromise();
10286
+ };
10282
10287
  TemplateInstanceService.prototype._export = function (model) {
10283
10288
  return __awaiter(this, void 0, void 0, function () {
10284
10289
  var url;
@@ -54168,28 +54173,37 @@
54168
54173
  var arr, sources_1, sources_1_1, item;
54169
54174
  var e_2, _b;
54170
54175
  return __generator(this, function (_c) {
54171
- if (sources != null && sources.length > 0) {
54172
- arr = [];
54173
- try {
54174
- for (sources_1 = __values(sources), sources_1_1 = sources_1.next(); !sources_1_1.done; sources_1_1 = sources_1.next()) {
54175
- item = sources_1_1.value;
54176
- item = this.reStructureItemObject(item);
54177
- arr.push(item);
54178
- }
54179
- }
54180
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
54181
- finally {
54176
+ switch (_c.label) {
54177
+ case 0:
54178
+ if (!(sources != null && sources.length > 0)) return [3 /*break*/, 3];
54179
+ arr = [];
54182
54180
  try {
54183
- if (sources_1_1 && !sources_1_1.done && (_b = sources_1.return)) _b.call(sources_1);
54181
+ for (sources_1 = __values(sources), sources_1_1 = sources_1.next(); !sources_1_1.done; sources_1_1 = sources_1.next()) {
54182
+ item = sources_1_1.value;
54183
+ item = this.reStructureItemObject(item);
54184
+ arr.push(item);
54185
+ }
54184
54186
  }
54185
- finally { if (e_2) throw e_2.error; }
54186
- }
54187
- this.dataSource = arr;
54188
- }
54189
- else {
54190
- this.dataSource = [];
54187
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
54188
+ finally {
54189
+ try {
54190
+ if (sources_1_1 && !sources_1_1.done && (_b = sources_1.return)) _b.call(sources_1);
54191
+ }
54192
+ finally { if (e_2) throw e_2.error; }
54193
+ }
54194
+ if (!this.controlPicker.modifyDataSelected) return [3 /*break*/, 2];
54195
+ return [4 /*yield*/, this.controlPicker.modifyDataSelected(arr)];
54196
+ case 1:
54197
+ _c.sent();
54198
+ _c.label = 2;
54199
+ case 2:
54200
+ this.dataSource = arr;
54201
+ return [3 /*break*/, 4];
54202
+ case 3:
54203
+ this.dataSource = [];
54204
+ _c.label = 4;
54205
+ case 4: return [2 /*return*/];
54191
54206
  }
54192
- return [2 /*return*/];
54193
54207
  });
54194
54208
  });
54195
54209
  };