@@ -598,77 +598,152 @@ class SVGPathCommander {
598598
599599export default SVGPathCommander ;
600600
601- // export {
602- // absolutizeSegment,
603- // arcToCubic,
604- // arcTools,
605- // bezierTools,
606- // CSSMatrix,
607- // cubicTools,
608- // distanceEpsilon,
609- // distanceSquareRoot,
610- // finalizeSegment,
611- // getClosestPoint,
612- // getDrawDirection,
613- // getPathArea,
614- // getPathBBox,
615- // getPointAtLength,
616- // getPropertiesAtLength,
617- // getPropertiesAtPoint,
618- // getSegmentAtLength,
619- // getSegmentOfPoint,
620- // getSVGMatrix,
621- // getTotalLength,
622- // invalidPathValue,
623- // isAbsoluteArray,
624- // isArcCommand,
625- // isCurveArray,
626- // isDigit,
627- // isDigitStart,
628- // isMoveCommand,
629- // isNormalizedArray,
630- // isPathArray,
631- // isPathCommand,
632- // isPointInStroke,
633- // isRelativeArray,
634- // isSpace,
635- // isValidPath,
636- // iterate,
637- // lineToCubic,
638- // lineTools,
639- // midPoint,
640- // normalizePath,
641- // normalizeSegment,
642- // optimizePath,
643- // paramsCount,
644- // paramsParser,
645- // parsePathString,
646- // pathParser,
647- // pathToAbsolute,
648- // pathToCurve,
649- // pathToRelative,
650- // pathToString,
651- // polygonTools,
652- // projection2d,
653- // quadToCubic,
654- // quadTools,
655- // relativizeSegment,
656- // reverseCurve,
657- // reversePath,
658- // rotateVector,
659- // roundPath,
660- // roundSegment,
661- // roundTo,
662- // scanFlag,
663- // scanParam,
664- // scanSegment,
665- // segmentToCubic,
666- // shapeParams,
667- // shapeToPath,
668- // shapeToPathArray,
669- // shortenSegment,
670- // skipSpaces,
671- // splitCubic,
672- // splitPath,
673- // transformPath,
674- // };
601+ declare namespace SVGPathCommander {
602+ export interface SVGPathCommander {
603+ new ( pathValue : string , config ?: Partial < Options > ) : SVGPathCommander ;
604+
605+ CSSMatrix : typeof CSSMatrix ;
606+ arcTools : typeof arcTools ;
607+ bezierTools : typeof bezierTools ;
608+ cubicTools : typeof cubicTools ;
609+ lineTools : typeof lineTools ;
610+ polygonTools : typeof polygonTools ;
611+ quadTools : typeof quadTools ;
612+ pathToAbsolute : typeof pathToAbsolute ;
613+ pathToCurve : typeof pathToCurve ;
614+ pathToRelative : typeof pathToRelative ;
615+ pathToString : typeof pathToString ;
616+ distanceSquareRoot : typeof distanceSquareRoot ;
617+ midPoint : typeof midPoint ;
618+ rotateVector : typeof rotateVector ;
619+ roundTo : typeof roundTo ;
620+ parsePathString : typeof parsePathString ;
621+ finalizeSegment : typeof finalizeSegment ;
622+ invalidPathValue : typeof invalidPathValue ;
623+ isArcCommand : typeof isArcCommand ;
624+ isCurveArray : typeof isCurveArray ;
625+ isPathArray : typeof isPathArray ;
626+ isPathCommand : typeof isPathCommand ;
627+ isPointInStroke : typeof isPointInStroke ;
628+ isValidPath : typeof isValidPath ;
629+ scanParam : typeof scanParam ;
630+ scanSegment : typeof scanSegment ;
631+ skipSpaces : typeof skipSpaces ;
632+ distanceEpsilon : typeof distanceEpsilon ;
633+ getClosestPoint : typeof getClosestPoint ;
634+ getDrawDirection : typeof getDrawDirection ;
635+ getPathArea : typeof getPathArea ;
636+ getPathBBox : typeof getPathBBox ;
637+ getPointAtLength : typeof getPointAtLength ;
638+ getPropertiesAtLength : typeof getPropertiesAtLength ;
639+ getPropertiesAtPoint : typeof getPropertiesAtPoint ;
640+ getSegmentAtLength : typeof getSegmentAtLength ;
641+ getSegmentOfPoint : typeof getSegmentOfPoint ;
642+ getTotalLength : typeof getTotalLength ;
643+ isAbsoluteArray : typeof isAbsoluteArray ;
644+ isDigit : typeof isDigit ;
645+ isDigitStart : typeof isDigitStart ;
646+ isMoveCommand : typeof isMoveCommand ;
647+ isNormalizedArray : typeof isNormalizedArray ;
648+ isRelativeArray : typeof isRelativeArray ;
649+ isSpace : typeof isSpace ;
650+ shapeParams : typeof shapeParams ;
651+ shapeToPath : typeof shapeToPath ;
652+ shapeToPathArray : typeof shapeToPathArray ;
653+ absolutizeSegment : typeof absolutizeSegment ;
654+ arcToCubic : typeof arcToCubic ;
655+ getSVGMatrix : typeof getSVGMatrix ;
656+ iterate : typeof iterate ;
657+ lineToCubic : typeof lineToCubic ;
658+ normalizePath : typeof normalizePath ;
659+ normalizeSegment : typeof normalizeSegment ;
660+ optimizePath : typeof optimizePath ;
661+ projection2d : typeof projection2d ;
662+ quadToCubic : typeof quadToCubic ;
663+ relativizeSegment : typeof relativizeSegment ;
664+ reverseCurve : typeof reverseCurve ;
665+ reversePath : typeof reversePath ;
666+ roundPath : typeof roundPath ;
667+ roundSegment : typeof roundSegment ;
668+ segmentToCubic : typeof segmentToCubic ;
669+ shortenSegment : typeof shortenSegment ;
670+ splitCubic : typeof splitCubic ;
671+ splitPath : typeof splitPath ;
672+ transformPath : typeof transformPath ;
673+ }
674+ }
675+
676+ // {
677+ // absolutizeSegment,
678+ // arcToCubic,
679+ // arcTools,
680+ // bezierTools,
681+ // CSSMatrix,
682+ // cubicTools,
683+ // distanceEpsilon,
684+ // distanceSquareRoot,
685+ // finalizeSegment,
686+ // getClosestPoint,
687+ // getDrawDirection,
688+ // getPathArea,
689+ // getPathBBox,
690+ // getPointAtLength,
691+ // getPropertiesAtLength,
692+ // getPropertiesAtPoint,
693+ // getSegmentAtLength,
694+ // getSegmentOfPoint,
695+ // getSVGMatrix,
696+ // getTotalLength,
697+ // invalidPathValue,
698+ // isAbsoluteArray,
699+ // isArcCommand,
700+ // isCurveArray,
701+ // isDigit,
702+ // isDigitStart,
703+ // isMoveCommand,
704+ // isNormalizedArray,
705+ // isPathArray,
706+ // isPathCommand,
707+ // isPointInStroke,
708+ // isRelativeArray,
709+ // isSpace,
710+ // isValidPath,
711+ // iterate,
712+ // lineToCubic,
713+ // lineTools,
714+ // midPoint,
715+ // normalizePath,
716+ // normalizeSegment,
717+ // optimizePath,
718+ // paramsCount,
719+ // paramsParser,
720+ // parsePathString,
721+ // pathParser,
722+ // pathToAbsolute,
723+ // pathToCurve,
724+ // pathToRelative,
725+ // pathToString,
726+ // polygonTools,
727+ // projection2d,
728+ // quadToCubic,
729+ // quadTools,
730+ // relativizeSegment,
731+ // reverseCurve,
732+ // reversePath,
733+ // rotateVector,
734+ // roundPath,
735+ // roundSegment,
736+ // roundTo,
737+ // scanFlag,
738+ // scanParam,
739+ // scanSegment,
740+ // segmentToCubic,
741+ // shapeParams,
742+ // shapeToPath,
743+ // shapeToPathArray,
744+ // shortenSegment,
745+ // skipSpaces,
746+ // splitCubic,
747+ // splitPath,
748+ // transformPath,
749+ // }
0 commit comments