PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

Manage connectors between shapes

Open Progi1984 opened this issue 10 years ago • 0 comments

http://www.aspose.com/docs/display/slidesnet/Connecting+shapes+using+Connectors

  • OpenXML
    • http://www.officeopenxml.com/drwCxnSp.php
<p:sp>
    <p:nvSpPr>
        <p:cNvPr id="39" name="CustomShape 1"/>
        <p:cNvSpPr/>
        <p:nvPr/>
    </p:nvSpPr>
    <p:spPr>
        <a:xfrm>
            <a:off x="2160000" y="1872000"/>
            <a:ext cx="864000" cy="792000"/>
        </a:xfrm>
        <a:prstGeom prst="rect">
            <a:avLst/>
        </a:prstGeom>
        <a:solidFill>
            <a:srgbClr val="729fcf"/>
        </a:solidFill>
        <a:ln>
            <a:solidFill>
                <a:srgbClr val="3465a4"/>
            </a:solidFill>
        </a:ln>
    </p:spPr>
    <p:style>
        <a:lnRef idx="0"/>
        <a:fillRef idx="0"/>
        <a:effectRef idx="0"/>
        <a:fontRef idx="minor"/>
    </p:style>
</p:sp>
<p:sp>
    <p:nvSpPr>
        <p:cNvPr id="40" name="CustomShape 2"/>
        <p:cNvSpPr/>
        <p:nvPr/>
    </p:nvSpPr>
    <p:spPr>
        <a:xfrm>
            <a:off x="4752000" y="3168000"/>
            <a:ext cx="1224000" cy="1080000"/>
        </a:xfrm>
        <a:prstGeom prst="diamond">
            <a:avLst/>
        </a:prstGeom>
        <a:solidFill>
            <a:srgbClr val="729fcf"/>
        </a:solidFill>
        <a:ln>
            <a:solidFill>
                <a:srgbClr val="3465a4"/>
            </a:solidFill>
        </a:ln>
    </p:spPr>
    <p:style>
        <a:lnRef idx="0"/>
        <a:fillRef idx="0"/>
        <a:effectRef idx="0"/>
        <a:fontRef idx="minor"/>
    </p:style>
</p:sp>
<p:cxnSp>
    <p:nvCxnSpPr>
        <p:cNvPr id="41" name="Line 3"/>
        <p:cNvCxnSpPr>
            <a:stCxn id="39" idx="3"/>
            <a:endCxn id="40" idx="1"/>
        </p:cNvCxnSpPr>
        <p:nvPr/>
    </p:nvCxnSpPr>
    <p:spPr>
        <a:xfrm>
            <a:off x="3024000" y="2268000"/>
            <a:ext cx="1728360" cy="1440360"/>
        </a:xfrm>
        <a:prstGeom prst="bentConnector3">
            <a:avLst/>
        </a:prstGeom>
        <a:ln>
            <a:solidFill>
                <a:srgbClr val="3465a4"/>
            </a:solidFill>
        </a:ln>
    </p:spPr>
</p:cxnSp>
  • OpenDocument :
<draw:custom-shape draw:style-name="gr1" draw:text-style-name="P1" xml:id="id1" draw:id="id1" draw:layer="layout" svg:width="2.4cm" svg:height="2.2cm" svg:x="6cm" svg:y="5.2cm">
    <text:p/>
    <draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:type="rectangle" draw:enhanced-path="M 0 0 L 21600 0 21600 21600 0 21600 0 0 Z N"/>
</draw:custom-shape>
<draw:custom-shape draw:style-name="gr2" draw:text-style-name="P1" xml:id="id2" draw:id="id2" draw:layer="layout" svg:width="3.4cm" svg:height="3cm" svg:x="13.2cm" svg:y="8.8cm">
    <text:p/>
    <draw:enhanced-geometry svg:viewBox="0 0 21600 21600" draw:glue-points="10800 0 0 10800 10800 21600 21600 10800" draw:text-areas="5400 5400 16200 16200" draw:type="diamond" draw:enhanced-path="M 10800 0 L 21600 10800 10800 21600 0 10800 10800 0 Z N"/>
</draw:custom-shape>
<draw:connector draw:style-name="gr3" draw:text-style-name="P1" draw:layer="layout" svg:x1="8.4cm" svg:y1="6.3cm" svg:x2="13.2cm" svg:y2="10.3cm" draw:start-shape="id1" draw:start-glue-point="1" draw:end-shape="id2" draw:end-glue-point="5" svg:d="M8400 6300h2400v4000h2400" svg:viewBox="0 0 4801 4001">
    <text:p/>
</draw:connector>

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24398295-manage-connectors-between-shapes?utm_campaign=plugin&utm_content=tracker%2F323104&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323104&utm_medium=issues&utm_source=github).

Progi1984 avatar Jul 15 '15 20:07 Progi1984