Openfl

Latest version: v1.5.1

Safety actively analyzes 622894 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 28

9.3.1

------------------

* Compatibility fixes for Haxe 3 and Haxe 4.0.x and the npm release

9.3.0

------------------

* Added `SampleDataEvent.SAMPLE_DATA` to `Sound` class
* Added `openfl.net.SecureSocket` class implementation
* Added `openfl.display.NativeWindow` class implementation
* Added partial `openfl.desktop.NativeApplication` implementation, including `applicationID`, `exit()`, `Event.ACTIVATE`, `Event.DEACTIVATE`, `InvokeEvent.INVOKE` for launch command line arguments, and properties to test if features are supported
* Added `openfl.display.Screen` class implementation
* Added `openfl.net.FileReferenceList` class implementation for html5 target
* Added `upload()` implementation to `FileReference` for sys targets
* Added `updateAfterEvent()` to `MouseEvent`, `KeyboardEvent`, `TouchEvent`, and `TimerEvent`
* Added `separator` and `lineEncoding` properties to `File` class
* Added `localPort`, `localAddress`, `remotePort`, and `remoteAddress` to `Socket` class on sys targets
* Added `useWeakReference` support to `addEventListener()` on html5 and cpp targets
* Added support for referencing environment variables, like `%PROGRAMFILES%` in `File` path values on Windows
* Added various enum, event, and error types to improve parity with types available in Adobe AIR
* Added basic implementation of `flash.text.StageText` that falls back to `TextField`, similar to AIR desktop
* Replaced `String` with `EventType` in `FileListEvent`, `DatagramSocketEvent`, and `ServerSocketConnectEvent` for better compile-time checks
* Fixed Flash/AIR compatibility for `DatagramSocketEvent`, and `ServerSocketConnectEvent` classes
* Fixed wrong type on `size` for `FileReference` and `File` to make it `Float` instead of `Int` (Some code may need to use `Std.int()` after this change)
* Fixed missing `controlKey` property on `MouseEvent`
* Fixed missing `Event.OPEN` dispatch from `download()` on `FileReference`
* Fixed corrupted binary files from `download()` on `FileReference`
* Fixed cut and copy not being blocked by `TextField` when `displayAsPassword` is true
* Fixed missing `Event.OPEN`, `HTTPStatusEvent.HTTP_STATUS`, `HTTPStatusEvent.HTTP_RESPONSE_STATUS`, and `DataEvent.UPLOAD_COMPLETE` events from `upload()` on `FileReference`
* Fixed `responseHeaders` on `URLLoader` that should have defaulted to an empty array instead of null
* Fixed `HTTPStatusEvent.HTTP_STATUS` on `URLLoader`, which should not have included `responseURL` and `responseHeaders`
* Fixed missing `HTTPStatusEvent.HTTP_RESPONSE_STATUS` on `URLLoader`, which is where `responseURL` and `responseHeaders` should have been
* Fixed runtime exception when using hardware-only texture with `beginBitmapFill()` by drawing black rectangle instead
* Fixed `BackgroundWorker` deprecation warning when using `File` and `FileStream` after `ThreadPool` is introduced in Lime
* Fixed events being dispatched from wrong thread when using asynchronous `File` APIs
* Fixed dragging to scroll in `TextField` when scaled, by switching to `getBounds()`
* Fixed empty `data` value on `URLLoader` when dispatching `IOErrorEvent.IO_ERROR` and server returned a response
* Fixed `Vector.ofArray()` on flash/air targets
* Fixed wrong signature on `Socket` constructor, which should not have had default values
* Fixed incorrect "Lime Application" window title when targeting Adobe AIR on desktop
* Fixed missing cleanup code when closing windows and shutting down application that could lead to memory leaks
* Fixed event listener issue in `TextField` by comparing stage values to avoid issues with multiple windows or null stage
* Fixed typo in name of `Context3DAlphaMaskShader` class
* Fixed `FlashGraphics` being included in other targets under some circumstances by adding `if flash` conditional
* Fixed `openfl.globalization`, `Namespace`, and `QName` issues in npm version
* Fixed incorrect condition that caused issues in `ShapeCache`
* Fixed `Socket` incorrectly dispatching `Event.CONNECT` for unconnected sockets on Windows
* Fixed wrong caps/joints in line style returned by `readGraphicsData()`
* Added `openfl_hack_fix_chrome_text` define to workaround a bug in Chrome that garbles text
* Added `openfl_disable_text_measurement_cache` define to allow the `TextField` shape measurement cache to be optionally disabled

