Using TouchEvents, and a bit of basic geometry. It's here: https://github.com/Yqnn/svg-path-editor/blob/master/src/app/...
You can copy 'svg.ts' and 'svg-parser.ts', from here: https://github.com/Yqnn/svg-path-editor/tree/master/src/app It's what's used internally by the tool. const path = new Svg('M 0 0 L 1 1'); path.translate(1, 2); //…
Using TouchEvents, and a bit of basic geometry. It's here: https://github.com/Yqnn/svg-path-editor/blob/master/src/app/...
You can copy 'svg.ts' and 'svg-parser.ts', from here: https://github.com/Yqnn/svg-path-editor/tree/master/src/app It's what's used internally by the tool. const path = new Svg('M 0 0 L 1 1'); path.translate(1, 2); //…