{"id":13432615,"url":"https://github.com/CreateJS/EaselJS","last_synced_at":"2025-03-17T10:32:20.798Z","repository":{"id":1334845,"uuid":"1280658","full_name":"CreateJS/EaselJS","owner":"CreateJS","description":"The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.","archived":false,"fork":false,"pushed_at":"2024-09-10T14:53:00.000Z","size":179394,"stargazers_count":8135,"open_issues_count":220,"forks_count":1969,"subscribers_count":374,"default_branch":"master","last_synced_at":"2024-10-29T11:04:22.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://createjs.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CreateJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-01-22T01:36:07.000Z","updated_at":"2024-10-25T15:24:43.000Z","dependencies_parsed_at":"2024-11-18T10:08:38.251Z","dependency_job_id":"b8d796ac-ff5a-4636-84e5-c2f5fb93ca49","html_url":"https://github.com/CreateJS/EaselJS","commit_stats":{"total_commits":1620,"total_committers":59,"mean_commits":27.45762711864407,"dds":0.5,"last_synced_commit":"c716bf010d4f918bec42fe9529f42520b79dc0db"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FEaselJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FEaselJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FEaselJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FEaselJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CreateJS","download_url":"https://codeload.github.com/CreateJS/EaselJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244016780,"owners_count":20384203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:01:14.227Z","updated_at":"2025-03-17T10:32:19.316Z","avatar_url":"https://github.com/CreateJS.png","language":"JavaScript","readme":"# EaselJS\n\nEaselJS is a library for building high-performance interactive 2D content in HTML5. It provides a feature-rich display \nlist to allow you to manipulate and animate graphics. It also provides a robust interactive model for mouse and touch \ninteractions.\n\nIt is excellent for building games, generative art, ads, data visualization, and other highly graphical experiences. It \nworks well alone, or with the rest of the [CreateJS](http://createjs.com/) suite: [SoundJS](http://createjs.com/soundjs), \n[PreloadJS](http://createjs.com/preloadjs), and [TweenJS](http://createjs.com/tweenjs).\n\nIt has no external dependencies, and should be compatible with virtually any framework you enjoy using.\n\n## Simple Example\n\n```javascript\n//Draw a square on screen.\nvar stage = new createjs.Stage('myCanvas');\nvar shape = new createjs.Shape();\nshape.graphics.beginFill('red').drawRect(0, 0, 120, 120);\nstage.addChild(shape);\nstage.update();\n```\n\n## Sprite Animation Example\n```javascript\nvar ss = new createjs.SpriteSheet({\n\tframes: {\n\t\twidth: 32,\n\t\theight: 64,\n\t\tnumFrames: 19\n\t},\n\tanimations: {run: [0, 25], jump: [26, 63, \"run\"]},\n\timages: [\"./assets/runningGrant.png\"]\n});\n\t\nvar sprite = new createjs.Sprite(ss, \"run\");\nsprite.scaleY = sprite.scaleX = 0.4;\nstage.addChild(sprite);\n\t\nsprite.on(\"click\", function() { sprite.gotoAndPlay(\"jump\"); });\n\t\ncreatejs.Ticker.on(\"tick\", stage);\n```\n\n## Support and Resources\n* Find examples and more information at the [EaselJS web site](http://easeljs.com/).\n* Read the [documentation](http://createjs.com/docs/easeljs).\n* Discuss, share projects, and interact with other users on [reddit](http://www.reddit.com/r/createjs/).\n* Ask technical questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/easeljs).\n* File verified bugs or formal feature requests using Issues on [GitHub](https://github.com/createjs/EaselJS/issues).\n* There is a [Google Group](http://groups.google.com/group/createjs-discussion) for discussions and support.\n* Have a look at the included [examples](https://github.com/CreateJS/EaselJS/tree/master/examples) and \n[API documentation](http://createjs.com/docs/easeljs/) for more in-depth information.\n\nIt was built by [gskinner.com](http://www.gskinner.com), and is released for free under the MIT license, which means you\ncan use it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a \nrequirement.\n\n\n## Classes\n\nThe API is inspired in part by Flash's display list, and should be easy to pick up for both JS and AS3 developers. Check \nout the [docs](http://createjs.com/docs/easeljs/) for more information.\n\n**DisplayObject**\nAbstract base class for all display elements in EaselJS. Exposes all of the display properties (ex. x, y, rotation, \nscaleX, scaleY, skewX, skewY, alpha, shadow, etc) that are common to all display objects.\n\n**Stage**\nThe root level display container for display elements. Each time tick() is called on Stage, it will update and render \nthe display list to its associated canvas.\n\n**Container**\nA nestable display container, which lets you aggregate display objects and manipulate them as a group.\n\n**Bitmap**\nDraws an image, video or canvas to the canvas according to its display properties.\n\n**Sprite**\nDisplays single frames or animations from sprite sheets, and provides APIs for managing playback and sequencing.\n\n**Shape**\nRenders a Graphics object within the context of the display list.\n\n**Graphics**\nProvides an easy to use API for drawing vector data. Can be used with Shape, or completely stand alone.\n\n**Text**\nRenders a single line of text to the stage.\n\n**BitmapText**\nRenders text using a SpriteSheet of letter.\n\n**DOMElement**\nAn experimental display object that allows you to manage an HTML element as a part of the display list.\n\n**Filter**\nThe base filter class that other filters (ex. BlurFilter, ColorMatrixFilter, etc) extend.\n\n\nThere are also a few helper classes included:\n\n**Shadow**\nDefines all of the properties needed to display a shadow on a display object.\n\n**Ticker**\nProvides a pausable centralized tick manager for ticking Stage instances or other time based code.\n\n**UID**\nVery simple class that provides global, incremental unique numeric IDs.\n\n**SpriteSheet**\nEncapsulates all the data associated with a sprite sheet to be used with Sprite.\n\n**SpriteSheetUtils**\nContains utility methods for extending existing sprite sheets with flipped frames and extracting individual frames.\n\n**SpriteSheetBuilder**\nBuild a bitmap SpriteSheet from vector graphics at run time. Get the filesize savings of vector, with the performance\nof a SpriteSheet.\n\n**Matrix2D**\nRepresents a 3x3 affine transformation matrix. Used internally for calculating concatenated transformations.\n\n**Rectangle**\nRepresents a rectangle as defined by the points (x, y) and (x+width, y+height).\n\n**Point**\nRepresents a point on a 2 dimensional x / y coordinate system.\n\nA WebGL implementation currently exists, but is limited.\n\n**StageGL**\nA drop-in replacement for the EaselJS Stage class that fully supports a WebGL pipeline. StageGL will draw most Bitmap-\nbased content, including any cached DisplayObjects.\n\n**WebGLInspector**\nA utility and helper class designed to work with StageGL to help investigate and test performance or display problems. \n","funding_links":[],"categories":["JavaScript","Libraries","Canvas","3. 前端游戏框架"],"sub_categories":["JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCreateJS%2FEaselJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCreateJS%2FEaselJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCreateJS%2FEaselJS/lists"}