Missing document properties
Opened this issue · 5 comments
- colorSamplerList
- countClass
- compsList
- numberOfGuides
- selection
- points
- artboards
- globalAngle
- json
- slicesVisibility
- viewTransform
- pageSetup
- printSettings
- rulerPoints
@jardicc I've added them all. For pageSetup
and printSettings
I get an error when I try to fetch those with Alchemist, so I've set them to any
for now. Do you know their exact type?
Also, I was wondering why these properties are hidden on the Document Descriptor..
Some are hidden because their existence is conditional. E.g. countClass will show only when you used the count tool. Others could be hidden for performance reasons and for the rest I don't know. Maybe someone did no though that he should add it :-D
I will look for pageSetup later.
The first reason is what i thought at first, too. But even when I had the specific thing active (counts, selection, ruler-line etc.) and logged a full document descriptor, they didn't show up. So I guess you have to directly ask for the property.
Oh and I forgot to ask: Is there even a rulerPoints
property? The values are already stored in the points
object I think.
If you look here I have 3 types of properties: default (always shown), optional (if exists in document), hidden (always requires property) https://github.com/jardicc/alchemist/blob/master/src/inspector/store/initialState.ts#L368
@jardicc the points
/ rulerPoints
still has me confused. I can now access the rulerPoints
property, but the property name is actually points
(shown in Alchemist's return). Accessing the points
property gives me the "command currently not available" error.
Anways, I've added rulerPoints
as an optional property.