adobe-research / svgObjectModelGenerator

SVG OM Generator & Writer
Apache License 2.0
49 stars 20 forks source link

generator.getSVG(...) strange behaviour (viewport/layers blinking) #104

Closed joelrbrandt closed 10 years ago

joelrbrandt commented 10 years ago

This issue was originally filed by @alekbarszczewski at adobe-photoshop/generator-core#282

@alekbarszczewski said:

Something strange is happening when using generator.getSVG(documentId, layerId). Here is the movie I have captured when getting SVGs for few layers - https://www.dropbox.com/s/kqm7d5rrrhhylur/get-layer-svg.mov?dl=1. As you can see the upper PS menu is blinking and also layers for which I am getting SVGs are showing for a moment on viewport and disappear again. Moreover (it is not captured on screen) layer tree is expanding automatically, for the layers for which SVGs are retrieved. This is ONLY happening when I am calling generator.getSVG (If I comment this function call everything is fine; also I am not ingereting in PS UI, I am not selecting any layers etc.). Any idea why this is happening? I don't remember this issue on PS 14.x and Generator 2.x.

Right now I am testing on PS CC 2014.2.1 (15.2.1) and Generator 3.1.0.

joelrbrandt commented 10 years ago

Closing this -- I made a mistake. generator-core doesn't yet use svgOMG, so this problem isn't in the svgOMG code. We should switch to svgOMG in core, which would probably fix this problem.