Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request improves stroke rendering, canvas navigation, touch interaction, hover feedback, and package readiness across the Flowscape core SDK and documentation.
It adds dotted stroke support, prevents browser navigation gestures over the canvas, introduces one-finger touch panning, restores shape-accurate hover contours, and updates documentation examples to match the current SDK API.
Motivation
Several rendering and interaction behaviors were incomplete or had regressed:
StrokeStyle.Dottedexisted but was not rendered correctly.These changes make the editor interaction more consistent across desktop and mobile devices and prepare the SDK for publication.
Changes
Added dotted stroke rendering using the existing geometric dashed-stroke pipeline.
Added round caps and appropriate dot sizing for dotted strokes.
Preserved color and gradient stroke support for dotted rendering.
Prevented default wheel and trackpad browser behavior over registered canvas surfaces.
Added local
touch-actionandoverscroll-behaviorhandling to canvas surfaces.Added one-finger camera panning through the existing Pointer Events input system.
Added active-pointer filtering and accumulated pointer movement deltas.
Prevented initial touch movement jumps by resetting pointer position on
pointerdown.Restored shape-accurate hover outlines using node path commands instead of world bounding-box corners.
Added hover contour processing for:
Temporarily disabled unfinished inner-shadow rendering while preserving its renderer contract.
Updated documentation examples from the old per-side stroke-width object to the current numeric
setStrokeWidth()API.Fixed optional debug flags by resolving
undefinedvalues tofalse.Fixed preview configuration resolution for required background logo dimensions.
Updated documentation TypeScript path aliases for the local SDK workspace and Docusaurus
@siteimports.Updated package versioning scripts to use a supported version command.
Testing
Tested manually in the Playground and documentation application.
Verified:
Public API
The changes use existing public APIs. Documentation examples were updated to match the already-current
setStrokeWidth(number)API.Visual changes
Recommended attachments:
Checklist