mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
suport iFrame
This commit is contained in:
parent
9da3e47877
commit
44390cb146
6 changed files with 14 additions and 9 deletions
|
@ -27,6 +27,7 @@ import {
|
|||
import {
|
||||
isArrowElement,
|
||||
isBoundToContainer,
|
||||
isIframeLikeElement,
|
||||
isFrameLikeElement,
|
||||
isFreeDrawElement,
|
||||
isImageElement,
|
||||
|
@ -586,7 +587,7 @@ export const resizeSingleElement = (
|
|||
};
|
||||
|
||||
if ("scale" in element && "scale" in stateAtResizeStart) {
|
||||
if (isFrameLikeElement(element)) {
|
||||
if (isIframeLikeElement(element)) {
|
||||
if (shouldMaintainAspectRatio) {
|
||||
const scale: [number, number] = [
|
||||
Math.abs(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue