Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New attribute to flowchart.js #6

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ and then
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no'
'no-text': 'no',
'arrow-end': 'block'
});
</script>
```
Expand Down Expand Up @@ -78,4 +79,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
5 changes: 3 additions & 2 deletions release/flowchart-1.2.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no'
'no-text': 'no',
'arrow-end': 'block'
};
function _defaults(options, defaultOptions) {
if (!options || typeof options === 'function') {
Expand Down Expand Up @@ -176,7 +177,7 @@
line.attr({
stroke: chart.options['line-color'],
'stroke-width': chart.options['line-width'],
'arrow-end': 'block'
'arrow-end': chart.options['arrow-end']
});

if (text) {
Expand Down
2 changes: 1 addition & 1 deletion release/flowchart-1.2.2.min.js

Large diffs are not rendered by default.

Binary file modified release/flowchart-1.2.2.zip
Binary file not shown.
Binary file modified release/flowchart-latest.zip
Binary file not shown.
5 changes: 3 additions & 2 deletions release/flowchart.amd-1.2.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no'
'no-text': 'no',
'arrow-end': 'block'
};
function _defaults(options, defaultOptions) {
if (!options || typeof options === 'function') {
Expand Down Expand Up @@ -178,7 +179,7 @@
line.attr({
stroke: chart.options['line-color'],
'stroke-width': chart.options['line-width'],
'arrow-end': 'block'
'arrow-end': chart.options['arrow-end']
});

if (text) {
Expand Down
2 changes: 1 addition & 1 deletion release/flowchart.amd-1.2.2.min.js

Large diffs are not rendered by default.

Binary file modified release/flowchart.amd-1.2.2.zip
Binary file not shown.
Binary file modified release/flowchart.amd-latest.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion src/flowchart.defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ var o = {
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no'
'no-text': 'no',
'arrow-end': 'block'
};
2 changes: 1 addition & 1 deletion src/flowchart.functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function drawLine(chart, from, to, text) {
line.attr({
stroke: chart.options['line-color'],
'stroke-width': chart.options['line-width'],
'arrow-end': 'block'
'arrow-end': chart.options['arrow-end']
});

if (text) {
Expand Down