texture_atlas_transformer 1.0.1

  • README.md
  • Installing
  • Versions
  • 45

texture_atlas_transformer

A transformer to build JSON Atlas files for inclusion in games.

Example pubspec.yaml:

transformers:
  - texture_atlas_transformer:
      output_dir: web/assets/textures
      scale: 0.125
      files:
        flying:
          frames:
            - "web/assets/green_flapper/Transparent PNG/flying/*.png"

Options

  • output_dir: Output directory to generate files into.
  • scale: Either a num or a Map (ex. {'x': 0.5, 'y': 1.0}). This ratio is applied to every frame.
  • resize: Same as scale; however, each frame is resized to the exact size, instead of being scaled.
  • files: A Map of Strings to atlas definitions.
  • extension: The output image extension. Default: png. Supports jpg, jpeg, gif, and tga.

Atlas Definitions

  • frames: A List of Strings representing files to be combined. Supports globbing.
  • animations: A Map of Strings to animations.

Use this package as a library

1. Depend on it

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


dependencies:
  texture_atlas_transformer: "^1.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:texture_atlas_transformer/texture_atlas_transformer.dart';
  
Version Uploaded Documentation Archive
1.0.1 Jul 26, 2017 Go to the documentation of texture_atlas_transformer 1.0.1 Download texture_atlas_transformer 1.0.1 archive
1.0.0 Jul 25, 2017 Go to the documentation of texture_atlas_transformer 1.0.0 Download texture_atlas_transformer 1.0.0 archive

Analysis

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, other

Primary library: package:texture_atlas_transformer/texture_atlas_transformer.dart with components: io, build.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use texture_atlas_transformer.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

    Strong-mode analysis of lib/src/settings.dart gave the following hint:

    line: 1 col: 1
    'barback' is deprecated and shouldn't be used.

    Strong-mode analysis of lib/texture_atlas_transformer.dart gave the following hint:

    line: 2 col: 1
    'barback' is deprecated and shouldn't be used.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
barback ^0.15.0 0.15.2+16
glob ^1.0.0 1.1.5
image ^1.0.0 1.1.33 2.0.4
Transitive dependencies
archive 1.0.33 2.0.0
args 1.4.3
async 2.0.7
browser 0.10.0+3
charcode 1.1.1
collection 1.14.10
convert 2.0.1
crypto 2.0.5
matcher 0.12.3
path 1.6.1
petitparser 1.7.6
pool 1.3.5
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
xml 3.0.0