9.2.2

------------------

* Updated flash target externs for Haxe 4.3 compatibility
* Resolve new `:enum abstract` warnings for Haxe 4.3 by replacing with `enum abstract`, if current Haxe version supports it
* Fixed `TextField` keyboard shortcut support to account for AltGr key
* Fixed double timer in `TextField` that would cause caret to keep blinking on focus out
* Fixed exception in `TextField` rendered by Cairo when the text contains ligatures
* Fixed `null` exception in `FileReference.browse()` when no files are selected on html5 target
* Fixed incorrect `accept` attribute on html5 input element if type filter is used once, but not second time
* Fixed `Context3D` scissor rectangle (again), with better fix for both classic display list and Stage 3D
* Fixed text for AM and PM returned by `DateTimeFormatter` on html5 target
* Fixed default locale on html5 for `DateTimeFormatter` and `LocaleID`
* Fixed drawing display object with `visible == false` to `BitmapData`, which should have made it temporarily visible
* Fixed default fallback `QName.uri` value to match flash target
* Fixed bounds calculation of `Graphics.cubicCurveTo()`
* Fixed "Select error 22" exception when creating many `Socket` objects at once
* Fixed uncaught exception when creating a `Socket`
* Fixed invalid `null` value passed to `Vector` constructor on flash target
* Fixed possible incorrect detection of current stage on `TextField` mouse up
* Fixed `Transform.matrix3D` setter vertical scale value
* Fixed default `blendMode` used by `ShaderFilter`
* Fixed setting `topExtension`, `rightExtension`, `bottomExtension`, and `leftExtension` in `ShaderFilter`
* Fixed compilation of `RenderEvent` for flash target
* Fixed issue where setting `width` and `height` of `Video` was sometimes ignored
* Fixed missing `System.totalMemory` and `System.gc()` on HashLink
* Fixed `Graphics.lineGradientStyle()` to allow `null` values for `alphas` and `ratios` parameters, similar to `beginGradientFill()`
* Fixed default fallback value for `ratios` parameter in `Graphics.lineGradientStyle()` and `beginGradientFill()`
* Fixed `Graphics` (and text) jitter on HiDPI screens when using hardware acceleration by snapping to nearest device pixel instead of nearest stage pixel
* Added missing parameters to `Context3D.drawToBitmapData()` in flash target externs
* Added new `openfl_disable_graphics_pixel_snapping` define to optionally disable pixel snapping on `Graphics` tx/ty transformation
* Translate environment variables that appear in `File` path on Windows
* When using flash target with Haxe 4.3, Lime 8.0.2 is required

9.2.1

------------------

* Improved shader debug logging on html5 target
* Fixed `Socket` error handling missing some exceptions
* Fixed `Context3D` scissor rectangle when scaling for HiDPI screens
* Fixed ignored user input after changing `TextField.type` to `INPUT` when it already has focus
* Fixed `TextField` exception when calculating `scrollV`
* Fixed double constructor in SWF library
* Fixed rendering of `StaticText` when using `-Dcairo`
* Fixed `scrollRect` changes not affecting display objects with `cacheAsBitmap` or `filters`
* Fixed exception in `Font.fromFile` when path is null
* Fixed generation of temp file path to avoid using one that already exist
* Fixed null exception in `FileStream` when calling `close()` on already closed stream
* Fixed `OutputProgressEvent` on flash/air targets
* Temporarily limited length of `File` dialog filter types to one until Lime allows more than one

9.2.0

------------------

