@remotion/studio 4.0.516 → 4.0.518

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 (157) hide show
  1. package/dist/components/AssetSelector.js +63 -22
  2. package/dist/components/AssetSelectorItem.d.ts +2 -1
  3. package/dist/components/AssetSelectorItem.js +41 -10
  4. package/dist/components/Canvas.js +15 -12
  5. package/dist/components/CanvasCaptureDropHandler.d.ts +4 -0
  6. package/dist/components/CanvasCaptureDropHandler.js +42 -0
  7. package/dist/components/CanvasOrLoading.js +4 -3
  8. package/dist/components/CaptionInspector.js +1 -1
  9. package/dist/components/CaptionTextEditor.js +32 -8
  10. package/dist/components/CheckboardToggle.js +1 -1
  11. package/dist/components/Checkbox.d.ts +0 -1
  12. package/dist/components/Checkbox.js +2 -19
  13. package/dist/components/CompositionContextButton.js +2 -1
  14. package/dist/components/CompositionSelector.js +1 -1
  15. package/dist/components/ConfigureLicenseModal.js +79 -46
  16. package/dist/components/CurrentAsset.d.ts +1 -1
  17. package/dist/components/CurrentAsset.js +9 -4
  18. package/dist/components/Editor.js +2 -1
  19. package/dist/components/EditorContent.js +11 -5
  20. package/dist/components/EditorContexts.js +2 -1
  21. package/dist/components/EditorRuler/Ruler.d.ts +1 -0
  22. package/dist/components/EditorRuler/Ruler.js +9 -8
  23. package/dist/components/EditorRuler/index.d.ts +1 -0
  24. package/dist/components/EditorRuler/index.js +3 -4
  25. package/dist/components/EditorRuler/use-is-ruler-visible.d.ts +1 -1
  26. package/dist/components/EditorRuler/use-is-ruler-visible.js +8 -2
  27. package/dist/components/ElementInstallConfirmation.d.ts +5 -0
  28. package/dist/components/ElementInstallConfirmation.js +25 -1
  29. package/dist/components/ElementLibraryModal.d.ts +5 -0
  30. package/dist/components/ElementLibraryModal.js +40 -0
  31. package/dist/components/FilePreview.js +71 -0
  32. package/dist/components/InlineCaptionInspector.js +13 -2
  33. package/dist/components/InlineEditableTitle.js +2 -2
  34. package/dist/components/InspectorPanel/CompositionInspector.js +11 -38
  35. package/dist/components/InspectorPanel/CompositionInspectorHeader.js +2 -2
  36. package/dist/components/InspectorPanel/CompositionMetadata.js +11 -4
  37. package/dist/components/InspectorPanel/EasingInspector.js +2 -2
  38. package/dist/components/InspectorPanel/ElementLibraryButton.d.ts +2 -0
  39. package/dist/components/InspectorPanel/ElementLibraryButton.js +139 -0
  40. package/dist/components/InspectorPanel/KeyframeInspector.js +1 -1
  41. package/dist/components/InspectorPanel/SequenceInspectorHeader.js +12 -5
  42. package/dist/components/InspectorPanel/SequenceSelectionInspector.js +1 -3
  43. package/dist/components/InspectorPanel/common.d.ts +0 -1
  44. package/dist/components/InspectorPanel/common.js +3 -7
  45. package/dist/components/InspectorPanel/inspector-selection.d.ts +2 -2
  46. package/dist/components/InspectorPanel/styles.d.ts +0 -1
  47. package/dist/components/InspectorPanel/styles.js +3 -4
  48. package/dist/components/InspectorPanel/use-track-for-selection.d.ts +1 -2
  49. package/dist/components/InspectorSequenceSection.d.ts +1 -2
  50. package/dist/components/InspectorSourceLocation.js +1 -1
  51. package/dist/components/Menu/MenuItem.js +15 -6
  52. package/dist/components/MenuToolbar.js +7 -3
  53. package/dist/components/Modals.js +51 -1
  54. package/dist/components/PlaybackRateSelector.js +3 -6
  55. package/dist/components/Preview.js +83 -5
  56. package/dist/components/PreviewToolbar.js +10 -4
  57. package/dist/components/PreviewToolbarOverflowButton.d.ts +1 -0
  58. package/dist/components/PreviewToolbarOverflowButton.js +9 -2
  59. package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.d.ts +2 -0
  60. package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +28 -8
  61. package/dist/components/RadioButton.d.ts +6 -0
  62. package/dist/components/RadioButton.js +62 -0
  63. package/dist/components/RenderButton.js +2 -1
  64. package/dist/components/RulersAndGuidesToggle.d.ts +3 -1
  65. package/dist/components/RulersAndGuidesToggle.js +18 -7
  66. package/dist/components/SelectedOutlineKeyboardControls.d.ts +2 -2
  67. package/dist/components/SelectedOutlineOverlay.d.ts +1 -3
  68. package/dist/components/SelectedOutlineOverlay.js +21 -17
  69. package/dist/components/SelectedOutlinePolygon.d.ts +1 -2
  70. package/dist/components/SelectedOutlineRenderer.d.ts +2 -3
  71. package/dist/components/SelectedOutlineRenderer.js +9 -78
  72. package/dist/components/SelectedOutlineUvControls.d.ts +1 -1
  73. package/dist/components/SettingsModal.js +1 -1
  74. package/dist/components/SettingsModalFooter.d.ts +3 -1
  75. package/dist/components/SettingsModalFooter.js +19 -4
  76. package/dist/components/ShowPixelGridProvider.d.ts +4 -0
  77. package/dist/components/ShowPixelGridProvider.js +24 -0
  78. package/dist/components/SidebarCollapserControls.js +2 -2
  79. package/dist/components/SidebarRenderButton.js +2 -1
  80. package/dist/components/Timeline/Timeline.js +41 -0
  81. package/dist/components/Timeline/TimelineClipboardKeybindings.d.ts +6 -7
  82. package/dist/components/Timeline/TimelineDragHandler.js +11 -4
  83. package/dist/components/Timeline/TimelineKeyframeControls.d.ts +1 -2
  84. package/dist/components/Timeline/TimelinePlayCursorSyncer.js +4 -2
  85. package/dist/components/Timeline/TimelineSelection.d.ts +29 -66
  86. package/dist/components/Timeline/TimelineSelection.js +30 -170
  87. package/dist/components/Timeline/TimelineSequenceItem.d.ts +1 -0
  88. package/dist/components/Timeline/TimelineSequenceItem.js +8 -6
  89. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +3 -4
  90. package/dist/components/Timeline/delete-selected-timeline-item.d.ts +3 -4
  91. package/dist/components/Timeline/duplicate-selected-timeline-item.d.ts +3 -4
  92. package/dist/components/Timeline/find-track-for-node-path-info.d.ts +1 -1
  93. package/dist/components/Timeline/keyframe-clipboard.d.ts +2 -3
  94. package/dist/components/Timeline/reset-selected-timeline-props.d.ts +2 -3
  95. package/dist/components/Timeline/sequence-prop-clipboard.d.ts +2 -3
  96. package/dist/components/Timeline/split-selected-timeline-item.d.ts +2 -3
  97. package/dist/components/Timeline/timeline-expanded-filter.d.ts +1 -2
  98. package/dist/components/Timeline/timeline-scroll-logic.d.ts +7 -5
  99. package/dist/components/Timeline/timeline-scroll-logic.js +12 -7
  100. package/dist/components/Timeline/update-selected-easing.d.ts +7 -7
  101. package/dist/components/Timeline/use-timeline-asset-drop.js +24 -1
  102. package/dist/components/Timeline/use-timeline-keyframe-drag.d.ts +6 -7
  103. package/dist/components/WebMcp.d.ts +2 -0
  104. package/dist/components/WebMcp.js +945 -0
  105. package/dist/components/canvas-capture-drop.d.ts +4 -0
  106. package/dist/components/canvas-capture-drop.js +22 -0
  107. package/dist/components/composition-menu-items.js +26 -0
  108. package/dist/components/selected-outline-geometry.d.ts +2 -21
  109. package/dist/components/selected-outline-geometry.js +5 -16
  110. package/dist/components/selected-outline-measurement.d.ts +8 -37
  111. package/dist/components/selected-outline-measurement.js +1 -231
  112. package/dist/components/selected-outline-types.d.ts +2 -15
  113. package/dist/components/selected-outline-uv.js +3 -106
  114. package/dist/esm/{chunk-w4244j4n.js → chunk-7prjt5n5.js} +32831 -26820
  115. package/dist/esm/internals.mjs +32831 -26820
  116. package/dist/esm/previewEntry.mjs +17304 -11293
  117. package/dist/esm/renderEntry.mjs +1 -1
  118. package/dist/helpers/calculate-timeline.d.ts +1 -7
  119. package/dist/helpers/calculate-timeline.js +2 -146
  120. package/dist/helpers/create-folder-tree.js +16 -1
  121. package/dist/helpers/editor-ruler.js +6 -5
  122. package/dist/helpers/format-file-location.d.ts +8 -0
  123. package/dist/helpers/format-file-location.js +14 -3
  124. package/dist/helpers/get-asset-metadata.d.ts +19 -0
  125. package/dist/helpers/get-asset-metadata.js +51 -6
  126. package/dist/helpers/get-connected-compositions.d.ts +1 -6
  127. package/dist/helpers/get-connected-compositions.js +2 -8
  128. package/dist/helpers/get-sequence-visible-range.d.ts +1 -5
  129. package/dist/helpers/get-sequence-visible-range.js +6 -51
  130. package/dist/helpers/get-timeline-max-zoom.d.ts +8 -0
  131. package/dist/helpers/get-timeline-max-zoom.js +17 -6
  132. package/dist/helpers/get-timeline-nestedness.d.ts +1 -2
  133. package/dist/helpers/get-timeline-nestedness.js +2 -12
  134. package/dist/helpers/get-timeline-sequence-sort-key.d.ts +2 -22
  135. package/dist/helpers/get-timeline-sequence-sort-key.js +2 -16
  136. package/dist/helpers/hoverable.d.ts +1 -0
  137. package/dist/helpers/hoverable.js +4 -1
  138. package/dist/helpers/is-current-selected-still.js +4 -2
  139. package/dist/helpers/sort-by-nonce-history.d.ts +1 -5
  140. package/dist/helpers/sort-by-nonce-history.js +3 -148
  141. package/dist/helpers/timeline-node-path-key.d.ts +1 -2
  142. package/dist/helpers/timeline-node-path-key.js +2 -2
  143. package/dist/helpers/use-menu-structure.js +20 -0
  144. package/dist/icons/enter.d.ts +4 -0
  145. package/dist/icons/enter.js +10 -0
  146. package/dist/state/editor-pixel-grid.d.ts +8 -0
  147. package/dist/state/editor-pixel-grid.js +18 -0
  148. package/dist/state/modals.d.ts +4 -0
  149. package/dist/state/playbackrate.d.ts +1 -0
  150. package/dist/state/playbackrate.js +4 -1
  151. package/package.json +14 -12
  152. package/dist/components/selected-outline-order.d.ts +0 -12
  153. package/dist/components/selected-outline-order.js +0 -251
  154. package/dist/helpers/get-box-quads-polyfill-internals.d.ts +0 -82
  155. package/dist/helpers/get-box-quads-polyfill-internals.js +0 -2403
  156. package/dist/helpers/get-box-quads-ponyfill.d.ts +0 -10
  157. package/dist/helpers/get-box-quads-ponyfill.js +0 -23
