惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
Cloudbric
Cloudbric
I
InfoQ
V
V2EX
博客园_首页
The Register - Security
The Register - Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
Secure Thoughts
Vercel News
Vercel News
Forbes - Security
Forbes - Security
云风的 BLOG
云风的 BLOG
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
D
DataBreaches.Net
H
Hacker News: Front Page
Application and Cybersecurity Blog
Application and Cybersecurity Blog
B
Blog RSS Feed
A
About on SuperTechFans
N
News and Events Feed by Topic
Apple Machine Learning Research
Apple Machine Learning Research
Help Net Security
Help Net Security
Attack and Defense Labs
Attack and Defense Labs
N
Netflix TechBlog - Medium
Spread Privacy
Spread Privacy
F
Full Disclosure
Recorded Future
Recorded Future
AWS News Blog
AWS News Blog
博客园 - 【当耐特】
The Cloudflare Blog
T
Threatpost
T
Tor Project blog
Google DeepMind News
Google DeepMind News
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
A
Arctic Wolf
C
Check Point Blog
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News - Newest:
Hacker News - Newest: "LLM"
WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
小众软件
小众软件
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
Security Latest
Security Latest
The Last Watchdog
The Last Watchdog

Martin Owens activity

Martin Owens deleted project branch average-color-divide at Inkscape / inkscape Fix divide-by-zero crash when using calligraphy tool (d34276f8) · Commits · Inkscape / inkscape · GitLab Fix divide-by-zero crash when using calligraphy tool (!7923) · Merge requests · Inkscape / inkscape · GitLab Add selection file to bypass Windows command length limits (correction) (865df7a5) · Commits · Inkscape / inkscape · GitLab Draft: Fix AppImage crashing during save on older distros (!7922) · Merge requests · Inkscape / inkscape · GitLab e71fa7f8e0858aab87b7fc0814a30a8c88da9b43 to fe225a6b9e1042c7221d95173be22a02b3725337 · Martin Owens / inkscape · GitLab 403 Forbidden on Inkscape web server (#693) · Issues · Inkscape / inkscape-web · GitLab 403 Forbidden on Inkscape web server (#13509) · Issues · Inkscape / Inbox · GitLab Add selection file to bypass Windows command length limits (correction) (!7917) · 合并请求 · Inkscape / inkscape · GitLab Non-vertical axonometric axis implementation (!7912) · Merge requests · Inkscape / inkscape · GitLab Update split mode on tab switch (!7915) · Merge requests · Inkscape / inkscape · GitLab inset/offset as app functions so they can be used from CLI (!7914) · Merge requests · Inkscape / inkscape · GitLab Performace regresion in last month (#5879) · Issues · Inkscape / inkscape · GitLab [Regression] Right-aligned text has a new gap in 1.4.4 (#6130) · Issues · Inkscape / inkscape · GitLab [Regression] Right-aligned text has a new gap in 1.4.4 (#13498) · Issues · Inkscape / Inbox · GitLab c503804e014994d611de1b225bee8158c06448a8 to a4588d8ead1e7049b90c5a126962746ed286ab17 · Inkscape / inkscape-web · GitLab Validate the extensions of signature file uploads (a4588d8e) · 提交 · Inkscape / inkscape-web · GitLab Allow color conversions using static arrays instead of just vectors (e71fa7f8) · 提交 · Martin Owens / inkscape · GitLab Speed up ungroup on thousands of items (!7908) · Merge requests · Inkscape / inkscape · GitLab Incorrect handling of FontMatrix and transformation matrices with internal PDF import (#4845) · Issues · Inkscape / inkscape · GitLab Handling edge case of negative fonts in PDF (59040229) · 提交 · Inkscape / inkscape · GitLab Handling edge case of negative fonts in PDF (!7911) · 合并请求 · Inkscape / inkscape · GitLab Allow color conversions using static arrays instead of just vectors (33e65d1b) · Commits · Martin Owens / inkscape · GitLab Allow color conversions using static arrays instead of just vectors (9be5f867) · Commits · Martin Owens / inkscape · GitLab a9672ea1dff483b5b3aa8c6b5d88cd223001bef5 to 512a5e57602ac52e1d35782a7dcebae04262b2b8 · Martin Owens / inkscape · GitLab Add selection file to bypass Windows command length limits (!7905) · 合并请求 · Inkscape / inkscape · GitLab Revert Pango label changes (1.4.x) (!7907) · 合并请求 · Inkscape / inkscape · GitLab Crash on selecting a `<text>` object without a `<tspan>` inside (#5462) · Issues · Inkscape / inkscape · GitLab Fix breakage with Ubuntu 26.04 CI (!7904) · 合并请求 · Inkscape / inkscape · GitLab c673fdd5148253276826d4eda3951daaefb82607 to 356b31383ba324396a225686613236484305533d · Martin Owens / inkscape · GitLab Revert Text tool cursor changes (1.4.x) (!7903) · 合并请求 · Inkscape / inkscape · GitLab Add selection file to bypass Windows command length limits (c8da6484) · 提交 · Inkscape / inkscape · GitLab Add new simplifyInvisible path manipulator function (e15296e3) · 提交 · Martin Owens / inkscape · GitLab Add new simplifyInvisible path manipulator function (!7902) · 合并请求 · Inkscape / inkscape · GitLab 提交 · weld-nodes-if-tiny · Martin Owens / inkscape · GitLab Update PDF version string to 2.0 (!7901) · 合并请求 · Inkscape / inkscape · GitLab Fix TypeError in replace_font.py (!726) · 合并请求 · Inkscape / extensions · GitLab Remove "using namespace Inkscape" in style-internal.h (!7731) · 合并请求 · Inkscape / inkscape · GitLab Fix color_negative.py for HSL colors (!725) · 合并请求 · Inkscape / extensions · GitLab Add selection file to bypass Windows command length limits (2626d26b) · 提交 · Inkscape / extensions · GitLab Extensions fail with too many items selected in Windows (#2627) · Issues · Inkscape / inkscape · GitLab Joining points not working (#5540) · Issues · Inkscape / Inbox · GitLab Add argument file to bypass Windows command length limits (!7899) · 合并请求 · Inkscape / inkscape · GitLab Add selection file to bypass Windows command length limits (!724) · 合并请求 · Inkscape / extensions · GitLab 4f05fa82847e7798338aa8db1aab21acfe0f7455 to 3bbc78baaee71371d7e6e3a14c59f554b1d9929b · Inkscape / Inbox · GitLab Fix PlantUML syntax (!7) · 合并请求 · Inkscape / Inbox · GitLab Apply 1 suggestion(s) to 1 file(s) (ccd43fd7) · 提交 · Inkscape / Inbox · GitLab Add editing issues advice (!8) · 合并请求 · Inkscape / Inbox · GitLab 提交 · doctormo-master-patch-44578 · Inkscape / Inbox · GitLab New UX for text in shape and text in path (c673fdd5) · Commits · Martin Owens / inkscape · GitLab Converge canvas item text rendering to one place (!7895) · 合并请求 · Inkscape / inkscape · GitLab New UX for text in shape and text in path (20ad9dae) · 提交 · Martin Owens / inkscape · GitLab 1.5-dev: Page labels overflow on Windows (#13460) · Issues · Inkscape / Inbox · GitLab 1.5-dev: Page labels overflow on Windows (#6121) · Issues · Inkscape / inkscape · GitLab Stop cursor from blinking when defocused, take 3 (1.4.x) (!7896) · 合并请求 · Inkscape / inkscape · GitLab e93c9eb034a1b744ef1a16889e588965057f13a1 to cc89121ffe961f34351888f9dcaacd8b68fc2f1f · Martin Owens / inkscape · GitLab Update Color API preparing for new Rendering Engine (!7894) · Merge requests · Inkscape / inkscape · GitLab Commits · color-api-rendering-changes · Martin Owens / inkscape · GitLab 4fad4dca7c8c63a60f68bf796b4cf1abdebb5f90 to dd1cf0272f1efc11aaf062f39be46227fac972d8 · Martin Owens / inkscape · GitLab Stop cursor from blinking when defocused, take 2 (1.4.x) (!7893) · Merge requests · Inkscape / inkscape · GitLab Switch PangoCairo rendering backend to Fontconfig (1.4.x) (!7891) · Merge requests · Inkscape / inkscape · GitLab Speed up drawing cache insert (1.4.x) (!7889) · Merge requests · Inkscape / inkscape · GitLab Cherry-pick | Fix crash while using maximum scans in trace dialog (!7888) · Merge requests · Inkscape / inkscape · GitLab Display Mode: Toggle Preview (Instead of Quick Preview) does not work (#5650) · Issues · Inkscape / inkscape · GitLab Imported file contains invisible objects that prevent boolean operations when selected. (#5036) · Issues · Inkscape / inkscape · GitLab Fix Memory Leak when reading paper sizes (!7885) · Merge requests · Inkscape / inkscape · GitLab Rounded concave triangle marker (!7884) · Merge requests · Inkscape / inkscape · GitLab Switch PangoCairo rendering backend to Fontconfig (!7882) · Merge requests · Inkscape / inkscape · GitLab New UX for text in shape and text in path (e93c9eb0) · Commits · Martin Owens / inkscape · GitLab New UX for text in shape and text in path (!7827) · Merge requests · Inkscape / inkscape · GitLab 8f9cb2784a5c5714448c030e83f3f2ac36a2ae28 to 26f5129e7cb3fbe32f9fe41df6673df8e72619a1 · Martin Owens / inkscape · GitLab Fix tests in debian packaging (!7838) · Merge requests · Inkscape / inkscape · GitLab Draft: Upgrade to Ubuntu 26.04 (!64) · Merge requests · Inkscape / inkscape-ci-docker · GitLab Draft: Fix breakage with Ubuntu 26.04 CI (!148) · Merge requests · Inkscape / lib2geom · GitLab Speed up drawing cache insert (!7876) · Merge requests · Inkscape / inkscape · GitLab Cleanup SPIFloat and default values in styles (b233c4c0) · Commits · Inkscape / inkscape · GitLab Add nullptr guards to text actions (!7879) · Merge requests · Inkscape / inkscape · GitLab Fix crash while using maximum scans in trace dialog (!7880) · Merge requests · Inkscape / inkscape · GitLab 06fae2b82103418a6f8639b75fed8b89b37fc59f to 16ddfaedd6e6611888945de84907665d78cd9abf · Martin Owens / inkscape · GitLab Refactor paint server data so the renderer works from data (c821845d) · Commits · Inkscape / inkscape · GitLab 1.4.x backports for 1.4.4 (!7840) · 合并请求 · Inkscape / inkscape · GitLab Cleanup SPIFloat and default values in styles (!7874) · Merge requests · Inkscape / inkscape · GitLab Commits · cleanup-spifloat-values · Martin Owens / inkscape · GitLab f6fdc326437935b01a7846bfcee7785ce4d3e7bd to 4fad4dca7c8c63a60f68bf796b4cf1abdebb5f90 · Martin Owens / inkscape · GitLab Page tool on-canvas selection and modification (#353) · Issues · Inkscape / Inkscape UX · GitLab Canvas rect pixel alignment improvements (!7849) · Merge requests · Inkscape / inkscape · GitLab 1.4.x backports for 1.4.4 (with strings) (!7867) · Merge requests · Inkscape / inkscape · GitLab Inconsistent selection validation across extensions (#624) · Issues · Inkscape / extensions · GitLab Refactor paint server data so the renderer works from data (!7859) · Merge requests · Inkscape / inkscape · GitLab Rename star turn upright for clarity (!7863) · Merge requests · Inkscape / inkscape · GitLab Add desktop check to StyleSubject (!7864) · Merge requests · Inkscape / inkscape · GitLab Crash on Selection::_emitChanged() (#13432) · Issues · Inkscape / Inbox · GitLab Clone image in pdf not reused (#6105) · Issues · Inkscape / inkscape · GitLab Add custom color palette support to bitmap tracing with novel color quantization algorithm (!7862) · Merge requests · Inkscape / inkscape · GitLab Add a rasterize-fills extension (!723) · Merge requests · Inkscape / extensions · GitLab Node snapping causes stall when many paths/nodes present (#5055) · Issues · Inkscape / inkscape · GitLab Martin Owens pushed new project branch refactor-paint-server-data at Martin Owens / inkscape Policy Discussion: Generative AI (#5) · Issues · Inkscape / Inkscape Board · GitLab Use epsilon in isChord function for EllipticalArc (!145) · Merge requests · Inkscape / lib2geom · GitLab Backport "Handle text with different lang across tspans" to 1.4.x (!7692) · Merge requests · Inkscape / inkscape · GitLab
New UX for text in shape and text in path (dabd763c) · Commits · Martin Owens / inkscape · GitLab
Martin Owens · 2026-04-22 · via Martin Owens activity
Commit dabd763c authored by Martin Owens's avatar Martin Owens 🕘
Browse files
Provide the ability for users to click on shapes and lines with
the text tool and place text directly inside and on lines without
needing to use the text menu functions.

 * New cursor icons inspired by the designs in Krita 6.0
 * New pathways in text-tool decide if text should be added to curves or shapes
 * Distil `create_text_in_shape` out of `create_text_with_rectangle`
 * Add `create_text_at_position` into sp-text moved from text-tool.cpp
 * Add `create_text_on_curve` in sp-tspan to manage creation of path text

Refactoring:

 * Remove unused `create_text_with_inline_size` and fold into new function
 * Remove unused variables in text-tool
 * Removed include "desktop.h" in "sp-text.h" and fixed bad deps in ui
 * Moved desktop/h include in tools to `tool-base.h` since every tool uses it
 * Change creation methods to always use document units and not pass SPDesktop
 * Remove `cursortolerance` pref dance in getItemsNearPoints
 * Split SPText inclusion shape building and add get first line position
 * Fix snap issues and add snapping to point outside of snappers

Other fixes:

 * Fix scaling issues with font-size and making new text objects
 * Fix scaling issue in knot handler for TextPath font-size
+530 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   width="32"
   height="32"
   x="-5.5"
   y="-5.5"
   style="fill:gray;stroke:black"
   version="1.1"
   id="svg2"
   sodipodi:docname="text-in-shape.svg"
   inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
   xml:space="preserve"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg"><style
     id="style1">@import './cursors.css';</style><style
     id="style2">@import './cursors.css';</style><sodipodi:namedview
     id="namedview1"
     pagecolor="#ffffff"
     bordercolor="#000000"
     borderopacity="0.25"
     inkscape:showpageshadow="2"
     inkscape:pageopacity="0.0"
     inkscape:pagecheckerboard="0"
     inkscape:deskcolor="#d1d1d1"
     inkscape:document-units="px"
     showgrid="true"
     inkscape:zoom="11.118189"
     inkscape:cx="17.089114"
     inkscape:cy="11.96238"
     inkscape:window-width="1280"
     inkscape:window-height="1371"
     inkscape:window-maximized="0"
     inkscape:current-layer="cursor-98"
     inkscape:window-x="20"
     inkscape:window-y="20"
     showguides="false"><inkscape:grid
       type="modular"
       id="grid1"
       units="px"
       originx="-124"
       originy="-44"
       spacingx="32"
       spacingy="32"
       empcolor="#0047cb"
       empopacity="0.30196078"
       color="#0047cb"
       opacity="0.14902"
       empspacing="0"
       enabled="true"
       visible="true"
       marginx="0"
       marginy="0"
       gapx="8"
       gapy="8" /><inkscape:grid
       type="xygrid"
       id="grid2"
       units="px"
       originx="-128"
       originy="-48"
       spacingx="1"
       spacingy="1"
       empcolor="#0099e5"
       empopacity="0.30196078"
       color="#0099e5"
       opacity="0.14902"
       empspacing="4"
       enabled="true"
       visible="true" /><inkscape:grid
       id="grid21"
       units="px"
       originx="-128"
       originy="-48"
       spacingx="0.5"
       spacingy="0.5"
       empcolor="#0099e5"
       empopacity="0.14901961"
       color="#0099e5"
       opacity="0.101961"
       empspacing="2"
       enabled="true"
       visible="true" /></sodipodi:namedview><defs
     id="defs1"><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect1"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,2,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,1.5,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,1.5,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,2,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="true"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect94"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,1,1,0,2,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,3.1622777,0,1 @ F,0,0,1,0,3,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,3,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,2,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="true"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect255"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect253"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect251"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9429179,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect247"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect245"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect242"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,3.9031376,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><filter
       id="def-drop-shadow"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1" /><feComponentTransfer
         id="feComponentTransfer1"><feFuncR
           type="identity"
           id="feFuncR1" /><feFuncG
           type="identity"
           id="feFuncG1" /><feFuncB
           type="identity"
           id="feFuncB1" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1"
         mode="normal" /></filter><filter
       id="def-drop-shadow-5"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-4" /><feComponentTransfer
         id="feComponentTransfer1-3"><feFuncR
           type="identity"
           id="feFuncR1-6" /><feFuncG
           type="identity"
           id="feFuncG1-5" /><feFuncB
           type="identity"
           id="feFuncB1-9" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-5" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-4" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-9"
         mode="normal" /></filter><filter
       id="def-drop-shadow-3"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-3" /><feComponentTransfer
         id="feComponentTransfer1-7"><feFuncR
           type="identity"
           id="feFuncR1-7" /><feFuncG
           type="identity"
           id="feFuncG1-3" /><feFuncB
           type="identity"
           id="feFuncB1-2" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-56" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-3" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-4"
         mode="normal" /></filter><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect251-2"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9429179,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect255-7"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><inkscape:path-effect
       effect="fillet_chamfer"
       id="path-effect247-0"
       is_visible="true"
       lpeversion="1"
       nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,1,0,1 @ F,0,0,1,0,2.9580747,0,1 @ F,0,0,1,0,1.008945,0,1 @ F,0,0,1,0,0,0,1"
       radius="0"
       unit="px"
       method="auto"
       mode="F"
       chamfer_steps="1"
       flexible="false"
       use_knot_distance="true"
       apply_no_radius="true"
       apply_with_radius="true"
       only_selected="false"
       hide_knots="false" /><filter
       id="def-drop-shadow-9"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-36" /><feComponentTransfer
         id="feComponentTransfer1-0"><feFuncR
           type="identity"
           id="feFuncR1-62" /><feFuncG
           type="identity"
           id="feFuncG1-6" /><feFuncB
           type="identity"
           id="feFuncB1-1" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-8" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-7" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-92"
         mode="normal" /></filter><filter
       id="def-drop-shadow-1"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-2" /><feComponentTransfer
         id="feComponentTransfer1-70"><feFuncR
           type="identity"
           id="feFuncR1-93" /><feFuncG
           type="identity"
           id="feFuncG1-60" /><feFuncB
           type="identity"
           id="feFuncB1-6" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-2" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-6" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-1"
         mode="normal" /></filter><filter
       id="def-drop-shadow-5-8"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-8" /><feComponentTransfer
         id="feComponentTransfer1-2"><feFuncR
           type="identity"
           id="feFuncR1-9" /><feFuncG
           type="identity"
           id="feFuncG1-8" /><feFuncB
           type="identity"
           id="feFuncB1-2-7" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-0" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-7-9" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-4-2"
         mode="normal" /></filter><filter
       id="def-drop-shadow-9-0"
       filterUnits="userSpaceOnUse"
       x="0"
       y="0"
       width="32"
       height="32"><feOffset
         dx="1"
         dy="1"
         in="SourceAlpha"
         result="offOut"
         id="feOffset1-3-2" /><feComponentTransfer
         id="feComponentTransfer1-4"><feFuncR
           type="identity"
           id="feFuncR1-0" /><feFuncG
           type="identity"
           id="feFuncG1-7" /><feFuncB
           type="identity"
           id="feFuncB1-5" /><!-- Shadow's transparency --><feFuncA
           slope="0.40"
           type="linear"
           id="feFuncA1-7" /></feComponentTransfer><feGaussianBlur
         result="blurOut"
         stdDeviation="1"
         id="feGaussianBlur1-5" /><feBlend
         in="SourceGraphic"
         in2="blurOut"
         id="feBlend1-0"
         mode="normal" /></filter></defs><g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     inkscape:highlight-color="#000000"
     transform="translate(-128,-48)"><g
       id="g167"
       inkscape:label="text"><use
         x="0"
         y="0"
         xlink:href="#g48"
         id="use57"
         inkscape:label="bbox"
         transform="translate(240.01229,-40)" /><g
         id="cross-41"
         transform="translate(129,49)"
         style="fill:#808080;stroke:#000000"><path
           d="M 4.5,9 V 0"
           stroke="#ffffff"
           stroke-width="3"
           id="path1-081" /><path
           d="M 9,4.5 H 0"
           stroke="#ffffff"
           stroke-width="3"
           id="path2-48" /><path
           d="M 0,4.5 H 9"
           stroke="#000000"
           id="path3-84"
           style="fill:none" /><path
           d="M 4.5,0 V 9"
           stroke="#000000"
           id="path4-57"
           style="fill:none" /></g><g
         id="cursor-98"
         class="drop-shadow"
         transform="translate(129,49)"><g
           style="fill:#808080;stroke:#000000"
           id="g1"
           transform="translate(-18.747931,28.278633)"><path
             id="rect63"
             style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none"
             d="m 25.859997,-15.760271 -0.112066,14.481638 h 16 l 5,-5 v -16.5 l -12.887934,0.01836 c -4.112066,-0.01836 -8.112066,3.48164 -8,7.000002 z"
             sodipodi:nodetypes="ccccccc" /><path
             style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:square;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
             d="m 41.247931,-2.778633 4,-4 v -14.5 h -10.5 c -4,0 -7.5,2.5 -7.5,6 v 12.5 z"
             id="path63"
             sodipodi:nodetypes="ccccccc" /></g><path
           d="m 11,11.5 -0.5,5 h 2 l 0.171202,-1.027212 A 2.3609208,2.3609208 139.73116 0 1 15,13.5 h 1.5 v 7.5 1 a 1.7706906,1.7706906 130.26884 0 1 -1.479591,1.746598 L 13.5,24 v 1.5 h 9 V 24 L 20.979591,23.746598 A 1.7706906,1.7706906 49.731161 0 1 19.5,22 V 21 13.5 H 21 a 2.3609208,2.3609208 40.268839 0 1 2.328798,1.972788 L 23.5,16.5 h 2 l -0.5,-5 z"
           stroke="#ffffff"
           id="path5-4"
           sodipodi:nodetypes="ccccccccccccccccccc"
           style="fill:#000000;fill-opacity:1"
           inkscape:path-effect="#path-effect1"
           inkscape:original-d="m 11,11.5 -0.5,5 h 2 l 0.5,-3 h 3.5 v 7.5 2.5 l -3,0.5 v 1.5 h 9 V 24 l -3,-0.5 V 21 13.5 H 23 l 0.5,3 h 2 l -0.5,-5 z"
           transform="translate(-0.32879797,-0.97278785)" /></g></g></g><g
     inkscape:groupmode="layer"
     id="layer2"
     inkscape:label="Masters"
     inkscape:highlight-color="#000000"
     transform="translate(-128,-48)"><g
       id="g48"
       inkscape:label="bouncing box"
       style="fill:#ffd5d5;fill-opacity:0"><rect
         style="opacity:1;fill:#ffd5d5;fill-opacity:0;fill-rule:evenodd;stroke:none;stroke-width:1"
         id="rect4-6"
         width="32"
         height="32"
         x="-112.01229"
         y="88"
         inkscape:label="bbox" /></g></g><style
     id="style1-6">@import './cursors.css';</style><style
     id="style2-7">@import './cursors.css';</style><style
     id="style1-67">@import './cursors.css';</style><style
     id="style2-5">@import './cursors.css';</style></svg>
+460 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −3
Original line number Diff line number Diff line
@@ -309,9 +309,7 @@ bool Inkscape::AlignmentSnapper::getSnapperAlwaysSnap(SnapSourceType const &/*so

Geom::Coord Inkscape::AlignmentSnapper::getSnapperTolerance() const
{
    SPDesktop const *dt = _snapmanager->getDesktop();
    double const zoom =  dt ? dt->current_zoom() : 1;
    return _snapmanager->snapprefs.getAlignmentTolerance() / zoom;
    return _snapmanager->getSnapperTolerance(_snapmanager->snapprefs.getAlignmentTolerance());
}

Inkscape::SnapSourceType Inkscape::AlignmentSnapper::source2alignment(SnapSourceType s) const
+2 −2
Original line number Diff line number Diff line
@@ -364,11 +364,11 @@ SPItem *SPDesktop::getItemAtPoint(Geom::Point const &p, bool into_groups, SPItem
    return doc()->getItemAtPoint( dkey, p, into_groups, upto);
}

std::vector<SPItem*> SPDesktop::getItemsAtPoints(std::vector<Geom::Point> points, bool all_layers, bool topmost_only, size_t limit, bool active_only) const
std::vector<SPItem*> SPDesktop::getItemsAtPoints(std::vector<Geom::Point> points, bool all_layers, bool topmost_only, size_t limit, bool active_only, double distance) const
{
    if (!doc())
        return {};
    return doc()->getItemsAtPoints(dkey, points, all_layers, topmost_only, limit, active_only);
    return doc()->getItemsAtPoints(dkey, points, all_layers, topmost_only, limit, active_only, distance);
}

/**
+1 −1
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ public:
    void set_coordinate_status(Geom::Point const &p);
    SPItem *getItemFromListAtPointBottom(std::vector<SPItem *> const &list, Geom::Point const &p) const;
    SPItem *getItemAtPoint(Geom::Point const &p, bool into_groups, SPItem *upto = nullptr) const;
    std::vector<SPItem*> getItemsAtPoints(std::vector<Geom::Point> ps, bool all_layers = true, bool topmost_only = true, size_t limit = 0, bool active_only = true) const;
    std::vector<SPItem*> getItemsAtPoints(std::vector<Geom::Point> ps, bool all_layers = true, bool topmost_only = true, size_t limit = 0, bool active_only = true, double distance = 0.25) const;
    SPItem *getGroupAtPoint(Geom::Point const &p) const;
    Geom::Point point() const;