three_dart_jsm 0.0.9 copy "three_dart_jsm: ^0.0.9" to clipboard
three_dart_jsm: ^0.0.9 copied to clipboard

three.js example/jsm rewrite by Dart. for three_dart Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.

5
likes
50/ 160
pub points
81%
popularity

We analyzed this package 8 days ago, and awarded it 50 pub points (of a possible 160):

failed
Follow Dart file conventions
10 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: three_dart_jsm,
    • contains a version property, and,
    • does not contain a publish_to property.

pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

partial
Provide documentation
10 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

149 out of 4510 API elements (3.3 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: AfterimageShader, BleachBypassShader, ConvolutionShader, CopyShader, DigitalGlitch.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Linux`.

Because:

  • package:three_dart_jsm/three_dart_jsm.dart that imports:
  • package:three_dart_jsm/three_dart_jsm/index.dart that imports:
  • package:three_dart_jsm/three_dart_jsm/environments/RoomEnvironment.dart that imports:
  • package:three_dart/three_dart.dart that imports:
  • package:three_dart/three3d/three.dart that imports:
  • package:three_dart/three3d/three_helper.dart that imports:
  • package:three_dart/three3d/math/index.dart that imports:
  • package:three_dart/three3d/math/interpolants/quaternion_linear_interpolant.dart that imports:
  • package:three_dart/three3d/math/quaternion.dart that imports:
  • package:three_dart/three3d/math/vector3.dart that imports:
  • package:three_dart/three3d/math/matrix4.dart that imports:
  • package:three_dart/three3d/math/matrix3.dart that imports:
  • package:flutter_gl/flutter_gl.dart that declares support for platforms: Android, iOS, Windows, macOS, Web.
Package not compatible with platform Web

Because:

  • package:three_dart_jsm/three_dart_jsm.dart that imports:
  • package:three_dart_jsm/three_dart_jsm/index.dart that imports:
  • package:three_dart_jsm/three_dart_jsm/environments/RoomEnvironment.dart that imports:
  • package:three_dart/three_dart.dart that imports:
  • package:three_dart/three3d/three.dart that imports:
  • package:three_dart/three3d/three_helper.dart that imports:
  • package:three_dart/three3d/math/index.dart that imports:
  • package:three_dart/three3d/math/interpolants/quaternion_linear_interpolant.dart that imports:
  • package:three_dart/three3d/math/quaternion.dart that imports:
  • package:three_dart/three3d/core/index.dart that imports:
  • package:three_dart/three3d/core/raycaster.dart that imports:
  • package:three_dart/three3d/core/object_3d.dart that imports:
  • package:three_dart/three3d/textures/texture.dart that imports:
  • package:three_dart/three3d/textures/source.dart that imports:
  • package:three_dart/three3d/extras/index.dart that imports:
  • package:three_dart/three3d/extras/pmrem_generator.dart that imports:
  • package:three_dart/three3d/renderers/index.dart that imports:
  • package:three_dart/three3d/renderers/web_gl_renderer.dart that imports:
  • package:three_dart/three3d/renderers/webgl/index.dart that imports:
  • package:three_dart/three3d/renderers/webgl/web_gl_program.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 1366 issues. Showing the first 2:

ERROR: The getter 'DEG2RAD' isn't defined for the type 'MathUtils'.

lib/three_dart_jsm/controls/ArcballControls.dart:601:46

    ╷
601 │               var y = x * Math.tan(MathUtils.DEG2RAD * this.camera.fov * 0.5);
    │                                              ^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/three_dart_jsm/controls/ArcballControls.dart

ERROR: The getter 'RAD2DEG' isn't defined for the type 'MathUtils'.

lib/three_dart_jsm/controls/ArcballControls.dart:604:38

    ╷
604 │               var newFov = MathUtils.RAD2DEG * (Math.atan(y / xNew) * 2);
    │                                      ^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/three_dart_jsm/controls/ArcballControls.dart

failed
Support up-to-date dependencies
10 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
archive ^3.3.0 3.6.1 3.6.1
flutter flutter 0.0.0 0.0.0
flutter_gl ^0.0.20 0.0.21 0.0.21
image ^3.1.1 3.3.0 4.2.0
opentype_dart ^0.0.1 0.0.1 0.0.1
three_dart ^0.0.14 0.0.16 0.0.16
typr_dart ^0.0.2 0.0.2 0.0.2
universal_html ^2.0.8 2.2.4 2.2.4
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
charcode - 1.3.1 1.3.1
collection - 1.18.0 1.19.0
crypto - 3.0.5 3.0.5
csslib - 1.0.0 1.0.0
ffi - 2.1.3 2.1.3
flutter_gl_macos - 0.0.5 0.0.5
flutter_gl_platform_interface - 0.0.4 0.0.4
flutter_gl_web - 0.0.5 0.0.5
flutter_gl_windows - 0.0.4 0.0.4
flutter_web_plugins - 0.0.0 0.0.0
html - 0.15.4 0.15.4
http - 0.13.6 1.2.2
http_parser - 4.0.2 4.1.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.3.0 1.3.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
universal_io - 2.2.2 2.2.2
vector_math - 2.1.4 2.1.4
xml - 6.5.0 6.5.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.1.1` on image does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions image to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2733 errors:

  • CREATION_WITH_NON_TYPE - lib/addons/math/MeshSurfaceSampler.dart:14:23 - The name 'Triangle' isn't a class.
  • CREATION_WITH_NON_TYPE - lib/addons/math/MeshSurfaceSampler.dart:16:24 - The name 'Vector3' isn't a class.
  • UNDEFINED_CLASS - lib/addons/math/MeshSurfaceSampler.dart:20:8 - Undefined class 'BufferGeometry'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.12, Flutter 3.24.2, Dart 3.5.2.

Check the analysis log for details.

5
likes
50
pub points
81%
popularity

Publisher

unverified uploader

three.js example/jsm rewrite by Dart. for three_dart Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

archive, flutter, flutter_gl, image, opentype_dart, three_dart, typr_dart, universal_html

More

Packages that depend on three_dart_jsm