RAL 1.18.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 64

Build Status

RAL

Runtime abstraction layer

Usage

A simple usage example:

import 'package:RAL/html_i.dart'
if (dart.library.io) 'package:RAL/io/html_io.dart'
if (dart.library.html) 'dart:html' as html;

main() {
  new html.MessageEvent("PreviousSession", data: JSON.encode({}));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

1.18.0

  • Add Element.onKeyUp

1.17.0

  • Add file and blob classes to use in server http adapter implementation

1.16.0

  • Add Document.onClick and Element.onClick

1.15.0

  • Add window.navigator, evt.metaKey for both MouseEvent and KeyboardEvent, evt.ctrlKey for KeyboardEvent, and evt.button for MouseEvent

1.14.0

  • Add Document.body,Node.append(), IFrameElement, CssStyleDeclaration.display, CssClassSet implements Set<String>

1.13.0

  • Add Window.document, Element.setInnerHtml, Element.appendHtml, Document.getElementsByTagName

1.12.0

  • Add Location.reload()

1.11.0

  • Add CssStyleDeclaration.letterSpacing

1.10.0

  • Add Element.hidden

1.9.1

  • Fix CanvasRenderingContext2D.globalCompositeOperation added to interface to

1.9.0

  • Add CanvasRenderingContext2D.globalCompositeOperation

1.8.0

  • Add KeyboardEvent

1.7.0

  • Add MouseEvent.client
  • Add Element.getBoundingClientRect
  • Add Element.classes
  • Add CssStyleDeclaration.top

1.6.0

  • Add default implementation of CanvasElement with basically initialized fields
  • Add default mouse and scroll event streams
  • Add CanvasRenderingContext2D.quadraticCurveTo

1.5.6

  • Add Element.focus()

1.5.5

  • Add Element.onDoubleClick
  • Add Document with onMouseDown, onMouseMove, onMouseLeave, onMouseUp, onMouseWheel, onDoubleClick
  • Add to Node: ownerDocument

1.5.4

  • Add Element.scrollHeight and Element.scrollWidth

1.5.3

  • Add CanvasRenderingContext2D.rotate

1.5.2

  • Fixed all hints of dart analyzer
  • Add .travis.yaml and Travis status to README
  • Suppress error with missing function "_fromBrowserObject(object);" in lib/io/js/src/js_object.dart

1.5.1

  • Fixed bunch of dart errors

1.5.0

  • Add browser_detect_i with Browser
  • Add querySelector
  • Add to Window: devicePixelRatio, onResize, animationFrame
  • Add to Element: onMouseDown, onMouseMove, onMouseLeave, onMouseUp, onScroll, onMouseWhee, scrollTop, clientWidth, clientHeight, offsetWidth, scrollLeft, style
  • Add UIEvent, MouseEvent, WheelEvent, TextMetrics, CanvasPattern, CanvasRenderingContext2D , HtmlElement, CssStyleDeclaration, CssClassSet, CanvasElement

1.4.0

  • Add allowInterop, allowInteropCaptureThis
  • Add Window.Location interface

1.3.0

  • Add window.sessionStorage

1.2.0

  • Add window.open method

1.0.0

  • Initial version, created by Stagehand
  • initial dart:html
  • initial dart:js
  • initial package:js

Use this package as a library

1. Depend on it

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


dependencies:
  RAL: "^1.18.0"

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:RAL/browser_detect_i.dart';

      import 'package:RAL/html_i.dart';

      import 'package:RAL/io/html_io.dart';

      import 'package:RAL/io/js_io.dart';

      import 'package:RAL/io/package_js_io.dart';

      import 'package:RAL/js_i.dart';

      import 'package:RAL/package_js_i.dart';
  
Version Uploaded Documentation Archive
1.18.0 May 31, 2018 Go to the documentation of RAL 1.18.0 Download RAL 1.18.0 archive
1.17.0 May 28, 2018 Go to the documentation of RAL 1.17.0 Download RAL 1.17.0 archive
1.16.0 Apr 11, 2018 Go to the documentation of RAL 1.16.0 Download RAL 1.16.0 archive
1.14.0 Feb 21, 2018 Go to the documentation of RAL 1.14.0 Download RAL 1.14.0 archive
1.13.0 Jan 9, 2018 Go to the documentation of RAL 1.13.0 Download RAL 1.13.0 archive
1.12.0 Nov 29, 2017 Go to the documentation of RAL 1.12.0 Download RAL 1.12.0 archive
1.11.0 Nov 2, 2017 Go to the documentation of RAL 1.11.0 Download RAL 1.11.0 archive
1.10.0 Nov 2, 2017 Go to the documentation of RAL 1.10.0 Download RAL 1.10.0 archive
1.9.1 Oct 30, 2017 Go to the documentation of RAL 1.9.1 Download RAL 1.9.1 archive
1.8.0 Oct 26, 2017 Go to the documentation of RAL 1.8.0 Download RAL 1.8.0 archive

All 20 versions...

Analysis

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

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

Scores

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

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/io/html/src/window.dart: The built-in identifier 'interface' can't be used as a prefix name.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/io/html/src/window.dart: The built-in identifier 'interface' can't be used as a prefix name.

  • Running dartdoc failed.

    Make sure dartdoc runs without any issues.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 10 errors 18 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/io/html/src/storage.dart: The built-in identifier 'interface' can't be used as a prefix name.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/io/html/src/window.dart: The built-in identifier 'interface' can't be used as a prefix name.

    Similar analysis of the following files failed:

    • lib/html_i.dart (error)
    • lib/browser_detect_i.dart (hint)
    • lib/io/html_io.dart (hint)
    • lib/io/js/src/js_array.dart (hint)
    • lib/io/js/src/js_function.dart (hint)
    • lib/io/js/src/js_object.dart (hint)
    • lib/io/js_io.dart (hint)
    • lib/io/package_js_io.dart (hint)
    • lib/js_i.dart (hint)
    • lib/package_js_i.dart (hint)
  • 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 RAL.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0