simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Nov 25 18:43:19 GMT 2022
TL;DR:
d90c0a9 flip: Set a lower bound on the size of little diagrams
a6a7997 js: Correct co-ordinate-mapping function for what CSS actually does
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2022-11-25 18:43:19
commit d90c0a9edb14519ccce41a25fec5c1f60bfd152d
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=d90c0a9edb14519ccce41a25fec5c1f60bfd152d;hp=0b36c01639c4b2f52e49c086b6d645883fbea397
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Fri Nov 25 18:04:39 2022 +0000
flip: Set a lower bound on the size of little diagrams
This ensures that they don't vanish entirely and small tile sizes.
flip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit a6a799720f53d52721284c201e2dfc81610c2e40
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=a6a799720f53d52721284c201e2dfc81610c2e40;hp=d90c0a9edb14519ccce41a25fec5c1f60bfd152d
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Fri Nov 25 18:42:44 2022 +0000
js: Correct co-ordinate-mapping function for what CSS actually does
By default, CSS uses "object-fit: fill", which means that an object is
independently scaled in both dimensions to fit its containing box.
This is simpler than what I'd assumed (which was "object-fill:
contain"). Obviously, the HTML could be changed to use a different
object-fit, in which case this code would have to detect it, but for
now following the CSS default is more correct than not.
emccpre.js | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
More information about the tartarus-commits
mailing list