pixi 4.6.2+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 8

pixi.dart

A Dart wrapper for PixiJS.

The version number of this package mirrors that of the PixiJS library it wraps. An official build of minified pixijs is provided as part of the package.

The PixiJS documentation can be used as reference with a few exceptions such as the loading of shaders (see the custom-filter example).

Remember to wrap all callback functions that are passed to JS with allowInterop().

Usage

import 'dart:html';
import 'package:pixi/pixi.dart';

class BunnyExample
{
	var app		= new Application();
	var bunny	= new Sprite.fromImage('bunny.png');

	BunnyExample()
	{
		document.body.append(app.view);

		this.bunny
			..anchor 	= new Point(0.5, 0.5);
			..position	= new Point(200, 150);

		app.stage.children.add(this.bunny);
		app.ticker.add(allowInterop(
			(_) => this.bunny.rotation += 0.1
		));
	}
}

void main()
{
	new BunnyExample();
}

v4.6.2+1 (2018-01-10)

  • Added analysis_options and editorconfig files.
  • Fixed a few issues to better support strong mode.

v4.6.2+0 (2018-01-09)

  • Complete refactor as a JS interop wrapper for pixijs.
  • Versioning is now based on the underlying pixijs version.
  • Official build of minified pixijs is provided as part of the package.

v0.1.3 (2014-09-13)

  • Switched from package js to dart:js for the examples.
  • Removed the unittest dependency for now.
  • Added a clearEvents method to interactive objects.
  • Fixed an issue with colour referencing in the Graphics display object.

v0.1.2 (2014-07-14)

  • Fixed an issue with interaction states getting missed.

v0.1.1 (2014-07-14)

  • Added the missing onClick implementation.

v0.1.0 (2014-07-11)

Initial release of the interaction implementation:

  • It works for mouse and touch events (and should even support multi-touch).
  • The appropriate examples have been ported from pixi.js.
  • Sprites will have an automatic hit area unless explicitly assigned one.
  • Non-sprites should assign a hit area if required.
  • A few basic hit shapes are provided (rectangle, circle and polygon).

v0.0.5 (2014-02-05)

  • Fix around issues that occur only when compiled to javascript.
  • Initial interaction manager design.
  • Some renaming to avoid clashes with existing Dart classes.

v0.0.4 (2013-11-14)

This is a merge of the simple-render branch into the master and includes the following changes:

  • Switched to a simpler rendering method by walking the scenegraph instead of maintaining a linked list.
  • Removed the linked list sprite batching and implemented a simple batcher with fixed-size buffers.
  • Extended the simple batcher with an optional one that supports multiple textures.
  • TilingSprite is now derived from Sprite and can be rendered by the batching system so the TilingSprite specific renderer and shader have been deprecated.
  • All GL related resources are now owned and maintained by the GL renderer which will make it possible to use them with multiple renderers and will ease the development of context loss management.
  • The shaders have been pulled out into separate classes which are derived from a base shader class.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  pixi: ^4.6.2+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:pixi/pixi.dart';
  
Version Uploaded Documentation Archive
4.8.1+1 Aug 10, 2018 Go to the documentation of pixi 4.8.1+1 Download pixi 4.8.1+1 archive
4.8.1 Aug 9, 2018 Go to the documentation of pixi 4.8.1 Download pixi 4.8.1 archive
4.6.2+1 Jan 10, 2018 Go to the documentation of pixi 4.6.2+1 Download pixi 4.6.2+1 archive
4.6.2+0 Jan 9, 2018 Go to the documentation of pixi 4.6.2+0 Download pixi 4.6.2+0 archive
0.1.3 Sep 13, 2014 Go to the documentation of pixi 0.1.3 Download pixi 0.1.3 archive
0.1.2 Jul 14, 2014 Go to the documentation of pixi 0.1.2 Download pixi 0.1.2 archive
0.1.1 Jul 14, 2014 Go to the documentation of pixi 0.1.1 Download pixi 0.1.1 archive
0.1.0 Jul 11, 2014 Go to the documentation of pixi 0.1.0 Download pixi 0.1.0 archive
0.0.6 Jul 7, 2014 Go to the documentation of pixi 0.0.6 Download pixi 0.0.6 archive
0.0.5 Feb 5, 2014 Go to the documentation of pixi 0.0.5 Download pixi 0.0.5 archive

All 15 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
17
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
8
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.3 <2.0.0