<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="defineshadow" level="style" category="graphics" file="node-rul.mkxl">
        <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupshadow"/>
                </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupshadow" level="style" category="graphics" file="node-rul.mkxl">
        <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:parameter name="style">
                        <cd:resolve name="value-style"/>
                    </cd:parameter>
                    <cd:parameter name="color">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="contrastcolor">
                        <cd:constant type="cd:color"/>
                    </cd:parameter>
                    <cd:parameter name="continue">
                        <cd:constant type="yes"/>
                        <cd:constant type="no"/>
                        <cd:constant type="all"/>
                    </cd:parameter>
                    <cd:parameter name="unit">
                        <cd:constant type="ex" default="yes"/>
                        <cd:constant type="em"/>
                        <cd:constant type="pt"/>
                        <cd:constant type="in"/>
                        <cd:constant type="cm"/>
                        <cd:constant type="mm"/>
                        <cd:constant type="sp"/>
                        <cd:constant type="bp"/>
                        <cd:constant type="pc"/>
                        <cd:constant type="dd"/>
                        <cd:constant type="cc"/>
                        <cd:constant type="nc"/>
                        </cd:parameter>
                    <cd:parameter name="weight">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="dx">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="dy">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>                 
                </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="shadow" type="environment" level="document" category="graphics" file="node-rul.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="shadow" type="environment" variant="assignment" level="document" category="graphics" file="node-rul.mkxl">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupshadow"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="shadow" generated="yes" variant="instance" level="document" category="graphics" file="node-rul.mkxl">
        <cd:sequence>
            <cd:instance value="shadow"/>
        </cd:sequence>
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
        <cd:instances>
            <cd:constant value="shadowed"/>
        </cd:instances>
    </cd:command>

</cd:interface>
