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

Add exportable option to default styles #952

Merged
merged 1 commit into from Mar 17, 2021

Conversation

robnee
Copy link
Contributor

@robnee robnee commented Mar 7, 2021

Primarily, this enables the user to export of construction entities in 2D views such as SVG and PDF as noted in #682. Previously construction entities were always skipped. The "export these objects" is now available for all default styles. One may turn off export of constraints or the inactive groups for example. Because export of construction entities is no longer blocked export option for custom styles also works for them.

This also adds the exportable flag to the factory defaults (so it can be reset) and support for saving the exportable option for default styles in the configuration. Construction entities with custom styles respect this option as well.

This also addresses a problem with missing contour fill for exported SVG.

To test this try exporting a sketch with construction entities. The default behavior is to skip them matching how SS behaves now. Then enable the export option for the construction entity style and re-export. You may also turn on/off other styles. Contour fill will now be exported for each style when exporting SVG

NOTE: Running this version will add new entries to the configuration (Registry, .config etc.) on exit when testing this code.

Primarily, this enables the user to export of construction entities in 2D
views such as SVG. Previously constuction entities were always skipped.
The "export these objects" is now available for all default styles.
One may turn off export of constraints or the inactive groups for example.
This also adds the exportable flag to the factory settings and
support for saving the exportable option for default styles in the
configuration. Construction entities with custom styles respect this
option as well.  NOTE:  Running this version will add new entries to the
configuration (Registry, .config etc.) on exit when testing this code.
@phkahler phkahler mentioned this pull request Mar 8, 2021
@phkahler
Copy link
Member

Does this close #957 ?

@robnee
Copy link
Contributor Author

robnee commented Mar 17, 2021

@phkahler No, this addresses a much older issue, #682.

@phkahler phkahler linked an issue Mar 17, 2021 that may be closed by this pull request
@phkahler phkahler merged commit 10ca307 into solvespace:master Mar 17, 2021
@robnee robnee deleted the constrexp branch March 19, 2021 22:30
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

Successfully merging this pull request may close these issues.

Option to export construction entities (to 2d view / PDF)
2 participants