* Added `openfl.text.StyleSheet` implementation for `TextField`
* Added `scaleMode` implementation to `Stage`
* Added automatic scaling on HiDPI screens when `window.allow-high-dpi` enabled in project (use `-Dopenfl-disable-hdpi` to restore old behavior)
* Added `File`, `FileStream`, and `FileMode` in the `openfl.filesystem` package to read and write files on native platforms
* Added `openfl.desktop.NativeProcess` to run executables on native platforms
* Added `openfl.display.ChildAccess` abstract to simplify access to nested display objects
* Added `openfl.net.IDynamicPropertyOutput` and `openfl.net.IDynamicPropertyWriter` interfaces
* Added `openfl.net.Responder`, `openfl.utils.Namespace`, and `openfl.utils.QName` classes
* Added `isXMLName`, `registerClassAlias`, and `getClassByAlias` static methods to `openfl.Lib`
* Added `condenseWhite` property to `TextField` for `htmlText` whitespace removal
* Added `openfl.globalization.DateTimeFormatter` implementation for HTML5 and Flash (defaults to en_US on native platforms)
* Added `some` and `every` methods to `Vector`
* Added session cookie management for `URLLoader` on native platforms
* Added Stage 3D to the DOM renderer on HTML5
* Added optional text measurement with DIV on HTML5 (use `-Dopenfl-measuretext-div`)
* Added `fromBundle` static method to `openfl.utils.AssetLibrary`
* Improved `TextField` DOM rendering and measurement on HTML5
* Improved `Font.enumerateFonts` to return device fonts, if specified
* Improved visibility of focused `TextField` on mobile by specifying its global rectangle
* Improved `restrict` parsing in `TextField` when it contains multiple `^` characters
* Improved `<li>` element rendering in `TextField` by adding line breaks and displaying bullets
* Improved `htmlText` parsing in `TextField` for HTML entity character codes like `&38;` and `&x20AC;`
* Improved positioning of underline in `TextField`
* Improved `URLVariables` syntax compatibility with Flash by adding `:arrayAccess`
* Improved implementation of `openfl.utils.Object`
* Improved output file size when Lime sets *disable_preloader_assets*
* Improved `getMusic` method on `Assets` to allow streaming Vorbis files on native platforms
* Improved FLA library support by allowing `Sprite` to be used as linkage base class
* Fixed rendering of UTF-8 characters on macOS
* Fixed the last line in a `TextField` getting cut off sometimes when auto-sized
* Fixed inconsistent letter spacing in `TextField`
* Fixed missing bold and italic variants in `TextField` on native platforms
* Fixed missing `Event.OPEN` dispatch in `Loader` and `URLLoader`
* Fixed missing bubbling of `TextEvent.LINK`
* Fixed signature of `splice` method on `Vector`
* Fixed missing dispatch of `FocusEvent.MOUSE_FOCUS_CHANGE` in some situations
* Fixed rendering of `openfl.text.StaticText`

9.1.0

------------------

* Updated for Haxe 4.2
* Added `openfl.net.ServerSocket` for TCP sockets on native platforms
* Added `openfl.net.DatagramSocket` for UDP sockets on native platforms
* Added `openfl.utils.ObjectPool`
* Added shape caching to improve `TextField` rendering performance
* Migrated OpenFL sources to a simpler package structure for better tooling compatibility
* Improved `Loader` to prevent use of `addChild`/`removeChild` methods
* Improved dynamic field access on `openfl.utils.Object` references
* Improved handling of new lines and line breaks in `TextField`
* Improved handling of layout calculations in `TextField`
* Improved the rendering of selected text in `TextField`
* Improved the performance when using nested `TileContainer` instances with `Tilemap`
* Fixed an issue where `graphics.lineStyle` could cause an additoinal draw
* Fixed a rounding issue that could clip `graphics` rendering by one pixel
* Fixed `sprite.transform.colorTransform` to return a new `ColorTransform` object
* Fixed issues rendering some `bitmap.scrollRect` objects on the HTML5 canvas renderer
* Fixed issues rendering some gradient fills on HTML5 canvas renderer
* Fixed an incorrect reference when dispatching some `MouseEvent.ROLL_OUT` events
* Fixed renderer remaining active on `Tilemap` that includes no tiles

Page 1 of 28

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.