hanzi-writer
Advanced tools
Comparing version 3.0.0 to 3.0.1
/** | ||
* Hanzi Writer v3.0.0 | https://chanind.github.io/hanzi-writer | ||
* Hanzi Writer v3.0.1 | https://chanind.github.io/hanzi-writer | ||
*/ | ||
@@ -4,0 +4,0 @@ |
@@ -20,7 +20,10 @@ type BoundEvent = { | ||
} | ||
interface PositionerOptions { | ||
type PositionerOptions = { | ||
/** Default: 0 */ | ||
width: number; | ||
/** Default: 0 */ | ||
height: number; | ||
/** Default: 20 */ | ||
padding: number; | ||
} | ||
}; | ||
declare class Positioner { | ||
@@ -110,10 +113,2 @@ padding: number; | ||
}; | ||
type PositionerOptions$0 = { | ||
/** Default: 20 */ | ||
padding?: number; | ||
/** Default: 0 */ | ||
width?: number; | ||
/** Default: 0 */ | ||
height?: number; | ||
}; | ||
type LoadingManagerOptions = { | ||
@@ -157,3 +152,3 @@ charDataLoader: CharDataLoaderFn; | ||
}; | ||
type HanziWriterOptions = PositionerOptions$0 & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type HanziWriterOptions = Partial<PositionerOptions> & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type ParsedHanziWriterOptions = QuizOptions & LoadingManagerOptions & BaseHanziWriterOptions & ColorOptions & { | ||
@@ -165,3 +160,3 @@ width: number; | ||
type RecursivePartial<T> = { | ||
[P in keyof T]: ; | ||
[P in keyof T]?: RecursivePartial<T[P]>; | ||
}; | ||
@@ -421,2 +416,2 @@ declare class Stroke { | ||
} | ||
export { CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, PositionerOptions$0 as PositionerOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; | ||
export { PositionerOptions, CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; |
@@ -20,7 +20,10 @@ type BoundEvent = { | ||
} | ||
interface PositionerOptions { | ||
type PositionerOptions = { | ||
/** Default: 0 */ | ||
width: number; | ||
/** Default: 0 */ | ||
height: number; | ||
/** Default: 20 */ | ||
padding: number; | ||
} | ||
}; | ||
declare class Positioner { | ||
@@ -110,10 +113,2 @@ padding: number; | ||
}; | ||
type PositionerOptions$0 = { | ||
/** Default: 20 */ | ||
padding?: number; | ||
/** Default: 0 */ | ||
width?: number; | ||
/** Default: 0 */ | ||
height?: number; | ||
}; | ||
type LoadingManagerOptions = { | ||
@@ -157,3 +152,3 @@ charDataLoader: CharDataLoaderFn; | ||
}; | ||
type HanziWriterOptions = PositionerOptions$0 & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type HanziWriterOptions = Partial<PositionerOptions> & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type ParsedHanziWriterOptions = QuizOptions & LoadingManagerOptions & BaseHanziWriterOptions & ColorOptions & { | ||
@@ -165,3 +160,3 @@ width: number; | ||
type RecursivePartial<T> = { | ||
[P in keyof T]: ; | ||
[P in keyof T]?: RecursivePartial<T[P]>; | ||
}; | ||
@@ -421,2 +416,2 @@ declare class Stroke { | ||
} | ||
export { CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, PositionerOptions$0 as PositionerOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; | ||
export { PositionerOptions, CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; |
@@ -20,7 +20,10 @@ type BoundEvent = { | ||
} | ||
interface PositionerOptions { | ||
type PositionerOptions = { | ||
/** Default: 0 */ | ||
width: number; | ||
/** Default: 0 */ | ||
height: number; | ||
/** Default: 20 */ | ||
padding: number; | ||
} | ||
}; | ||
declare class Positioner { | ||
@@ -110,10 +113,2 @@ padding: number; | ||
}; | ||
type PositionerOptions$0 = { | ||
/** Default: 20 */ | ||
padding?: number; | ||
/** Default: 0 */ | ||
width?: number; | ||
/** Default: 0 */ | ||
height?: number; | ||
}; | ||
type LoadingManagerOptions = { | ||
@@ -157,3 +152,3 @@ charDataLoader: CharDataLoaderFn; | ||
}; | ||
type HanziWriterOptions = PositionerOptions$0 & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type HanziWriterOptions = Partial<PositionerOptions> & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type ParsedHanziWriterOptions = QuizOptions & LoadingManagerOptions & BaseHanziWriterOptions & ColorOptions & { | ||
@@ -165,3 +160,3 @@ width: number; | ||
type RecursivePartial<T> = { | ||
[P in keyof T]: ; | ||
[P in keyof T]?: RecursivePartial<T[P]>; | ||
}; | ||
@@ -421,2 +416,2 @@ declare class Stroke { | ||
} | ||
export { CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, PositionerOptions$0 as PositionerOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; | ||
export { PositionerOptions, CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; |
@@ -20,7 +20,10 @@ type BoundEvent = { | ||
} | ||
interface PositionerOptions { | ||
type PositionerOptions = { | ||
/** Default: 0 */ | ||
width: number; | ||
/** Default: 0 */ | ||
height: number; | ||
/** Default: 20 */ | ||
padding: number; | ||
} | ||
}; | ||
declare class Positioner { | ||
@@ -110,10 +113,2 @@ padding: number; | ||
}; | ||
type PositionerOptions$0 = { | ||
/** Default: 20 */ | ||
padding?: number; | ||
/** Default: 0 */ | ||
width?: number; | ||
/** Default: 0 */ | ||
height?: number; | ||
}; | ||
type LoadingManagerOptions = { | ||
@@ -157,3 +152,3 @@ charDataLoader: CharDataLoaderFn; | ||
}; | ||
type HanziWriterOptions = PositionerOptions$0 & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type HanziWriterOptions = Partial<PositionerOptions> & QuizOptions & ColorOptions & LoadingManagerOptions & BaseHanziWriterOptions; | ||
type ParsedHanziWriterOptions = QuizOptions & LoadingManagerOptions & BaseHanziWriterOptions & ColorOptions & { | ||
@@ -165,3 +160,3 @@ width: number; | ||
type RecursivePartial<T> = { | ||
[P in keyof T]: ; | ||
[P in keyof T]?: RecursivePartial<T[P]>; | ||
}; | ||
@@ -421,2 +416,2 @@ declare class Stroke { | ||
} | ||
export { CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, PositionerOptions$0 as PositionerOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; | ||
export { PositionerOptions, CharacterJson, CharDataLoaderFn, Point, ColorObject, ColorOptions, OnCompleteFunction, RenderTargetInitFunction, StrokeData, QuizOptions, LoadingManagerOptions, HanziWriterOptions, ParsedHanziWriterOptions, RecursivePartial, HanziWriter as default }; |
{ | ||
"name": "hanzi-writer", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "David Chanin <chanindav@gmail.com> (http://chanind.github.io/hanzi-writer/)", | ||
@@ -11,27 +11,27 @@ "description": "Hanzi Writer is a free and open-source javascript library for both animating simplified Chinese characters and quizzing users on character stroke order.", | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@sinonjs/fake-timers": "^6.0.1", | ||
"@types/jest": "^26.0.14", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-node-resolve": "^11.1.0", | ||
"@sinonjs/fake-timers": "^7.0.2", | ||
"@types/jest": "^26.0.20", | ||
"@types/nise": "^1.4.0", | ||
"@types/sinonjs__fake-timers": "^6.0.2", | ||
"@typescript-eslint/eslint-plugin": "^4.4.0", | ||
"@typescript-eslint/parser": "^4.4.0", | ||
"@wessberg/rollup-plugin-ts": "^1.3.5", | ||
"codecov": "^3.8.0", | ||
"eslint": "^7.11.0", | ||
"@typescript-eslint/eslint-plugin": "^4.14.0", | ||
"@typescript-eslint/parser": "^4.14.0", | ||
"@wessberg/rollup-plugin-ts": "^1.3.8", | ||
"codecov": "^3.8.1", | ||
"eslint": "^7.18.0", | ||
"hanzi-writer-data": "^2.0.1", | ||
"jest-canvas-mock": "2.1.0", | ||
"jest-cli": "^26.5.3", | ||
"jest-cli": "^26.6.3", | ||
"jest-fetch-mock": "^3.0.3", | ||
"nise": "^4.0.4", | ||
"prettier": "^2.2.1", | ||
"rollup": "^2.29.0", | ||
"rollup": "^2.36.2", | ||
"rollup-plugin-filesize": "^9.1.0", | ||
"rollup-plugin-license": "^2.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"semantic-release": "^17.2.0", | ||
"semantic-release": "^17.3.3", | ||
"typescript": "^4.1.3" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
785083
8016