Denis Gomes
d94609d63f
M7: #1360 review: narrower density match, decoded image when the PNG is unreadable
...
A density now counts only within 0.005 of a whole 2x-4x multiple of
72 dpi. That covers the rounding of pixels per metre (144 dpi is stored
as 5669 or 5670) and rejects nearby resolutions: 141, 143 and 145 dpi
were read as 2x under the old 0.05.
Paste falls back to the decoded clipboard image when the clipboard's PNG
can't be read, instead of pasting nothing.
Also the line on what the objc2 crates are for, and the ROADMAP row for
the new placing default.
2026-10-27 01:39:28 -04:00
Denis Gomes
a497b99078
M7: place images at their own size, in points for 2x screenshots
...
A placed image was always fitted into 1000 px on its longer side, so a
screenshot of a 1440 px wide page came in at 1000 px and stopped lining
up with the design it was taken from. Figma places an image at its pixel
size and only scales down a side past 4096 px.
Placing now does the same, and reads the screen density a PNG records:
macOS screenshots carry 144 dpi (pHYs), so an 800 x 600 px capture of a
400 x 300 pt area comes in at 400 x 300, as in Figma. Only whole 2x-4x
multiples of 72 dpi count as a screen density; 300 dpi print scans and
other values keep their pixel size. The image data stays at full
resolution, so exports at 2x and up stay sharp.
On macOS, pasting reads the clipboard's public.png as is instead of the
decoded pixels arboard returns, which drop the density (and the colour
profile). Other platforms keep the decoded image.
Files dropped, Place image, paste and image.place all go through the
same path; an explicit width/height still wins.
2026-10-27 01:38:19 -04:00
aiongg
0330a7cc85
refactor(engine): move assets/components test files to assets/components/
2026-10-26 20:36:51 +00:00
aiongg
2576e646a1
refactor(engine): move sharing/background test files to sharing/background/
2026-10-26 20:36:51 +00:00
aiongg
7d70e0bfe5
refactor(engine): move assets/library test files to assets/library/
2026-10-26 20:36:51 +00:00
aiongg
9c97cb6e17
refactor(engine): move assets/library_server test files to assets/library_server/
2026-10-26 20:36:51 +00:00
aiongg
32bd9dc35a
refactor(engine): move fonts test files to fonts/
2026-10-26 20:36:51 +00:00
aiongg
3398ec3c8c
refactor(engine): move automation/file_access test files to automation/file_access/
2026-10-26 20:36:50 +00:00
aiongg
f664a82093
refactor(engine): move assets/library_swap test files to assets/library_swap/
2026-10-26 20:36:50 +00:00
aiongg
a9d93f8310
refactor(engine): split cmd/file.rs into file/
2026-10-26 20:17:48 +00:00
aiongg
96423f5a6e
refactor(engine): move cmd/file.rs zip_cap_tests to file/zip_cap_tests.rs
2026-10-26 20:17:48 +00:00
aiongg
13855cfabe
refactor(engine): move cmd/file.rs staging_write_tests to file/staging_write_tests.rs
2026-10-26 20:17:48 +00:00
aiongg
47c807f209
refactor(engine): move cmd/file.rs rest_import_tests to file/rest_import_tests.rs
2026-10-26 20:17:48 +00:00
aiongg
f0f1c2003d
refactor(engine): move cmd/file.rs tab_order_tests to file/tab_order_tests.rs
2026-10-26 20:17:48 +00:00
aiongg
1e9e0a4e75
refactor(engine): split session.rs into session/
2026-10-26 20:17:48 +00:00
aiongg
c4bd0dd542
refactor(engine): move Session state, prefs, errors and methods out of lib.rs
2026-10-26 20:17:48 +00:00
aiongg
0b9fcb7f4e
refactor(engine): split cmd/component.rs into component/
2026-10-26 20:17:48 +00:00
aiongg
cea90cf935
refactor(engine): split cmd/edit.rs into edit/
2026-10-26 20:17:48 +00:00
aiongg
688eeccc7a
refactor(engine): split boards/board.rs into board/
2026-10-26 20:17:48 +00:00
aiongg
ad4ba1ae9b
refactor(engine): split dev/codegen.rs into codegen/
2026-10-26 20:17:48 +00:00
aiongg
c631450b0c
refactor(engine): split sharing/live.rs into live/
2026-10-26 20:17:48 +00:00
aiongg
0bc49705bd
refactor(engine): split assets/components.rs into components/
2026-10-26 20:17:48 +00:00
aiongg
2e7790b58b
refactor(engine): split canvas/tools.rs into tools/
2026-10-26 20:17:48 +00:00
aiongg
e1b0ea2c1d
refactor(engine): move batch, params, inspect, file_access, doc_urls to automation/
2026-10-26 20:17:48 +00:00
aiongg
2cf15106e1
refactor(engine): move datafill, textfit, templates, synthetic, synthetic_ds to content/
2026-10-26 20:17:48 +00:00
aiongg
53b04cc784
refactor(engine): move plugins, plugin_directory, widgets to extensions/
2026-10-26 20:17:48 +00:00
aiongg
fa8e917ede
refactor(engine): move collab, live, online, branches, invite_links, background to sharing/
2026-10-26 20:17:48 +00:00
aiongg
9452ec1ada
refactor(engine): move annotations, code_connect, codegen, component_codegen, tailwind, devcompare, devinspect, dev_measurements, dev_resources to dev/
2026-10-26 20:17:48 +00:00
aiongg
e466f4a03a
refactor(engine): move components, library, library_server, library_swap, style_vars, playground, token_roles to assets/
2026-10-26 20:17:48 +00:00
aiongg
a587d964c9
refactor(engine): move selection_colors, selection_reorder, selection_spacing, rename to selection/
2026-10-26 20:17:47 +00:00
aiongg
094b01e501
refactor(engine): move tools, snap, distance, guides, drop, arc_handles, shape_handles, rotation_origin, al_keys, booleans, shapebuilder, textedit, textpreview, vectoredit to canvas/
2026-10-26 20:17:47 +00:00
aiongg
5d1b826f7a
refactor(engine): move board, board_table, board_templates to boards/
2026-10-26 20:17:47 +00:00
aiongg
a3179236f3
refactor(engine): move textedit.rs inline tests to crates/engine/src/textedit/tests.rs
2026-10-26 20:17:47 +00:00
aiongg
71524803d1
refactor(engine): move crates/engine/src/templates/mod.rs to crates/engine/src/templates.rs
2026-10-26 20:17:47 +00:00
aiongg
d853eee820
refactor(engine): move crates/engine/src/cmd/mod.rs to crates/engine/src/cmd.rs
2026-10-26 20:17:47 +00:00
BFlat
cac54fd552
Merge pull request #840 from StrajnarFilip/feat/vector-drawable-export
...
M6: export as Android Vector Drawable (XML)
2026-10-27 01:06:21 +07:00
BFlat
740cc2a2c6
Merge pull request #726 from ijashuzain/feat/variables-dart-export
...
M6: export variables as Dart constants for Flutter
2026-10-27 00:53:10 +07:00
BFlat
29c89f7d5b
Merge pull request #650 from JimKnoxx/overlay-anchor-trigger
...
M5: overlay positions relative to the layer that opens them
2026-10-27 00:49:52 +07:00
bflatastic
2aae395310
Merge main into #840
2026-10-27 00:31:32 +07:00
bflatastic
fd0f4d8b60
Merge main into #664
...
Main's class_name takes the node kind (#1372 ); Vue's slot names pass slot.
2026-10-27 00:30:42 +07:00
BFlat
83c7940293
Merge pull request #1384 from muamerETS/fix/1370-drag-unfilled-selection
...
M1: a selected unfilled shape drags over a filled layer stacked below it (#1370 )
2026-10-27 00:25:59 +07:00
BFlat
7cb369db8c
Merge pull request #1372 from lileeei/1235-transliterate-class-names
...
Transliterate non-ASCII layer names into code-export class names
2026-10-27 00:23:36 +07:00
BFlat
8583588839
Merge pull request #1366 from Silvertree2010/fix/h2716-px-to-rem-conversion-rounds-to-2
...
Keep full precision when converting px to rem in code export
2026-10-27 00:13:42 +07:00
BFlat
ad9abe7ce6
Merge pull request #1133 from g1obalworlds/fix-batch-rollback-closed-tabs
...
engine: restore tabs closed inside a failed command group
2026-10-27 00:13:37 +07:00
BFlat
dd5b5c0dc0
Merge pull request #1374 from Ridzzz0Alam/fix/1330-save-disk-changes
...
fix: Issue #1330 Save no longer overwrites changes another app made to the open file
2026-10-27 00:13:15 +07:00
bflatastic
632f2cef4b
Merge main into #840
...
# Conflicts:
# docs/roadmap.md
2026-10-27 00:12:27 +07:00
bflatastic
15c6834114
Merge main into #1384
2026-10-27 00:10:34 +07:00
bflatastic
56ed786e0e
#726 : reuse codegen's kotlin_color for Dart colours
2026-10-26 23:54:09 +07:00
bflatastic
5a5175cc7e
#726 : write Dart numbers at full precision
2026-10-26 23:54:08 +07:00
bflatastic
a683e51045
#726 : Dart names never shadow Dart types (classes and constants)
2026-10-26 23:54:08 +07:00