- Overall performance optimization.
- Fixed a bug where the
resizeevent was fired unnecessarily when scrolling the page. - Fixed a bug when the SVG has a different size than the one set in the
viewBox. An initialresizeevent was not fired. - Fixed a FOUC effect when loading a large template in the
grapper-viewcomponent. - Fixed an error in the
gSVGlibrary when.top()or.parents()is called and the SVG is already inserted in the DOM. - Added the
template.profileprofile for performance analysis and diagnostics ingSVGtemplate. - Updated the
grapper-coreversion to 1.1.0-rc.11.
- BREAKING CHANGE: remove support to those attributes of
<grapper-view>:svg-src="<url>", use<template" src="<url>">instead.data-src="<url>", use<script type="data" src="<url>">instead.methods-src="<url>", use<script type="methods" src="<url>">instead.config-src="<url>", use<script type="config" src="<url>">instead.
- By default, external resources load with
srcin template, data, methods, or config can only be loaded from the same origin as the page. Add support totrust-originattribute for load external resources from other origins:<template" src="<external-url>" trust-origin>.<script type="data" src="<external-url>" trust-origin>.<script type="methods" src="<external-url>" trust-origin>.<script type="config" src="<external-url>" trust-origin>.
- SECURITY: Fix a potential XSS vulnerability with external data and config:
<script type="data" src="<url>">does not accept JSON5, only CSV, or JSON.<script type="config" src="<url>">does not accept JSON5, only JSON.
- Corrected the version in the distribution files.
- Corrected references in the documentation.
- Other minor fixes
- Update the
grapper-coreversion to 1.1.0-beta.9. - Definitive removal of support for
$.addEventListener, insteadg-onor$.grapperView.addEventListener()should be used. - Full reloading of the component should be done with
$.grapperView.load()instead of$.load().
- Update the
grapper-coreversion to 1.1.0-beta.8. - Adds support for
intersection.enterandintersection.exitevents directly from the template when theintersection-rationproperty is set to a value other than 0 ingrapper-view.
- Fixes an error with the NPM package.
- Fixes an error when trying to access to
$.dataor$.configfrom a method.
- All directive helpers are collected in
$, avoiding the need to know whether a given function is in$as a general helper or in$$as a specific directive helper. $$is supported by compatibility with previous versions.
- Fixes a bug when calling
animateTo()with values that includedegorpxunits.
- Fixes an error when calling
animateTo()forxorywithdelayon atextelement.
- Update
grapper-corefor alias support. - Added
g-composeralias for compatibility withGraphane. - Update dependencies.
- Fix version number.
- Rename the project to
Grapper.- Update references to
GraphanetoGrapper. - Rename
g-composertograpper-viewcomponent. - Remove
g-prefix fromcorecomponent.
- Update references to
- Correction of small errors in the tests.
- Migrate to a new GitHub repository.
- Change the publishing process.
- Update dependencies.
- Fixed a bug when
data.$distinc('key')is called twice with different keys. - Added
lib/component.jswithdefineComponent()function for create a Web Component fromg-composercontent. - Change the local
tools/workbench/forgraphane-workbenchpackage. - Change the local
tools/packer/forgraphane-packerpackage.
- First stable version.
- Reorganized the content of the
distfolder. - Optimized code.
- Added
observer.darkplugin. - Removed the undocumented feature that allowed
g-for="n of obj". - Added support for iterating over object members using
g-for="(value, key) in obj". - Added support for iterating a numeric range with
g-for="n in 10", generating1,2,3,4,5,6,7,8,9,10. - Maintained support for
g-for="n of 10", generating0,1,2,3,4,5,6,7,8,9. - Maintained support for
g-for="n of arr"to iterate over arrays. - Added support for conditional objects within an array in the
g-bindofclassattribute. - Added
$$.elementand$$.attributehelpers ing-bind. - Refactored
$$.currentValue()ing-bindfor thestyleattribute, now returns an object, and for theclassattribute, now returns an array. - Added
$$.elementas a helper ing-content. - Fixed a bug when
g-ifandg-forare in the same element in that order and theg-ifcondition changes.
- BREAKING CHANGE: Split
shapesplugin into:shapes:polar2cartersian(),arc(),barArc(), andcircleSlice().shapes.extra:regularPolygon(),strart(), andcircle().
- Added
spiral()toshapes.extraplugin. - Added
shapesplugin intog-composercore.
- Added data helpers with slice functionality:
data.$sumBefore(idx [,prop]),data.$minBefore(idx [,prop]),data.$maxBefore(idx [,prop]),data.$avgBefore(idx [,prop]),data.$distincBefore(idx [,prop]), anddata.$countBefore(idx [,prop]).
- BREAKING CHANGE: Until now,
<defs g-for="">was used to create a list of items. Now the behavior of<defs g-for=“”>is to generate a list of invisible<defs>, not a list of visible<g>. To create a list of items you must use<g g-for="">. - Added complete support to
g-forandg-bindin the same element. In each iteration over theg-foris evaluated theg-bind. - Added support to
g-forandg-ifin the same element in this order. The oposite precedence (g-ifbefore thang-for) is not supported. - Fixed possible side effects in the execution of directives inside
g-ifblocks evaluated as false. The evaluation of other directives inside a falseg-ifblock is now bypassed. - Fixed the default SVG size when the
viewBoxis dynamically defined. - Fixed the error event triggering. An event was fired for each error. Now a single event is sent with all errors in an array.
- Added the
.valueproperty andvalueattribute tog-composer. Thisvalueis a shortcut to.data={value: v}. - Added the
.versionproperty tog-composer, it allows easy access to the version information of the Composer instance. - Error detection and error messages have been improved.
- Fixed a Proxy error when a primitive
datais returned. - Update attribute assignment for camelCase properties.
- The code is optimized to reduce size and increase speed.
- Fixed catastrophic backtracking in regex checks when wrong data is processed.
- Added support for simple data (datum), i.e.
data, in addition to objects and arrays, can be a simple number, string, or boolean value. - Added
CONTRIBUTING.mdandCODE_OF_CONDUCT.md.
- BREAKING CHANGE:
$$()ing-contentdirective is renamed to$$.currentValue(). - Added
$$.fromURL()ing-contentdirective for load external resources. - Added
$$.currentContent()ing-contentdirective for get the current content. - The
g-loaddirective plugin has been removed, as this function is integrated ing-content. - Refactored the template engine's directive storage to ensure that there is only one handler per directive.
- Improve
README.md.
- First beta version.
- Fix an error with
g-bindwith camelcase attributes asviewBox.
- Improve
g-forandg-ifdirectives. - Rewrite
.source()and.toSource()for the new internal reference comment (<!-- ref -->).
- Added the
.toSource()plugin to get a formal SVG format. - Fixed
.source()with template engine anddefs g-forelements.
- Improve the handling error in
g-composerand the SVG Template Engine. - Added
g-objectdirective from Object Plugin. - Fixed error in Firefox when the SVG and
g-composerdon't havewidthorheightvalues.
- Fixed error loading plugin from
g-composer. - Fixed error building plugins.
- BREAKING CHANGE: the attribute
viewport-ratiois nowintersection-ratio. - BREAKING CHANGE: the attribute
viewport-classis nowintersection-class. - BREAKING CHANGE: the attribute
viewport-once-classis nowintersection-once-class. - BREAKING CHANGE: the event
enterViewportis nowintersection.enter. - BREAKING CHANGE: the event
exitViewportis nowintersection.exit. - BREAKING CHANGE: plugins now export a default function.
- BREAKING CHANGE: removed
scriptdistribution files. - Added
.intersection(ratio)and eventsintersection.enter/intersection.exitto the SVG library. - Added
g-intersection="ratio"and eventsintersection.enter/intersection.exitto the SVG Template Engine. - Add event
loadand improve eventrendering-composer. - Added static
install()method ing-composerfor load plugins. - Update plugins script for call to
g-composer.install(). - Added
moduledistribution folder and files. - Refactored
animateTo. - Fixed errors in
animateTowith FireFox. - Fixed a bug with Safari and the 'SVG' selector (uppercase).
- Added
$$()in theg-binddirective to get the current value of the attribute. - Added reloading of the component when the Light DOM changes.
- Improved the code resulting of running
.animateTo()or$$.dynamic()withtransform=rotate(). - Improved Javascript identifier validation in template directives.
- Improved error description in console messages.
- Improved CSV format support.
- Refactor and renamed
keep-aspectplugin tonon-scaling-size. As a result:g-keep-aspectcustom directive is nowg-non-scaling-size..keepAspect()method is nownonScalingSize()..keepAspect('stroke')method is deprecated and must be used the standard attributevector-effect="non-scaling-stroke".
- Fixed errors with
animateToin Firefox. - Fixed the
widthbehaviour when not defined by SVG or component size. - Fixed an error with decimal values as
g-for="n of 10.1". - Fixed an error with load plugin and its internal cache.
- Removed
--internal-widthCSS variable. - Removed support for
hiddenattribute ing-component. - Refactor the array operators.
- BREAKING CHANGE: the
dattribute is reset when the.dobject is obtained. - BREAKING CHANGE: the
$.min(),$.max()and other data helpers was change todata.$min(),data.$max(), etc. - BREAKING CHANG: renamed
$.dynamic()to$$.dynamic()ing-binddirective. - Added
renderevent on SVG when the engine processes the template. - Added
isRendereingproperty totruewhen the composer is processing the template. - Added
attachevent when an element is added to the SVG. - Added
.parents()method to the SVG library to obtain an array with all the parent elements. - Added
.top()method to the SVG library to obtain the top parent element. - Added observe-resize plugin:
.observeResize()method to the SVG library.resizeevent on SVG element.
- Added keep-aspect plugin:
g-keep-aspectcustom directive to the template engine..keepAspect()method.
- Added load plugin:
g-loadcustom directive to the template engine.loadevent.- Change the object observer behavior, now it doesn't launch the callback when the property is updated with the previous value.
- Refactored
.add()and.addBefore()methods. - Refactored
dandtransformhandler. - Fixed debug plugin with new
.add()and.addBefore()methods. - Fixed an error with SVG library and Promises.
- Fixed an SVG library bug with
.content()andinnerHTML()when including tags ending in/>. - Removed support for the ancient plugin model (deprecated).
- BREAKING CHANGE: Renamed
g-templateasg-composer! - BREAKING CHANGE: Redesigned plugin model!
- Added support for
transformpseudo functions liketransform.scale().translate(). - Improved support for
dpath pseudo functions liked.M().L(). - Refactored
d.regularPolygon()in the shape plugin. - Redesigned and refactored
d.arc()in the shape plugin. - Redesigned and refactored
d.barArc()in the shape plugin. - Added
d.circleSlice()to the shape plugin. - Optimized the lengths of the shape plugin with only four decimal places.
- Added special function
data()inscript type="method"for normalize and transform data before the rendering. - Created export for core.
- Added named export in core-viewport.
- Moved CSS_PROP from constructor to prototype in core.
- Added direction to
d.arc()shape plugin. - Updated develop dependencies.
- Renamed
$.animate()to$.dynamic()ing-binddirective. - Added support for keyframes in
$.dynamic().s - Removed event 'load' and added event 'init' than is launch only one way per template.
- The event handler called from
g-onrecibe as this the SVG element wrapped by the gSVG library. - The
g-ondirective support to call methods with and without parameters. - The
g-ondirective support expressions. - The
g-ondirective support lazy load methods. - Template attribute
srcrenamed assvg-src. - Added support for function names with unicode characters into script type methods.
- Fixed a bug with anonymous functions into script type methods.
- Fixed a bug with several updates of
$.data. - Fixed a bug with remove previous event listener in
g-on. - Fixed a bug when data has line return with Windows format.
- Fixed a bug with
heightandwidthvalues andanimateTo().
- Initial version.