Jump to content

Recommended Posts

Posted

Here is a question for the developers and support:

Of course, scripting or any other API are not yet available
I am still curious, how Affinity is built internally.

With HTML5+CSS, for example, we are able to nest elements and make their position, dimensions etc. depend on each other, using e.g. CSS grid.

Is Affinity built in a similar way, internally? What does the document object model look like?

I am wondering for example, if theoretically it is possible to create annotation boxes in a margin, that not only follow the position they are anchored to within a main text column, but also the position and dimensions of a frame, that defines where the margin in located, within which these annotation boxes actually are situated, as well as a connector / arrow, that points from the annotation box to the anchor.

Here is a visual of

  • such a main column (a website layout section)
  • with annotations in left and right margin, that are in consistent vertical alignment
  • pointers (red)
  • and (on the very left) automatically growing/shrinking grouping indicators, that contain the annotation boxes

image.png.582dfebab75c7b6bdc2240f5c3199511.png

Would such a thing be achievable when scripting becomes available just relying on the existing document object model or does it not provide for that?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.