Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Screens in Sketch 96 #63

Open
EricKramp opened this issue Apr 18, 2023 · 4 comments
Open

Blank Screens in Sketch 96 #63

EricKramp opened this issue Apr 18, 2023 · 4 comments

Comments

@EricKramp
Copy link

Hey @sonburn , thanks for the great plugins!

I'm seeing an issue with symbol swapper and also Instance Locator where some of the UI is rendering as a blank window. In Symbol Swapper, I'm able to perform most operations but when I get to the list of symbols skipped for swapping I get this blank screen.
Screen Shot 2023-04-18 at 3 04 13 PM

In Instance Locator I get the same window when I try to locate any instances.

@custa1200
Copy link

I get the same issue. It looks like it is also occurring over int the Symbol Locator plugin too @sonburn

@custa1200
Copy link

Looks like Sketch Devtools says this is what's tripping it up.

MOJavaScriptException: TypeError: instance.absoluteInfluenceRect is not a function. (In 'instance.absoluteInfluenceRect()', 'instance.absoluteInfluenceRect' is undefined)

I'm sure I saw something over of the Sketch Forums with them saying it has been removed... but they have not updated their API documentation to reflect any recent API changes. They are certainly making it harder for people.

@custa1200
Copy link

I saw this code in the newly updated Sketch Automate plugin.

if (version >= 96) { var relativeInfluenceRect = layer.immutableModelObject().influenceRectForBoundsInDocument(layer.documentData()); absoluteInfluenceRect = layer.convertRect_toLayer(relativeInfluenceRect, null); } else { absoluteInfluenceRect = layer.absoluteInfluenceRect(); } var exportRequest = MSExportRequest.exportRequestFromLayerAncestry_exportFormat_inRect( layer.ancestry(), exportFormat, layer.absoluteInfluenceRect() absoluteInfluenceRect );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants