Merge pull request #160 from presenton/fix/presentation-export
fix/presentation export
This commit is contained in:
commit
03843b35b5
3 changed files with 3 additions and 4 deletions
Binary file not shown.
|
|
@ -232,7 +232,7 @@ async function getAllChildElementsAttributes({ element, rootRect = null, depth =
|
|||
for (const childElementHandle of directChildElementHandles) {
|
||||
const attributes = await getElementAttributes(childElementHandle);
|
||||
|
||||
if (attributes.tagName === "style") {
|
||||
if (['style', 'script', 'link', 'meta', 'path'].includes(attributes.tagName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -268,8 +268,8 @@ async function getAllChildElementsAttributes({ element, rootRect = null, depth =
|
|||
|
||||
allResults.push({ attributes, depth });
|
||||
|
||||
//? If the element is a svg, canvas, or table, we don't need to go deeper
|
||||
if (attributes.should_screenshot) {
|
||||
//? If the element is a canvas, or table, we don't need to go deeper
|
||||
if (attributes.should_screenshot && attributes.tagName !== 'svg') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
"@tiptap/extension-underline": "^2.0.0",
|
||||
"@tiptap/react": "^2.11.5",
|
||||
"@tiptap/starter-kit": "^2.11.5",
|
||||
"@types/sharp": "^0.32.0",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.0.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue