RAL 1.30.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 31

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.30.0

  • Add KeyCode to implementation

1.29.0

  • Add Window.innerWidth and Window.innerHeight

1.28.0

  • Add EventTarget.addEventListener method

1.27.0

  • Added onKeyDown / onKeyUp for Document

1.26.0

  • Changed onContextMenu type
  • Added metaKey for MouseEvent

1.25.0

  • Add Element.getComputedStyle method

1.24.0

  • Add impl for io

1.23.0 [24.07.2018]

  • Add Element.onContextMenu

1.22.0

  • Add Node.parent, Element.tagName; add CssDeclaration .overflowX/Y

1.21.0

  • Add AnchorElement and Element.click()

1.20.0

  • Add alt/shift-keys flags and keyCode field to keyboard event

1.19.0

  • Add return type to window.open()

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.30.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.30.0 Aug 24, 2018 Go to the documentation of RAL 1.30.0 Download RAL 1.30.0 archive
1.29.0 Aug 22, 2018 Go to the documentation of RAL 1.29.0 Download RAL 1.29.0 archive
1.28.0 Aug 13, 2018 Go to the documentation of RAL 1.28.0 Download RAL 1.28.0 archive
1.27.0 Aug 10, 2018 Go to the documentation of RAL 1.27.0 Download RAL 1.27.0 archive
1.26.0 Aug 1, 2018 Go to the documentation of RAL 1.26.0 Download RAL 1.26.0 archive
1.25.0 Jul 31, 2018 Go to the documentation of RAL 1.25.0 Download RAL 1.25.0 archive
1.24.0 Jul 31, 2018 Go to the documentation of RAL 1.24.0 Download RAL 1.24.0 archive
1.23.0 Jul 24, 2018 Go to the documentation of RAL 1.23.0 Download RAL 1.23.0 archive
1.22.0 Jul 23, 2018 Go to the documentation of RAL 1.22.0 Download RAL 1.22.0 archive
1.21.0 Jul 11, 2018 Go to the documentation of RAL 1.21.0 Download RAL 1.21.0 archive

All 32 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
63
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
31
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.

Dependencies

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