babylon 0.0.8

  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 25

Changelog

0.0.1

  • Initial version, created by Stagehand

example/main.dart

// Copyright (c) 2016, Cedware. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:Babylon/babylon.dart';
import 'dart:html';
import 'package:js/js.dart';

main() {
  print("lol");
  CanvasElement canvas = querySelector("#canvas");
  Engine engine = new Engine(canvas,true);
  Scene scene = new Scene(engine);
  Camera camera = new FreeCamera("cam1", new Vector3(0.0,5.0,-10.0),scene);
  camera.setTarget(Vector3.Zero());
  camera.attachControl(canvas,true);
  Mesh.createSphere("s1",30,1.0,scene);
  Light light = new HemisphericLight("light", new Vector3(0.0,1.0,0.0),scene);
  light.intensity=0.7;
  engine.runRenderLoop(allowInterop((){
    scene.render();
  }));
}

Use this package as a library

1. Depend on it

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


dependencies:
  babylon: ^0.0.8

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:babylon/babylon.dart';
  
Version Uploaded Documentation Archive
0.0.8 Jun 2, 2016 Go to the documentation of babylon 0.0.8 Download babylon 0.0.8 archive
0.0.7 Jun 1, 2016 Go to the documentation of babylon 0.0.7 Download babylon 0.0.7 archive
0.0.6 Jun 1, 2016 Go to the documentation of babylon 0.0.6 Download babylon 0.0.6 archive
0.0.5 Jun 1, 2016 Go to the documentation of babylon 0.0.5 Download babylon 0.0.5 archive
0.0.4 Jun 1, 2016 Go to the documentation of babylon 0.0.4 Download babylon 0.0.4 archive
0.0.3 Jun 1, 2016 Go to the documentation of babylon 0.0.3 Download babylon 0.0.3 archive
0.0.2 Jun 1, 2016 Go to the documentation of babylon 0.0.2 Download babylon 0.0.2 archive
0.0.1 Jun 1, 2016 Go to the documentation of babylon 0.0.1 Download babylon 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
85
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
25
Learn more about scoring.

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

  • Dart: 2.0.0-dev.69.0
  • pana: 0.11.7

Platforms

Detected platforms: web

Primary library: package:babylon/babylon.dart with components: html, js.

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.

Homepage does not exists.

We were unable to access https://www.cedware.com at the time of the analysis.

Use constrained dependencies.

The pubspec.yaml contains 2 dependencies without version constraints. Specify version ranges for the following dependencies: browser, js.

Package is too old.

The package was released more than two years ago.

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.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Format lib/babylon.dart.

Run dartfmt to format lib/babylon.dart.

Format lib/camera/camera.dart.

Run dartfmt to format lib/camera/camera.dart.

Fix additional 7 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/camera/free_camera.dart (Run dartfmt to format lib/camera/free_camera.dart.)
  • lib/engine.dart (Run dartfmt to format lib/engine.dart.)
  • lib/light/hermispheric_light.dart (Run dartfmt to format lib/light/hermispheric_light.dart.)
  • lib/light/light.dart (Run dartfmt to format lib/light/light.dart.)
  • lib/mesh/mesh.dart (Run dartfmt to format lib/mesh/mesh.dart.)
  • lib/scene.dart (Run dartfmt to format lib/scene.dart.)
  • lib/vector3.dart (Run dartfmt to format lib/vector3.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
browser >=0.10.0+2 0.10.0+3
js >=0.6.0 0.6.1+1
Dev dependencies
test >=0.12.0 <0.13.0