<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by YUWEI HUANG on Medium]]></title>
        <description><![CDATA[Stories by YUWEI HUANG on Medium]]></description>
        <link>https://medium.com/@huang.yuwei?source=rss-e2338d975758------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*eA9w4PcPgbvU9H_GOray0g.png</url>
            <title>Stories by YUWEI HUANG on Medium</title>
            <link>https://medium.com/@huang.yuwei?source=rss-e2338d975758------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:15:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@huang.yuwei/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How polyline works in a flowchart]]></title>
            <link>https://medium.com/@huang.yuwei/how-polyline-works-in-a-flowchart-5d3390e9a319?source=rss-e2338d975758------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d3390e9a319</guid>
            <category><![CDATA[goodpatch]]></category>
            <category><![CDATA[flowchart]]></category>
            <category><![CDATA[polyline]]></category>
            <dc:creator><![CDATA[YUWEI HUANG]]></dc:creator>
            <pubDate>Sat, 07 Dec 2019 05:08:39 GMT</pubDate>
            <atom:updated>2019-12-07T05:08:39.826Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is the engineer-sharing article for <a href="https://qiita.com/advent-calendar/2019/goodpatch">Goodpatch Advent Calendar 2019</a>.</p><p>In Goodpatch, Product Div, before we actually type any lines of codes, we used to investigate the feature first. With the investigation, we can make sure what kind of challenges we are facing, and what kind of values we are providing to our users. The purpose of this article is also an investigation record for the new feature we are working on.</p><h3>What is Connector</h3><p>The connector is the line we draw in a flowchart. In a standard flowchart software, the connector has two different appearances. One is the straight line. Another one is the polyline, which is the topic in this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sX6KeSWZ_XllP_fObIWR4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hSJIvROiA1M23b6BQgQT_g.png" /></figure><h3>Basic Rules of the Polyline Connector</h3><ol><li>Two axes must be two different directions. Ex: X → Y → X → Y. (as Figure 2.1)</li><li>In a connector, the points contain types of breakpoints &amp; visible points. (as Figure 2.1)</li><li>Breakpoints are the actual points data. (as Figure 2.2)</li><li>Visible points are the most closet points data. (as Figure 2.2)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xf9wt0B1AG2uifOVn53I4A.png" /><figcaption>Figure 2.1. A standard polyline connector.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfmtIMVUnKZjBowSPRSlTg.png" /><figcaption>Figure 2.2. A dragged polyline connector, which actual points are hidden.</figcaption></figure><h3>Features of the Polyline Connector</h3><p>The features of the polyline connector can be categorized into two types. One is editing or dragging the points of the connector, and another one is drawing to create a new connector.</p><h3>When Editing</h3><h4>Features</h4><p>The features of editing connector include:</p><p>1. Following the dragged elements, and updating the endpoint but stick on the breakpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*RoWyWbbLPxoqvPMwNCmSrw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuuEw1Rp7GH6q2KX5r76Ww.png" /></figure><p>2. Following the dragged elements, and updating the endpoint &amp; the middle breakpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*C4Z3AI3yMgpWC-Oz0ARAdg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xl1AfS1KT66kM_nj3Xdw5g.png" /></figure><p>3. Dragging the lines of the connector, and creating a new breakpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*9EI97W7RsndC3XjIyazw8w.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHir3CydaFJqKXLEZuWTYA.png" /></figure><p>4. After dragged elements, the visible points might become less than actual breakpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*ESigZQKeZRqrhvzEo43KnQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1e9a3wa0T9nmqXhGaPwA9Q.png" /></figure><p><strong>Note</strong>: You might also notice this special action. In this case, the actual breakpoints look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*P6lb_p7bsPiP4FRfRLttrA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ee5zpp7CSxzIkQlTK-DELA.png" /></figure><h4>Rules</h4><ol><li>The axes are always intersecting. For example: “X → Y → X → Y.”</li><li>Visible points are the closet points that don’t intersect.</li><li>After dragging the end line, the dragged end line will become an axis point.</li><li>If the end axis and the axis of the next/previous point are the same axes, a ‘middle’ point should exist between two points.</li><li>The end axis may change, depends on the hit area of the connecting element. (as figure 3.1)</li><li>While dragging, the dragging line will change the direction by the hitting axis or the size of the dragging area. (as figure 3.2)</li><li>After snapping two same axes together, the breakpoints will combine together. (as figure 3.3)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*I1AlJ2OwcoenaAM61tdBow.png" /><figcaption>Figure 3.1. HitArea detection.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuca5jv-DvIVDzv_KEC6Sw.png" /><figcaption>Figure 3.2. Dragging Lines.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6711jLjB6k3QooL3RlRdzA.png" /><figcaption>Figure 3.3. Combine breakpoints.</figcaption></figure><h3>When Drawing</h3><h4>Features</h4><p>The features of drawing connector include:</p><ol><li>Drawing the axis, and decide the first direction of the starting point.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*CaV52GAaPdCBn7_GCfFJrA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3e_kt7EEhlsO5p9VFgedA.png" /></figure><p>2. When changing the direction, the line will automatically switch from straight line to polyline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*dW67ymt5z5bfzhqMe_bB8A.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_M3AaOKbSjDIf2XumRhjfQ.png" /></figure><p>3. When turning the direction, the turned direction will become a breakpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*zRPWixZtfQ5f-scQu_eb9A.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--mNTSNFNURHbeqqvzA3eQ.png" /></figure><h3>Rules</h3><ol><li>If the direction changed, the type of connector becomes the polyline.</li><li>Even though the type is not polylines, still keep record breakpoints.</li><li>Breakpoints are re-drawable while drawing. (as Figure 4.1)</li><li>The starting direction will be the axis of the starting endpoint. (as Figure 4.2)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*cfyJ35hW-zx0EHHDAdqOfQ.gif" /><figcaption>Figure 4.1. Re-drawable.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*MUOaA76DSHblscWsFuVlXw.png" /><figcaption>Figure 4.2. Drawing direction detection.</figcaption></figure><h3>Conclusion</h3><p>Polyline seems like a very simple feature in a flowchart at first. However, after investigation and visualization, we can realize how many logic behind this feature. This investigation not only helps us to understand the challenges we are facing, but also help us to share with other non-engineer team members. If your team is also planning to implement the feature of Polyline. Hope this article may help a little 🤓</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d3390e9a319" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>