Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-pathdata

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-pathdata - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# [7.1.0](https://github.com/nfroidure/svg-pathdata/compare/v7.0.1...v7.1.0) (2024-08-30)
### Features
* **types:** export core types ([4ccd1fa](https://github.com/nfroidure/svg-pathdata/commit/4ccd1fa244264143186d96cd58a68886d7997f60)), closes [#75](https://github.com/nfroidure/svg-pathdata/issues/75)
## [7.0.1](https://github.com/nfroidure/svg-pathdata/compare/v7.0.0...v7.0.1) (2024-08-27)

@@ -2,0 +11,0 @@

1

dist/index.d.ts
export * from './SVGPathData.js';
export type * from './types.js';
export { encodeSVGPath } from './SVGPathDataEncoder.js';
export { SVGPathDataParser } from './SVGPathDataParser.js';
export { SVGPathDataTransformer } from './SVGPathDataTransformer.js';

2

dist/SVGPathData.d.ts
import { TransformableSVG } from './TransformableSVG.js';
import { SVGCommand } from './types.js';
import type { SVGCommand } from './types.js';
export declare class SVGPathData extends TransformableSVG {

@@ -4,0 +4,0 @@ commands: SVGCommand[];

@@ -1,2 +0,2 @@

import { SVGCommand } from './types.js';
import type { SVGCommand } from './types.js';
export declare function encodeSVGPath(commands: SVGCommand | SVGCommand[]): string;
import { TransformableSVG } from './TransformableSVG.js';
import { SVGCommand, TransformFunction } from './types.js';
import type { SVGCommand, TransformFunction } from './types.js';
export declare class SVGPathDataParser extends TransformableSVG {

@@ -4,0 +4,0 @@ private curNumber;

@@ -1,2 +0,2 @@

import { SVGCommand, TransformFunction } from './types.js';
import type { SVGCommand, TransformFunction } from './types.js';
declare function ROUND(roundVal?: number): (command: SVGCommand) => SVGCommand;

@@ -3,0 +3,0 @@ declare function TO_ABS(): (command: SVGCommand) => any;

@@ -1,2 +0,2 @@

import { TransformFunction } from './types.js';
import type { TransformFunction } from './types.js';
export declare abstract class TransformableSVG {

@@ -3,0 +3,0 @@ round(x?: number): this;

@@ -26,3 +26,3 @@ {

"name": "svg-pathdata",
"version": "7.0.1",
"version": "7.1.0",
"description": "Manipulate SVG path data (path[d] attribute content) simply and efficiently.",

@@ -29,0 +29,0 @@ "type": "module",

export * from './SVGPathData.js';
export type * from './types.js';
export { encodeSVGPath } from './SVGPathDataEncoder.js';
export { SVGPathDataParser } from './SVGPathDataParser.js';
export { SVGPathDataTransformer } from './SVGPathDataTransformer.js';

@@ -5,3 +5,3 @@ import { encodeSVGPath } from './SVGPathDataEncoder.js';

import { TransformableSVG } from './TransformableSVG.js';
import { SVGCommand } from './types.js';
import type { SVGCommand } from './types.js';

@@ -8,0 +8,0 @@ export class SVGPathData extends TransformableSVG {

import { SVGPathData } from './SVGPathData.js';
import { SVGCommand } from './types.js';
import type { SVGCommand } from './types.js';

@@ -4,0 +4,0 @@ // Encode SVG PathData

@@ -5,3 +5,3 @@ // Parse SVG PathData

import { TransformableSVG } from './TransformableSVG.js';
import { SVGCommand, TransformFunction } from './types.js';
import type { SVGCommand, TransformFunction } from './types.js';
// Private consts : Char groups

@@ -8,0 +8,0 @@ const isWhiteSpace = (c: string) =>

@@ -16,3 +16,3 @@ /* eslint @typescript-eslint/no-explicit-any:0 */

import { SVGPathData } from './SVGPathData.js';
import { SVGCommand, TransformFunction } from './types.js';
import type { SVGCommand, TransformFunction } from './types.js';

@@ -19,0 +19,0 @@ // Predefined transforming functions

import { describe, test, expect } from '@jest/globals';
import { SVGPathData } from '../index.js';
import { assertThrows } from './testUtils.js';
import { CommandM } from '../types.js';
import type { CommandM } from '../types.js';

@@ -6,0 +6,0 @@ describe('Parsing move to commands', () => {

import { describe, test, expect } from '@jest/globals';
import { SVGPathData } from '../index.js';
import { assertThrows } from './testUtils.js';
import { CommandQ } from '../types.js';
import type { CommandQ } from '../types.js';

@@ -6,0 +6,0 @@ describe('Parsing quadratic bezier curve to commands', () => {

import { describe, test, expect } from '@jest/globals';
import { SVGPathData } from '../index.js';
import { assertThrows } from './testUtils.js';
import { CommandS } from '../types.js';
import type { CommandS } from '../types.js';

@@ -6,0 +6,0 @@ describe('Parsing smooth curve to commands', () => {

import { describe, test, expect } from '@jest/globals';
import { SVGPathData } from '../index.js';
import { assertThrows } from './testUtils.js';
import { CommandT } from '../types.js';
import type { CommandT } from '../types.js';

@@ -6,0 +6,0 @@ describe('Parsing smooth quadratic curve to commands', () => {

import { SVGPathDataTransformer } from './SVGPathDataTransformer.js';
import { TransformFunction } from './types.js';
import type { TransformFunction } from './types.js';

@@ -4,0 +4,0 @@ export abstract class TransformableSVG {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc