dist/joint.nowrap.js
function(opt) {

            var segments = this.segments;
            var numSegments = segments.length;
            // works even if path has no segments

            opt = opt || {};
            var precision = (opt.precision === undefined) ? this.PRECISION : opt.precision;
            // not using opt.segmentSubdivisions
            // not using localOpt

            var segmentSubdivisions = [];
            for (var i = 0; i < numSegments; i++) {

                var segment = segments[i];
                var subdivisions = segment.getSubdivisions({ precision: precision });
                segmentSubdivisions.push(subdivisions);
            }

            return segmentSubdivisions;
        }
function(opt) {

            var segments = this.segments;
            var numSegments = segments.length;
            // works even if path has no segments

            opt = opt || {};
            var precision = (opt.precision === undefined) ? this.PRECISION : opt.precision;
            // not using opt.segmentSubdivisions
            // not using localOpt

            var segmentSubdivisions = [];
            for (var i = 0; i < numSegments; i++) {

                var segment = segments[i];
                var subdivisions = segment.getSubdivisions({ precision: precision });
                segmentSubdivisions.push(subdivisions);
            }

            return segmentSubdivisions;
        }
function ( opt ) { var segments = this . segments ; var numSegments = segments . length ; // works even if path has no segments opt = opt || { } ; var precision = ( opt . precision === undefined ) ? this . PRECISION : opt . precision ; // not using opt.segmentSubdivisions // not using localOpt var segmentSubdivisions = [ ] ; for ( var i = 0 ; i < numSegments ; i ++ ) { var segment = segments [ i ] ; var subdivisions = segment . getSubdivisions ( { precision : precision } ) ; segmentSubdivisions . push ( subdivisions ) ; } return segmentSubdivisions ; }
Returns an array of segment subdivisions, with precision better than requested `opt.precision`.
Returns an array of segment subdivisions with precision better than requested opt . precision .