@amoy/components
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,3 @@ | ||
- [1.0.2] | ||
- 编写声明文件; | ||
- [1.0.1] | ||
@@ -2,0 +4,0 @@ - 修改仓库地址; |
@@ -96,2 +96,31 @@ declare namespace Component { | ||
} | ||
} | ||
interface componentBase { | ||
layout: { | ||
update: (style?: Layout.style) => void | ||
setScale: (scale: number) => void | ||
} | ||
appendTo: (container: any) => void | ||
append: (child: any) => void | ||
before: (element: any) => void | ||
after: (element: any) => void | ||
insertBefore: (element: any) => void | ||
insertAfter: (element: any) => void | ||
remove: () => void | ||
getRelativeBounds: () => { width: number, height: number, x: number, y: number } | ||
getGlobalBounds: () => { width: number, height: number, x: number, y: number } | ||
} | ||
interface componentSprite extends PIXI.Sprite, componentBase {} | ||
interface componentText extends PIXI.Text, componentBase {} | ||
interface componentRect extends PIXI.Text, componentBase {} | ||
interface componentCircle extends PIXI.Text, componentBase {} | ||
declare module '@amoy/components' { | ||
function Sprite(image: Component.spriteImage, style?: Layout.style): componentSprite | ||
function Text(centent: string, style?: Layout.style): componentText | ||
function Rect(style?: Layout.style): componentRect | ||
function Circle(style?: Layout.style): componentCircle | ||
function Container(style?: Layout.style): componentSprite | ||
} |
{ | ||
"name": "@amoy/components", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "components", | ||
@@ -5,0 +5,0 @@ "types": "./lib/types.d.ts", |
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
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
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
4619230
44930
1