Layout-Flex 0.06
“CSS flexbox layout engine with wrap, gap, margin, and content driven sizing”
Source contains an unconditional loopHigh Perl single-character identifier ratio
SHA-25637c3bb9ef76c0bea499a66a2192946606cdfe485a53f2a578cea213b6edd712a
MaleculeO(As)H(Db)
Evidence
1#!perl
2use 5.008003;
3use strict;
4use warnings;
5use Test2::Bundle::Numerical;
6
7use Layout::Flex;
8
9sub c { Layout::Flex->compute(@_) }
10
11# ── measure => 'simple': 0.6em wide per char, 1.4em tall ─────────
12
13{
14 # "Hello" = 5 chars, font_size=10 → w=30, h=14
15 my @o = c(
16 main_size => 200,
17 cross_size => 100,
18 measure => 'simple',
19 …
28:68… size');
29}
30
31# ── font_size scales both width and height ────────────────────────
32
33{
⋯4 lines
117:88… ��─────────
118
119{
120 # measurer that returns fixed 50×20 for any text
121 my $measurer = sub {
122 my ($item) = @_;
⋯4 lines
7:2… */
8
9#ifndef LAYOUT_FLEX_H
10#define LAYOUT_FLEX_H
11
12#include <stdlib.h>
13#include <float.h>
14
15/* ── direction ──────────────────────────────────────────────────── */
⋯7 lines
1package Layout::Flex;
2
3use 5.008003;
4use strict;
5use warnings;
6
7our $VERSION = '0.06';
8
9use Font::Metrics ();
10
11require XSLoader;
12XSLoader::load('Layout::Flex', $VERSION);
13
⋯6 lines
20=head1 NAME
21
22Layout::Flex - CSS flexbox layout engine with wrap, gap, margin, and content driven sizing
23
24=head1 VERSION
⋯8 lines
Showing the top 5 files — 1 more file (13 regions) not shown.
No evidence locations were recorded for this file. Raw result