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

@amoy/components

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amoy/components - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

CHANGELOG.md

@@ -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
}

2

package.json
{
"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

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