@@ -1,251 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.orderOutlinesForRendering = void 0;
4
- const outlinePointEqualityTolerance = 0.5;
5
- const outlineAreaEqualityTolerance = 0.5;
6
- const outlineBoundsOverlapTolerance = 0.5;
7
- const outlinePointsAreEquivalent = (a, b) => {
8
- return (Math.abs(a.x - b.x) <= outlinePointEqualityTolerance &&
9
- Math.abs(a.y - b.y) <= outlinePointEqualityTolerance);
10
- };
11
- const outlinesHaveEquivalentHitArea = (a, b) => {
12
- if (a.points.length !== b.points.length) {
13
- return false;
14
- }
15
- for (let startIndex = 0; startIndex < b.points.length; startIndex++) {
16
- for (const direction of [1, -1]) {
17
- const pointsMatch = a.points.every((point, index) => {
18
- const bIndex = (startIndex + direction * index + b.points.length) % b.points.length;
19
- return outlinePointsAreEquivalent(point, b.points[bIndex]);
20
- });
21
- if (pointsMatch) {
22
- return true;
23
- }
24
- }
25
- }
26
- return false;
27
- };
28
- const getOutlineHitArea = (outline) => {
29
- let area = 0;
30
- for (let i = 0; i < outline.points.length; i++) {
31
- const current = outline.points[i];
32
- const next = outline.points[(i + 1) % outline.points.length];
33
- area += current.x * next.y - next.x * current.y;
34
- }
35
- return Math.abs(area) / 2;
36
- };
37
- const getOutlineBounds = (outline) => {
38
- const xs = outline.points.map((point) => point.x);
39
- const ys = outline.points.map((point) => point.y);
40
- return {
41
- maxX: Math.max(...xs),
42
- maxY: Math.max(...ys),
43
- minX: Math.min(...xs),
44
- minY: Math.min(...ys),
45
- };
46
- };
47
- const outlineBoundsOverlap = (a, b) => {
48
- const aBounds = getOutlineBounds(a);
49
- const bBounds = getOutlineBounds(b);
50
- return (aBounds.minX <= bBounds.maxX + outlineBoundsOverlapTolerance &&
51
- aBounds.maxX + outlineBoundsOverlapTolerance >= bBounds.minX &&
52
- aBounds.minY <= bBounds.maxY + outlineBoundsOverlapTolerance &&
53
- aBounds.maxY + outlineBoundsOverlapTolerance >= bBounds.minY);
54
- };
55
- const getSequenceId = (target) => {
56
- var _a;
57
- var _b;
58
- return (_b = (_a = target === null || target === void 0 ? void 0 : target.sequence) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null;
59
- };
60
- const getParentBySequenceId = ({ sequences, targetsByKey, }) => {
61
- const parentBySequenceId = new Map();
62
- for (const sequence of sequences) {
63
- parentBySequenceId.set(sequence.id, sequence.parent);
64
- }
65
- for (const target of targetsByKey.values()) {
66
- const sequenceId = getSequenceId(target);
67
- if (sequenceId !== null && !parentBySequenceId.has(sequenceId)) {
68
- parentBySequenceId.set(sequenceId, target.sequence.parent);
69
- }
70
- }
71
- return parentBySequenceId;
72
- };
73
- const isAncestorTarget = ({ ancestor, descendant, parentBySequenceId, }) => {
74
- var _a;
75
- var _b, _c;
76
- const ancestorId = getSequenceId(ancestor);
77
- if (ancestorId === null) {
78
- return false;
79
- }
80
- let parentId = (_b = (_a = descendant.sequence) === null || _a === void 0 ? void 0 : _a.parent) !== null && _b !== void 0 ? _b : null;
81
- while (parentId !== null) {
82
- if (parentId === ancestorId) {
83
- return true;
84
- }
85
- parentId = (_c = parentBySequenceId.get(parentId)) !== null && _c !== void 0 ? _c : null;
86
- }
87
- return false;
88
- };
89
- const orderOutlineGroup = ({ outlines, parentBySequenceId, targetsByKey, }) => {
90
- var _a;
91
- var _b, _c, _d, _e;
92
- const incomingEdges = new Map();
93
- const outgoingEdges = new Map();
94
- const outlinesByKey = new Map(outlines.map((outline) => [outline.key, outline]));
95
- for (const outline of outlines) {
96
- incomingEdges.set(outline.key, new Set());
97
- outgoingEdges.set(outline.key, new Set());
98
- }
99
- const hasPath = ({ fromKey, seen, toKey, }) => {
100
- var _a;
101
- if (fromKey === toKey) {
102
- return true;
103
- }
104
- if (seen.has(fromKey)) {
105
- return false;
106
- }
107
- seen.add(fromKey);
108
- for (const nextKey of (_a = outgoingEdges.get(fromKey)) !== null && _a !== void 0 ? _a : []) {
109
- if (hasPath({ fromKey: nextKey, seen, toKey })) {
110
- return true;
111
- }
112
- }
113
- return false;
114
- };
115
- const addEdge = (before, after, options) => {
116
- if (before.key === after.key) {
117
- return;
118
- }
119
- const incoming = incomingEdges.get(after.key);
120
- const outgoing = outgoingEdges.get(before.key);
121
- if (incoming === undefined || outgoing === undefined) {
122
- throw new Error('Expected outline to be registered before adding edge');
123
- }
124
- if (outgoing.has(after.key)) {
125
- return;
126
- }
127
- if (hasPath({ fromKey: after.key, seen: new Set(), toKey: before.key })) {
128
- if (options === null || options === void 0 ? void 0 : options.skipIfCycle) {
129
- return;
130
- }
131
- throw new Error('Could not determine a stable outline rendering order');
132
- }
133
- incoming.add(before.key);
134
- outgoing.add(after.key);
135
- };
136
- const addAncestorConstraint = ({ ancestor, descendant, descendantContainsSelection, equivalentHitArea, }) => {
137
- // Usually, children should be above parents so nested elements are directly
138
- // selectable. If an unselected child has the same hit area as its parent, put
139
- // it below the parent so the wrapper can be selected. Once the child or
140
- // one of its properties is selected, keep it above the parent so it remains
141
- // directly draggable.
142
- if (equivalentHitArea && !descendantContainsSelection) {
143
- addEdge(descendant, ancestor);
144
- }
145
- else {
146
- addEdge(ancestor, descendant);
147
- }
148
- };
149
- const outlineBySequenceId = new Map();
150
- for (const outline of outlines) {
151
- const sequenceId = getSequenceId(targetsByKey.get(outline.key));
152
- if (sequenceId !== null) {
153
- outlineBySequenceId.set(sequenceId, outline);
154
- }
155
- }
156
- // Only constrain each outline against its nearest rendered ancestor. The
157
- // resulting graph follows the sequence tree, so pairwise subpixel equivalence
158
- // cannot introduce contradictory edges across three nested outlines.
159
- for (const descendant of outlines) {
160
- const descendantTarget = targetsByKey.get(descendant.key);
161
- let parentId = (_b = (_a = descendantTarget === null || descendantTarget === void 0 ? void 0 : descendantTarget.sequence) === null || _a === void 0 ? void 0 : _a.parent) !== null && _b !== void 0 ? _b : null;
162
- while (parentId !== null) {
163
- const ancestor = outlineBySequenceId.get(parentId);
164
- if (ancestor !== undefined) {
165
- addAncestorConstraint({
166
- ancestor,
167
- descendant,
168
- descendantContainsSelection: ((_c = descendantTarget === null || descendantTarget === void 0 ? void 0 : descendantTarget.selected) !== null && _c !== void 0 ? _c : false) ||
169
- ((_d = descendantTarget === null || descendantTarget === void 0 ? void 0 : descendantTarget.containsSelection) !== null && _d !== void 0 ? _d : false),
170
- equivalentHitArea: outlinesHaveEquivalentHitArea(ancestor, descendant),
171
- });
172
- break;
173
- }
174
- parentId = (_e = parentBySequenceId.get(parentId)) !== null && _e !== void 0 ? _e : null;
175
- }
176
- }
177
- // For unrelated overlapping outlines, put broader hit targets below
178
- // smaller ones so a large selected sequence cannot swallow clicks on
179
- // a more specific element in the same canvas area.
180
- for (let i = 0; i < outlines.length; i++) {
181
- for (let j = i + 1; j < outlines.length; j++) {
182
- const a = outlines[i];
183
- const b = outlines[j];
184
- const aTarget = targetsByKey.get(a.key);
185
- const bTarget = targetsByKey.get(b.key);
186
- if (aTarget === undefined || bTarget === undefined) {
187
- continue;
188
- }
189
- const aAncestorOfB = isAncestorTarget({
190
- ancestor: aTarget,
191
- descendant: bTarget,
192
- parentBySequenceId,
193
- });
194
- const bAncestorOfA = isAncestorTarget({
195
- ancestor: bTarget,
196
- descendant: aTarget,
197
- parentBySequenceId,
198
- });
199
- if (aAncestorOfB || bAncestorOfA || !outlineBoundsOverlap(a, b)) {
200
- continue;
201
- }
202
- const aArea = getOutlineHitArea(a);
203
- const bArea = getOutlineHitArea(b);
204
- if (Math.abs(aArea - bArea) <= outlineAreaEqualityTolerance) {
205
- continue;
206
- }
207
- if (aArea > bArea) {
208
- addEdge(a, b, { skipIfCycle: true });
209
- }
210
- else {
211
- addEdge(b, a, { skipIfCycle: true });
212
- }
213
- }
214
- }
215
- const emitted = new Set();
216
- const visiting = new Set();
217
- const ordered = [];
218
- const visit = (outline) => {
219
- var _a;
220
- if (emitted.has(outline.key)) {
221
- return;
222
- }
223
- if (visiting.has(outline.key)) {
224
- throw new Error('Could not determine a stable outline rendering order');
225
- }
226
- visiting.add(outline.key);
227
- for (const dependencyKey of (_a = incomingEdges.get(outline.key)) !== null && _a !== void 0 ? _a : []) {
228
- const dependency = outlinesByKey.get(dependencyKey);
229
- if (dependency === undefined) {
230
- throw new Error('Expected outline dependency to exist');
231
- }
232
- visit(dependency);
233
- }
234
- visiting.delete(outline.key);
235
- emitted.add(outline.key);
236
- ordered.push(outline);
237
- };
238
- for (const outline of outlines) {
239
- visit(outline);
240
- }
241
- return ordered;
242
- };
243
- const orderOutlinesForRendering = ({ outlines, sequences, targetsByKey, }) => {
244
- const parentBySequenceId = getParentBySequenceId({ sequences, targetsByKey });
245
- return orderOutlineGroup({
246
- outlines,
247
- parentBySequenceId,
248
- targetsByKey,
249
- });
250
- };
251
- exports.orderOutlinesForRendering = orderOutlinesForRendering;
@@ -1,82 +0,0 @@
1
- /**
2
- * @param {globalThis} windowObj?
3
- * @param {boolean=} force
4
- */
5
- export declare function addPolyfill(windowObj?: globalThis, force?: boolean | undefined): void;
6
- /**
7
- * @param {globalThis} windowObj?
8
- */
9
- export declare function patchAdoptNode(windowObj?: globalThis): void;
10
- /**
11
- * @param {Node} node
12
- * @param {DOMQuadInit} quad
13
- * @param {Element} from
14
- * @param {{fromBox?: 'margin'|'border'|'padding'|'content', toBox?: 'margin'|'border'|'padding'|'content', iframes?: HTMLIFrameElement[]}=} options
15
- * @returns {DOMQuad}
16
- */
17
- export declare function convertQuadFromNode(node: Node, quad: DOMQuadInit, from: Element, options?: {
18
- fromBox?: 'margin' | 'border' | 'padding' | 'content';
19
- toBox?: 'margin' | 'border' | 'padding' | 'content';
20
- iframes?: HTMLIFrameElement[];
21
- } | undefined): DOMQuad;
22
- /**
23
- * @param {Node} node
24
- * @param {{x: number, y: number, width: number, height: number}} rect
25
- * @param {Element} from
26
- * @param {{fromBox?: 'margin'|'border'|'padding'|'content', toBox?: 'margin'|'border'|'padding'|'content', iframes?: HTMLIFrameElement[]}=} options
27
- * @returns {DOMQuad}
28
- */
29
- export declare function convertRectFromNode(node: Node, rect: {
30
- x: number;
31
- y: number;
32
- width: number;
33
- height: number;
34
- }, from: Element, options?: {
35
- fromBox?: 'margin' | 'border' | 'padding' | 'content';
36
- toBox?: 'margin' | 'border' | 'padding' | 'content';
37
- iframes?: HTMLIFrameElement[];
38
- } | undefined): DOMQuad;
39
- /**
40
- * @param {Node} node
41
- * @param {DOMPointInit} point
42
- * @param {Element} from
43
- * @param {{fromBox?: 'margin'|'border'|'padding'|'content', toBox?: 'margin'|'border'|'padding'|'content', iframes?: HTMLIFrameElement[]}=} options
44
- * @returns {DOMPoint}
45
- */
46
- export declare function convertPointFromNode(node: Node, point: DOMPointInit, from: Element, options?: {
47
- fromBox?: 'margin' | 'border' | 'padding' | 'content';
48
- toBox?: 'margin' | 'border' | 'padding' | 'content';
49
- iframes?: HTMLIFrameElement[];
50
- } | undefined): DOMPoint;
51
- export declare function clearCache(): void;
52
- export declare function useCache(): void;
53
- /**
54
- * @param {Node} node
55
- * @param {{box?: 'margin'|'border'|'padding'|'content', relativeTo?: Element, iframes?: HTMLIFrameElement[]}=} options
56
- * @returns {DOMQuad[]}
57
- */
58
- export declare function getBoxQuads(node: Node, options?: {
59
- box?: 'margin' | 'border' | 'padding' | 'content';
60
- relativeTo?: Element;
61
- iframes?: HTMLIFrameElement[];
62
- } | undefined): DOMQuad[];
63
- /**
64
- * @param {Node} node
65
- * @param {DOMMatrix=} matrix
66
- */
67
- export declare function getElementSize(node: Node, matrix?: DOMMatrix | undefined): {
68
- width: number;
69
- height: number;
70
- };
71
- /**
72
- * @param {Node} node
73
- * @param {Element} ancestor
74
- * @param {HTMLIFrameElement[]} iframes
75
- * @param {boolean=} excludeSelfZoom
76
- */
77
- export declare function getResultingTransformationBetweenElementAndAllAncestors(node: Node, ancestor: Element, iframes: HTMLIFrameElement[], excludeSelfZoom?: boolean | undefined): DOMMatrix;
78
- /**
79
- * @param {Node} element
80
- * @param {HTMLIFrameElement[]=} iframes
81
- */
82
- export declare function getElementCombinedTransform(element: Node, iframes?: HTMLIFrameElement[] | undefined): DOMMatrix;