Plugin Directory

Changeset 3819485


Ignore:
Timestamp:
11/24/2026 01:27:35 AM (less than one hour ago)
Author:
printblob
Message:

PrintBlob 1.7.13

Location:
printblob
Files:
8 added
8 deleted
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • printblob/tags/1.7.13/build/designer/block.json

    r3817549 r3819485  
    4444  "textdomain": "printblob",
    4545  "editorScript": "file:./index.9895673ad76b3df3.js",
    46   "viewScript": "file:./view.cdcdd7571d14bcc7.js",
     46  "viewScript": "file:./view.361730ee18b08e05.js",
    4747  "editorStyle": "file:./index.6031821f928bebf4.css",
    4848  "render": "file:./render.php"
  • printblob/tags/1.7.13/build/files.json

    r3817549 r3819485  
    11{
    2         "build": "a297d6bcbf06663b",
     2        "build": "2aadcda5acc9a5e3",
    33        "files": {
    44                "admin/admin.css": "admin/admin.31d5f5d3c271bbf6.css",
    … …  
    1717                "designer/ordered.js": "designer/ordered.9aca089b067170c2.js",
    1818                "designer/print-files.js": "designer/print-files.d4b578762ae7e063.js",
    19                 "designer/view.css": "designer/view.f3d6e11ce1099052.css",
    20                 "designer/view.js": "designer/view.cdcdd7571d14bcc7.js",
     19                "designer/view.css": "designer/view.8ca2284ccbcb7a6e.css",
     20                "designer/view.js": "designer/view.361730ee18b08e05.js",
    2121                "printblob-pdf.js": "printblob-pdf.32158e13e470b3d6.js",
    2222                "printblob-text.js": "printblob-text.e5314e5533f8245c.js",
  • printblob/tags/1.7.13/languages/printblob.pot

    r3817549 r3819485  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PrintBlob – Free Custom T-Shirt Designer & Product Customizer for WooCommerce 1.7.12\n"
     5"Project-Id-Version: PrintBlob – Free Custom T-Shirt Designer & Product Customizer for WooCommerce 1.7.13\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/printblob\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-22T23:59:57+00:00\n"
     12"POT-Creation-Date: 2026-11-23T09:28:15+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • printblob/tags/1.7.13/printblob.php

    r3817549 r3819485  
    44 * Plugin URI:        https://printblob.com/
    55 * Description:       Customers design their own t-shirt print — photos, logos and text — see it on the t-shirt, and order it through WooCommerce with the design and its preview kept with the order.
    6  * Version:           1.7.12
     6 * Version:           1.7.13
    77 * Requires at least: 7.0
    88 * Requires PHP:      7.4
  • printblob/tags/1.7.13/readme.txt

    r3817549 r3819485  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.7.12
     7Stable tag: 1.7.13
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    137137
    138138== Changelog ==
     139
     140= 1.7.13 =
     141* A side's tab shows its print dot larger, clear of the tab's rounded corner however round the theme makes its buttons, and the end of every tab keeps the dot's room, so a side's name never runs under it.
     142* Under a header that sticks to the top of the window once the page scrolls, the picture stays just under the header, no longer as far below it as the header stood before it stuck.
    139143
    140144= 1.7.12 =
  • printblob/tags/1.7.13/src/designer/app/follow.ts

    r3800317 r3819485  
    2727}
    2828
     29export interface PinnedBar {
     30        position: string;
     31        stick: string;
     32        top: number;
     33        bottom: number;
     34        height: number;
     35}
     36
     37export function barBottom(bar: PinnedBar, viewTop: number, pinned: number): number {
     38        const stick = Number.parseFloat(bar.stick);
     39        if (bar.position === 'sticky' && Number.isFinite(stick)) {
     40                return viewTop + stick + bar.height;
     41        }
     42        return Math.max(bar.bottom, Math.max(bar.top, pinned) + bar.height);
     43}
     44
    2945function pinnedOver(x: number, top: number, designer: Element): number {
    3046        const host = seenAs(designer);
    … …  
    4763                }
    4864                const box = bar?.getBoundingClientRect();
    49                 const bottom = box ? Math.max(box.bottom, Math.max(box.top, pinned) + box.height) : 0;
     65                const style = bar && getComputedStyle(bar);
     66                const bottom =
     67                        box && style ? barBottom({ position: style.position, stick: style.top, top: box.top, bottom: box.bottom, height: box.height }, top, pinned) : 0;
    5068                if (!bar || bottom <= pinned || bottom - top > window.innerHeight / 2) {
    5169                        break;
  • printblob/tags/1.7.13/src/designer/view.scss

    r3817549 r3819485  
     1@use 'sass:math';
    12@use 'sass:selector';
    23@function rems($count) {
    … …  
    209210        display: none;
    210211}
     212$dot-size: rems(0.625);
     213$dot-curve: rems(0.25);
     214$dot-edge: rems(0.375);
     215@function dot-inset($corner) {
     216        $diagonal: math.div(1, math.sqrt(2));
     217        @return max(#{$dot-edge}, calc(#{$corner} * #{1 - $diagonal} + (#{$dot-curve} + #{$dot-size} / 2) * #{$diagonal} - #{$dot-size} / 2));
     218}
    211219.printblob-designer__sides {
    212220        --printblob-side-pad: #{rems(0.75)};
     221        --printblob-side-pad-end: max(var(--printblob-side-pad), calc(#{dot-inset(min(var(--printblob-radius), rems(1.25)))} + #{$dot-size} + #{rems(0.125)}));
    213222        --printblob-sides: 1;
    214223        container: printblob-sides / inline-size;
    … …  
    248257        min-width: auto;
    249258        min-height: rems(2.5);
    250         padding: rems(0.4) var(--printblob-side-pad);
     259        padding: rems(0.4) var(--printblob-side-pad-end) rems(0.4) var(--printblob-side-pad);
    251260        border: 0;
    252261        border-radius: var(--printblob-radius);
    … …  
    254263        font-size: clamp(
    255264                #{rems(0.75)},
    256                 calc(((100cqi - #{rems(0.5)} - (var(--printblob-sides) - 1) * #{rems(0.25)}) / var(--printblob-sides) - 2 * var(--printblob-side-pad)) / 4.5),
     265                calc(
     266                        (
     267                                        (100cqi - #{rems(0.5)} - (var(--printblob-sides) - 1) * #{rems(0.25)}) / var(--printblob-sides) - var(--printblob-side-pad) -
     268                                                var(--printblob-side-pad-end)
     269                                ) /
     270                                4.5
     271                ),
    257272                #{rems(0.9375)}
    258273        );
    … …  
    343358.printblob-designer__side-dot {
    344359        position: absolute;
    345         top: rems(0.3);
    346         right: rems(0.3);
    347         width: 8px;
    348         height: 8px;
    349         border-radius: 50%;
    350         background: var(--printblob-cobalt);
     360        top: 0;
     361        right: 0;
     362        height: 100%;
     363        aspect-ratio: 1;
     364        pointer-events: none;
     365
     366        &::after {
     367                content: '';
     368                position: absolute;
     369                top: dot-inset(min(var(--printblob-radius), 50%));
     370                right: dot-inset(min(var(--printblob-radius), 50%));
     371                width: $dot-size;
     372                height: $dot-size;
     373                border-radius: 50%;
     374                background: var(--printblob-cobalt);
     375        }
    351376
    352377        &:not(.is-shown) {
  • printblob/trunk/build/designer/block.json

    r3817549 r3819485  
    4444  "textdomain": "printblob",
    4545  "editorScript": "file:./index.9895673ad76b3df3.js",
    46   "viewScript": "file:./view.cdcdd7571d14bcc7.js",
     46  "viewScript": "file:./view.361730ee18b08e05.js",
    4747  "editorStyle": "file:./index.6031821f928bebf4.css",
    4848  "render": "file:./render.php"
  • printblob/trunk/build/files.json

    r3817549 r3819485  
    11{
    2         "build": "a297d6bcbf06663b",
     2        "build": "2aadcda5acc9a5e3",
    33        "files": {
    44                "admin/admin.css": "admin/admin.31d5f5d3c271bbf6.css",
    … …  
    1717                "designer/ordered.js": "designer/ordered.9aca089b067170c2.js",
    1818                "designer/print-files.js": "designer/print-files.d4b578762ae7e063.js",
    19                 "designer/view.css": "designer/view.f3d6e11ce1099052.css",
    20                 "designer/view.js": "designer/view.cdcdd7571d14bcc7.js",
     19                "designer/view.css": "designer/view.8ca2284ccbcb7a6e.css",
     20                "designer/view.js": "designer/view.361730ee18b08e05.js",
    2121                "printblob-pdf.js": "printblob-pdf.32158e13e470b3d6.js",
    2222                "printblob-text.js": "printblob-text.e5314e5533f8245c.js",
  • printblob/trunk/languages/printblob.pot

    r3817549 r3819485  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PrintBlob – Free Custom T-Shirt Designer & Product Customizer for WooCommerce 1.7.12\n"
     5"Project-Id-Version: PrintBlob – Free Custom T-Shirt Designer & Product Customizer for WooCommerce 1.7.13\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/printblob\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-22T23:59:57+00:00\n"
     12"POT-Creation-Date: 2026-11-23T09:28:15+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • printblob/trunk/printblob.php

    r3817549 r3819485  
    44 * Plugin URI:        https://printblob.com/
    55 * Description:       Customers design their own t-shirt print — photos, logos and text — see it on the t-shirt, and order it through WooCommerce with the design and its preview kept with the order.
    6  * Version:           1.7.12
     6 * Version:           1.7.13
    77 * Requires at least: 7.0
    88 * Requires PHP:      7.4
  • printblob/trunk/readme.txt

    r3817549 r3819485  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.7.12
     7Stable tag: 1.7.13
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    137137
    138138== Changelog ==
     139
     140= 1.7.13 =
     141* A side's tab shows its print dot larger, clear of the tab's rounded corner however round the theme makes its buttons, and the end of every tab keeps the dot's room, so a side's name never runs under it.
     142* Under a header that sticks to the top of the window once the page scrolls, the picture stays just under the header, no longer as far below it as the header stood before it stuck.
    139143
    140144= 1.7.12 =
  • printblob/trunk/src/designer/app/follow.ts

    r3800317 r3819485  
    2727}
    2828
     29export interface PinnedBar {
     30        position: string;
     31        stick: string;
     32        top: number;
     33        bottom: number;
     34        height: number;
     35}
     36
     37export function barBottom(bar: PinnedBar, viewTop: number, pinned: number): number {
     38        const stick = Number.parseFloat(bar.stick);
     39        if (bar.position === 'sticky' && Number.isFinite(stick)) {
     40                return viewTop + stick + bar.height;
     41        }
     42        return Math.max(bar.bottom, Math.max(bar.top, pinned) + bar.height);
     43}
     44
    2945function pinnedOver(x: number, top: number, designer: Element): number {
    3046        const host = seenAs(designer);
    … …  
    4763                }
    4864                const box = bar?.getBoundingClientRect();
    49                 const bottom = box ? Math.max(box.bottom, Math.max(box.top, pinned) + box.height) : 0;
     65                const style = bar && getComputedStyle(bar);
     66                const bottom =
     67                        box && style ? barBottom({ position: style.position, stick: style.top, top: box.top, bottom: box.bottom, height: box.height }, top, pinned) : 0;
    5068                if (!bar || bottom <= pinned || bottom - top > window.innerHeight / 2) {
    5169                        break;
  • printblob/trunk/src/designer/view.scss

    r3817549 r3819485  
     1@use 'sass:math';
    12@use 'sass:selector';
    23@function rems($count) {
    … …  
    209210        display: none;
    210211}
     212$dot-size: rems(0.625);
     213$dot-curve: rems(0.25);
     214$dot-edge: rems(0.375);
     215@function dot-inset($corner) {
     216        $diagonal: math.div(1, math.sqrt(2));
     217        @return max(#{$dot-edge}, calc(#{$corner} * #{1 - $diagonal} + (#{$dot-curve} + #{$dot-size} / 2) * #{$diagonal} - #{$dot-size} / 2));
     218}
    211219.printblob-designer__sides {
    212220        --printblob-side-pad: #{rems(0.75)};
     221        --printblob-side-pad-end: max(var(--printblob-side-pad), calc(#{dot-inset(min(var(--printblob-radius), rems(1.25)))} + #{$dot-size} + #{rems(0.125)}));
    213222        --printblob-sides: 1;
    214223        container: printblob-sides / inline-size;
    … …  
    248257        min-width: auto;
    249258        min-height: rems(2.5);
    250         padding: rems(0.4) var(--printblob-side-pad);
     259        padding: rems(0.4) var(--printblob-side-pad-end) rems(0.4) var(--printblob-side-pad);
    251260        border: 0;
    252261        border-radius: var(--printblob-radius);
    … …  
    254263        font-size: clamp(
    255264                #{rems(0.75)},
    256                 calc(((100cqi - #{rems(0.5)} - (var(--printblob-sides) - 1) * #{rems(0.25)}) / var(--printblob-sides) - 2 * var(--printblob-side-pad)) / 4.5),
     265                calc(
     266                        (
     267                                        (100cqi - #{rems(0.5)} - (var(--printblob-sides) - 1) * #{rems(0.25)}) / var(--printblob-sides) - var(--printblob-side-pad) -
     268                                                var(--printblob-side-pad-end)
     269                                ) /
     270                                4.5
     271                ),
    257272                #{rems(0.9375)}
    258273        );
    … …  
    343358.printblob-designer__side-dot {
    344359        position: absolute;
    345         top: rems(0.3);
    346         right: rems(0.3);
    347         width: 8px;
    348         height: 8px;
    349         border-radius: 50%;
    350         background: var(--printblob-cobalt);
     360        top: 0;
     361        right: 0;
     362        height: 100%;
     363        aspect-ratio: 1;
     364        pointer-events: none;
     365
     366        &::after {
     367                content: '';
     368                position: absolute;
     369                top: dot-inset(min(var(--printblob-radius), 50%));
     370                right: dot-inset(min(var(--printblob-radius), 50%));
     371                width: $dot-size;
     372                height: $dot-size;
     373                border-radius: 50%;
     374                background: var(--printblob-cobalt);
     375        }
    351376
    352377        &:not(.is-shown) {
Note: See TracChangeset for help on using the changeset viewer.