Merge pull request #1838 from inkstitch/cvick32/pdf-pattern-only

cvick32/pdf pattern only
pull/1863/head
Cole Vick 2022-10-16 09:27:49 -05:00 zatwierdzone przez GitHub
commit b5b931240c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
6 zmienionych plików z 50 dodań i 3 usunięć

Wyświetl plik

@ -274,6 +274,8 @@ class Print(InkstitchExtension):
'client_detailedview': False,
'operator_overview': True,
'operator_detailedview': True,
'full_page_patternview': False,
'show_footer': False,
'custom_page': False
},
logo={'src': '', 'title': 'LOGO'},

Wyświetl plik

@ -736,6 +736,8 @@ $(function() {
settings["operator-detailedview"] = $("[data-field-name='operator-detailedview']").is(':checked');
settings["operator-detailedview-thumbnail-size"] = $("[data-field-name='operator-detailedview-thumbnail-size']").val();
settings["custom-page"] = $("[data-field-name='custom-page']").is(':checked');
settings["full-page-patternview"] = $("[data-field-name='full-page-patternview']").is(':checked');
settings["show-footer"] = $("[data-field-name='show-footer']").is(':checked');
settings["paper-size"] = $('select#printing-size').find(':selected').val();
var logo = $("figure.brandlogo img").attr('src');

Wyświetl plik

@ -573,6 +573,15 @@ body {
overflow: hidden;
}
figure.full-page-pattern {
border: none;
height: 265mm;
}
div.full-page-patternview figcaption {
display: none;
}
.client-overview-main figure.inksimulation {
height: 155mm;
}
@ -956,7 +965,7 @@ body {
height: 30mm;
}
.custom-page main {
.custom-page main, .custom-page main fieldset {
height: 230mm
}
#custom-page-tool-bar {
@ -969,6 +978,11 @@ body {
text-align: left;
}
@media print {
#custom-page-content {
border: none;
}
}
/* Color Swatch Logic */
/* reference : http://jsfiddle.net/jrulle/btg63ezy/3/ */
@ -1162,7 +1176,6 @@ body {
#errors,
span.logo-instructions,
#custom-page-tool-bar,
#custom-page-content,
.notice--warning {
display: none !important;
}

Wyświetl plik

@ -0,0 +1,17 @@
<main>
<figure class="inksimulation full-page-pattern operator"
data-field-name="full-page-patternview-transform"
title="{{ _('Ctrl + Scroll to Zoom') }}"
style="cursor: auto;">
{{ svg_overview|replace("<li>", "")|replace("</li>", "")|safe }}
{% with %}
{% set realistic_id='realistic-pattern-overview' %}
{% include 'ui_svg_action_buttons.html' with context %}
{% endwith %}
</figure>
</main>
<div class="show-footer" style="display: {{ 'block' if view.show_footer else 'none' }}">
{% include 'footer.html' %}
</div>

Wyświetl plik

@ -31,6 +31,10 @@
{# operator detailed view #}
{% include 'operator_detailedview.html' %}
{# full page pattern view #}
<div class="page full-page-patternview" style="display: {{'block' if view.full_page_patternview else 'none' }}">
{% include 'full_page_pattern.html' %}
</div>
{# custom pages #}
<div class="page custom-page" style="display: {{ 'block' if view.custom_page else 'none' }}">{% include 'custom-page.html' %}</div>
</body>

Wyświetl plik

@ -54,10 +54,19 @@
<input type="checkbox" class="view" id="operator-detailedview" data-field-name="operator-detailedview" CHECKED />
<label for="operator-detailedview">{{ _('Operator Detailed View') }}</label>
</p>
<p style="text-indent: 1.5em;">{{ _('Thumbnail size') }}:
<p style="text-indent: 1.5em;">
<label for="operator-detailedview-thumbnail-size">{{ _('Thumbnail size') }}</label>
<input type="range" min="15" max="110" value="15" step="5" id="operator-detailedview-thumbnail-size" data-field-name="operator-detailedview-thumbnail-size" style="vertical-align: middle;" />
<span id="display-thumbnail-size">15mm</span>
</p>
<p>
<input type="checkbox" class="view" id="full-page-patternview" data-field-name="full-page-patternview" />
<label for="full-page-patternview">{{ _('Full Page Pattern View') }}</label>
</p>
<p style="text-indent: 1.5em;">
<input type="checkbox" class="view" id="show-footer" data-field-name="show-footer" />
<label for="show-footer">{{ _('Show Footer') }}</label>
</p>
<p>
<input type="checkbox" class="view" id="custom-page" data-field-name="custom-page" />
<label for="custom-page">{{ _('Custom information sheet') }}</label>