@contrail/documents 1.3.15 → 1.3.16
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.
|
@@ -6,11 +6,11 @@ const document_element_factory_1 = require("./document-element-factory");
|
|
|
6
6
|
class DocumentFrameService {
|
|
7
7
|
static generateFrames(document, documentFrameGenerationOptions = {}) {
|
|
8
8
|
var _a, _b, _c, _d, _e, _f;
|
|
9
|
-
const options = Object.assign(
|
|
9
|
+
const options = Object.assign({
|
|
10
10
|
includeHidden: true,
|
|
11
11
|
selectedIds: [],
|
|
12
12
|
relativePosition: false,
|
|
13
|
-
});
|
|
13
|
+
}, documentFrameGenerationOptions);
|
|
14
14
|
const includeSelected = ((_a = options.selectedIds) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
15
15
|
const frames = new Map();
|
|
16
16
|
const elementsMap = new Map((_b = document === null || document === void 0 ? void 0 : document.elements) === null || _b === void 0 ? void 0 : _b.map((element) => [element.id, element]));
|