@syncfusion/ej2-angular-treemap 31.2.12-ngcc → 32.1.19-ngcc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@syncfusion/ej2-angular-treemap.es5.js +386 -386
- package/@syncfusion/ej2-angular-treemap.es5.js.map +1 -1
- package/@syncfusion/ej2-angular-treemap.js +335 -335
- package/@syncfusion/ej2-angular-treemap.js.map +1 -1
- package/CHANGELOG.md +90 -0
- package/dist/ej2-angular-treemap.umd.js +376 -385
- package/dist/ej2-angular-treemap.umd.js.map +1 -1
- package/dist/ej2-angular-treemap.umd.min.js +1 -10
- package/dist/ej2-angular-treemap.umd.min.js.map +1 -1
- package/ej2-angular-treemap.d.ts +5 -5
- package/ej2-angular-treemap.metadata.json +1 -1
- package/{LICENSE → license} +10 -10
- package/package.json +46 -15
- package/postinstall/tagchange.js +18 -0
- package/public_api.d.ts +1 -1
- package/schematics/collection.json +109 -10
- package/schematics/generators/treemap-default/index.d.ts +3 -0
- package/schematics/generators/treemap-default/index.js +8 -0
- package/schematics/generators/treemap-default/index.ts +8 -0
- package/schematics/generators/treemap-default/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-default/sample-details.js +7 -0
- package/schematics/generators/treemap-default/sample-details.ts +5 -0
- package/schematics/generators/treemap-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
- package/schematics/generators/treemap-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +60 -0
- package/schematics/generators/treemap-default/samples/__path__/__name@dasherize@if-flat__/assets/car-sale.ts +35 -0
- package/schematics/generators/treemap-default/schema.d.ts +3 -0
- package/schematics/generators/treemap-default/schema.js +2 -0
- package/schematics/generators/treemap-default/schema.json +125 -0
- package/schematics/generators/treemap-default/schema.ts +3 -0
- package/schematics/generators/treemap-desaturation-color/index.d.ts +3 -0
- package/schematics/generators/treemap-desaturation-color/index.js +8 -0
- package/schematics/generators/treemap-desaturation-color/index.ts +8 -0
- package/schematics/generators/treemap-desaturation-color/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-desaturation-color/sample-details.js +7 -0
- package/schematics/generators/treemap-desaturation-color/sample-details.ts +5 -0
- package/schematics/generators/treemap-desaturation-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-desaturation-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +9 -0
- package/schematics/generators/treemap-desaturation-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +48 -0
- package/schematics/generators/treemap-desaturation-color/samples/__path__/__name@dasherize@if-flat__/assets/metals.ts +20 -0
- package/schematics/generators/treemap-desaturation-color/schema.d.ts +3 -0
- package/schematics/generators/treemap-desaturation-color/schema.js +2 -0
- package/schematics/generators/treemap-desaturation-color/schema.json +125 -0
- package/schematics/generators/treemap-desaturation-color/schema.ts +3 -0
- package/schematics/generators/treemap-drilldown/index.d.ts +3 -0
- package/schematics/generators/treemap-drilldown/index.js +8 -0
- package/schematics/generators/treemap-drilldown/index.ts +8 -0
- package/schematics/generators/treemap-drilldown/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-drilldown/sample-details.js +7 -0
- package/schematics/generators/treemap-drilldown/sample-details.ts +5 -0
- package/schematics/generators/treemap-drilldown/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-drilldown/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +13 -0
- package/schematics/generators/treemap-drilldown/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-drilldown/samples/__path__/__name@dasherize@if-flat__/assets/drilldown-sample.ts +261 -0
- package/schematics/generators/treemap-drilldown/schema.d.ts +3 -0
- package/schematics/generators/treemap-drilldown/schema.js +2 -0
- package/schematics/generators/treemap-drilldown/schema.json +125 -0
- package/schematics/generators/treemap-drilldown/schema.ts +3 -0
- package/schematics/generators/treemap-equal-color/index.d.ts +3 -0
- package/schematics/generators/treemap-equal-color/index.js +8 -0
- package/schematics/generators/treemap-equal-color/index.ts +8 -0
- package/schematics/generators/treemap-equal-color/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-equal-color/sample-details.js +7 -0
- package/schematics/generators/treemap-equal-color/sample-details.ts +5 -0
- package/schematics/generators/treemap-equal-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-equal-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +9 -0
- package/schematics/generators/treemap-equal-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +53 -0
- package/schematics/generators/treemap-equal-color/samples/__path__/__name@dasherize@if-flat__/assets/metals.ts +20 -0
- package/schematics/generators/treemap-equal-color/schema.d.ts +3 -0
- package/schematics/generators/treemap-equal-color/schema.js +2 -0
- package/schematics/generators/treemap-equal-color/schema.json +125 -0
- package/schematics/generators/treemap-equal-color/schema.ts +3 -0
- package/schematics/generators/treemap-highlight/index.d.ts +3 -0
- package/schematics/generators/treemap-highlight/index.js +8 -0
- package/schematics/generators/treemap-highlight/index.ts +8 -0
- package/schematics/generators/treemap-highlight/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-highlight/sample-details.js +7 -0
- package/schematics/generators/treemap-highlight/sample-details.ts +5 -0
- package/schematics/generators/treemap-highlight/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-highlight/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
- package/schematics/generators/treemap-highlight/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +64 -0
- package/schematics/generators/treemap-highlight/samples/__path__/__name@dasherize@if-flat__/assets/car-sale.ts +35 -0
- package/schematics/generators/treemap-highlight/schema.d.ts +3 -0
- package/schematics/generators/treemap-highlight/schema.js +2 -0
- package/schematics/generators/treemap-highlight/schema.json +125 -0
- package/schematics/generators/treemap-highlight/schema.ts +3 -0
- package/schematics/generators/treemap-label-hide/index.d.ts +3 -0
- package/schematics/generators/treemap-label-hide/index.js +8 -0
- package/schematics/generators/treemap-label-hide/index.ts +8 -0
- package/schematics/generators/treemap-label-hide/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-label-hide/sample-details.js +7 -0
- package/schematics/generators/treemap-label-hide/sample-details.ts +5 -0
- package/schematics/generators/treemap-label-hide/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-label-hide/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -0
- package/schematics/generators/treemap-label-hide/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +55 -0
- package/schematics/generators/treemap-label-hide/samples/__path__/__name@dasherize@if-flat__/assets/country-population.ts +407 -0
- package/schematics/generators/treemap-label-hide/schema.d.ts +3 -0
- package/schematics/generators/treemap-label-hide/schema.js +2 -0
- package/schematics/generators/treemap-label-hide/schema.json +125 -0
- package/schematics/generators/treemap-label-hide/schema.ts +3 -0
- package/schematics/generators/treemap-label-trim/index.d.ts +3 -0
- package/schematics/generators/treemap-label-trim/index.js +8 -0
- package/schematics/generators/treemap-label-trim/index.ts +8 -0
- package/schematics/generators/treemap-label-trim/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-label-trim/sample-details.js +7 -0
- package/schematics/generators/treemap-label-trim/sample-details.ts +5 -0
- package/schematics/generators/treemap-label-trim/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-label-trim/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-label-trim/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +55 -0
- package/schematics/generators/treemap-label-trim/samples/__path__/__name@dasherize@if-flat__/assets/country-population.ts +407 -0
- package/schematics/generators/treemap-label-trim/schema.d.ts +3 -0
- package/schematics/generators/treemap-label-trim/schema.js +2 -0
- package/schematics/generators/treemap-label-trim/schema.json +125 -0
- package/schematics/generators/treemap-label-trim/schema.ts +3 -0
- package/schematics/generators/treemap-label-wrap/index.d.ts +3 -0
- package/schematics/generators/treemap-label-wrap/index.js +8 -0
- package/schematics/generators/treemap-label-wrap/index.ts +8 -0
- package/schematics/generators/treemap-label-wrap/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-label-wrap/sample-details.js +7 -0
- package/schematics/generators/treemap-label-wrap/sample-details.ts +5 -0
- package/schematics/generators/treemap-label-wrap/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-label-wrap/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-label-wrap/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +58 -0
- package/schematics/generators/treemap-label-wrap/samples/__path__/__name@dasherize@if-flat__/assets/country-population.ts +407 -0
- package/schematics/generators/treemap-label-wrap/schema.d.ts +3 -0
- package/schematics/generators/treemap-label-wrap/schema.js +2 -0
- package/schematics/generators/treemap-label-wrap/schema.json +125 -0
- package/schematics/generators/treemap-label-wrap/schema.ts +3 -0
- package/schematics/generators/treemap-label-wrapbyword/index.d.ts +3 -0
- package/schematics/generators/treemap-label-wrapbyword/index.js +8 -0
- package/schematics/generators/treemap-label-wrapbyword/index.ts +8 -0
- package/schematics/generators/treemap-label-wrapbyword/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-label-wrapbyword/sample-details.js +7 -0
- package/schematics/generators/treemap-label-wrapbyword/sample-details.ts +5 -0
- package/schematics/generators/treemap-label-wrapbyword/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-label-wrapbyword/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-label-wrapbyword/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +55 -0
- package/schematics/generators/treemap-label-wrapbyword/samples/__path__/__name@dasherize@if-flat__/assets/country-population.ts +407 -0
- package/schematics/generators/treemap-label-wrapbyword/schema.d.ts +3 -0
- package/schematics/generators/treemap-label-wrapbyword/schema.js +2 -0
- package/schematics/generators/treemap-label-wrapbyword/schema.json +125 -0
- package/schematics/generators/treemap-label-wrapbyword/schema.ts +3 -0
- package/schematics/generators/treemap-layout-squarified/index.d.ts +3 -0
- package/schematics/generators/treemap-layout-squarified/index.js +8 -0
- package/schematics/generators/treemap-layout-squarified/index.ts +8 -0
- package/schematics/generators/treemap-layout-squarified/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-layout-squarified/sample-details.js +7 -0
- package/schematics/generators/treemap-layout-squarified/sample-details.ts +5 -0
- package/schematics/generators/treemap-layout-squarified/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-layout-squarified/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-layout-squarified/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-layout-squarified/samples/__path__/__name@dasherize@if-flat__/assets/econmics.ts +14 -0
- package/schematics/generators/treemap-layout-squarified/schema.d.ts +3 -0
- package/schematics/generators/treemap-layout-squarified/schema.js +2 -0
- package/schematics/generators/treemap-layout-squarified/schema.json +125 -0
- package/schematics/generators/treemap-layout-squarified/schema.ts +3 -0
- package/schematics/generators/treemap-layout-type-four/index.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-four/index.js +8 -0
- package/schematics/generators/treemap-layout-type-four/index.ts +8 -0
- package/schematics/generators/treemap-layout-type-four/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-layout-type-four/sample-details.js +7 -0
- package/schematics/generators/treemap-layout-type-four/sample-details.ts +5 -0
- package/schematics/generators/treemap-layout-type-four/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-layout-type-four/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-layout-type-four/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-layout-type-four/samples/__path__/__name@dasherize@if-flat__/assets/econmics.ts +14 -0
- package/schematics/generators/treemap-layout-type-four/schema.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-four/schema.js +2 -0
- package/schematics/generators/treemap-layout-type-four/schema.json +125 -0
- package/schematics/generators/treemap-layout-type-four/schema.ts +3 -0
- package/schematics/generators/treemap-layout-type-three/index.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-three/index.js +8 -0
- package/schematics/generators/treemap-layout-type-three/index.ts +8 -0
- package/schematics/generators/treemap-layout-type-three/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-layout-type-three/sample-details.js +7 -0
- package/schematics/generators/treemap-layout-type-three/sample-details.ts +5 -0
- package/schematics/generators/treemap-layout-type-three/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-layout-type-three/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-layout-type-three/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-layout-type-three/samples/__path__/__name@dasherize@if-flat__/assets/econmics.ts +14 -0
- package/schematics/generators/treemap-layout-type-three/schema.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-three/schema.js +2 -0
- package/schematics/generators/treemap-layout-type-three/schema.json +125 -0
- package/schematics/generators/treemap-layout-type-three/schema.ts +3 -0
- package/schematics/generators/treemap-layout-type-two/index.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-two/index.js +8 -0
- package/schematics/generators/treemap-layout-type-two/index.ts +8 -0
- package/schematics/generators/treemap-layout-type-two/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-layout-type-two/sample-details.js +7 -0
- package/schematics/generators/treemap-layout-type-two/sample-details.ts +5 -0
- package/schematics/generators/treemap-layout-type-two/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-layout-type-two/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-layout-type-two/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-layout-type-two/samples/__path__/__name@dasherize@if-flat__/assets/econmics.ts +14 -0
- package/schematics/generators/treemap-layout-type-two/schema.d.ts +3 -0
- package/schematics/generators/treemap-layout-type-two/schema.js +2 -0
- package/schematics/generators/treemap-layout-type-two/schema.json +125 -0
- package/schematics/generators/treemap-layout-type-two/schema.ts +3 -0
- package/schematics/generators/treemap-leaf/index.d.ts +3 -0
- package/schematics/generators/treemap-leaf/index.js +8 -0
- package/schematics/generators/treemap-leaf/index.ts +8 -0
- package/schematics/generators/treemap-leaf/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-leaf/sample-details.js +7 -0
- package/schematics/generators/treemap-leaf/sample-details.ts +5 -0
- package/schematics/generators/treemap-leaf/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-leaf/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +8 -0
- package/schematics/generators/treemap-leaf/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +56 -0
- package/schematics/generators/treemap-leaf/samples/__path__/__name@dasherize@if-flat__/assets/econmics.ts +14 -0
- package/schematics/generators/treemap-leaf/schema.d.ts +3 -0
- package/schematics/generators/treemap-leaf/schema.js +2 -0
- package/schematics/generators/treemap-leaf/schema.json +125 -0
- package/schematics/generators/treemap-leaf/schema.ts +3 -0
- package/schematics/generators/treemap-legend-default/index.d.ts +3 -0
- package/schematics/generators/treemap-legend-default/index.js +8 -0
- package/schematics/generators/treemap-legend-default/index.ts +8 -0
- package/schematics/generators/treemap-legend-default/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-legend-default/sample-details.js +7 -0
- package/schematics/generators/treemap-legend-default/sample-details.ts +5 -0
- package/schematics/generators/treemap-legend-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -0
- package/schematics/generators/treemap-legend-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +7 -0
- package/schematics/generators/treemap-legend-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +57 -0
- package/schematics/generators/treemap-legend-default/samples/__path__/__name@dasherize@if-flat__/assets/election-data.ts +57 -0
- package/schematics/generators/treemap-legend-default/schema.d.ts +3 -0
- package/schematics/generators/treemap-legend-default/schema.js +2 -0
- package/schematics/generators/treemap-legend-default/schema.json +125 -0
- package/schematics/generators/treemap-legend-default/schema.ts +3 -0
- package/schematics/generators/treemap-legend-interaction/index.d.ts +3 -0
- package/schematics/generators/treemap-legend-interaction/index.js +8 -0
- package/schematics/generators/treemap-legend-interaction/index.ts +8 -0
- package/schematics/generators/treemap-legend-interaction/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-legend-interaction/sample-details.js +7 -0
- package/schematics/generators/treemap-legend-interaction/sample-details.ts +5 -0
- package/schematics/generators/treemap-legend-interaction/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-legend-interaction/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +7 -0
- package/schematics/generators/treemap-legend-interaction/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +58 -0
- package/schematics/generators/treemap-legend-interaction/samples/__path__/__name@dasherize@if-flat__/assets/election-data.ts +57 -0
- package/schematics/generators/treemap-legend-interaction/schema.d.ts +3 -0
- package/schematics/generators/treemap-legend-interaction/schema.js +2 -0
- package/schematics/generators/treemap-legend-interaction/schema.json +125 -0
- package/schematics/generators/treemap-legend-interaction/schema.ts +3 -0
- package/schematics/generators/treemap-level/index.d.ts +3 -0
- package/schematics/generators/treemap-level/index.js +8 -0
- package/schematics/generators/treemap-level/index.ts +8 -0
- package/schematics/generators/treemap-level/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-level/sample-details.js +7 -0
- package/schematics/generators/treemap-level/sample-details.ts +5 -0
- package/schematics/generators/treemap-level/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-level/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
- package/schematics/generators/treemap-level/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +58 -0
- package/schematics/generators/treemap-level/samples/__path__/__name@dasherize@if-flat__/assets/car-sale.ts +35 -0
- package/schematics/generators/treemap-level/schema.d.ts +3 -0
- package/schematics/generators/treemap-level/schema.js +2 -0
- package/schematics/generators/treemap-level/schema.json +125 -0
- package/schematics/generators/treemap-level/schema.ts +3 -0
- package/schematics/generators/treemap-range-color/index.d.ts +3 -0
- package/schematics/generators/treemap-range-color/index.js +8 -0
- package/schematics/generators/treemap-range-color/index.ts +8 -0
- package/schematics/generators/treemap-range-color/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-range-color/sample-details.js +7 -0
- package/schematics/generators/treemap-range-color/sample-details.ts +5 -0
- package/schematics/generators/treemap-range-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-range-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +14 -0
- package/schematics/generators/treemap-range-color/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +59 -0
- package/schematics/generators/treemap-range-color/samples/__path__/__name@dasherize@if-flat__/assets/metals.ts +20 -0
- package/schematics/generators/treemap-range-color/schema.d.ts +3 -0
- package/schematics/generators/treemap-range-color/schema.js +2 -0
- package/schematics/generators/treemap-range-color/schema.json +125 -0
- package/schematics/generators/treemap-range-color/schema.ts +3 -0
- package/schematics/generators/treemap-selection/index.d.ts +3 -0
- package/schematics/generators/treemap-selection/index.js +8 -0
- package/schematics/generators/treemap-selection/index.ts +8 -0
- package/schematics/generators/treemap-selection/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-selection/sample-details.js +7 -0
- package/schematics/generators/treemap-selection/sample-details.ts +5 -0
- package/schematics/generators/treemap-selection/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-selection/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
- package/schematics/generators/treemap-selection/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +64 -0
- package/schematics/generators/treemap-selection/samples/__path__/__name@dasherize@if-flat__/assets/car-sale.ts +35 -0
- package/schematics/generators/treemap-selection/schema.d.ts +3 -0
- package/schematics/generators/treemap-selection/schema.js +2 -0
- package/schematics/generators/treemap-selection/schema.json +125 -0
- package/schematics/generators/treemap-selection/schema.ts +3 -0
- package/schematics/generators/treemap-tooltip/index.d.ts +3 -0
- package/schematics/generators/treemap-tooltip/index.js +8 -0
- package/schematics/generators/treemap-tooltip/index.ts +8 -0
- package/schematics/generators/treemap-tooltip/sample-details.d.ts +5 -0
- package/schematics/generators/treemap-tooltip/sample-details.js +7 -0
- package/schematics/generators/treemap-tooltip/sample-details.ts +5 -0
- package/schematics/generators/treemap-tooltip/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +3 -0
- package/schematics/generators/treemap-tooltip/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -0
- package/schematics/generators/treemap-tooltip/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +90 -0
- package/schematics/generators/treemap-tooltip/samples/__path__/__name@dasherize@if-flat__/assets/airport-count.ts +21 -0
- package/schematics/generators/treemap-tooltip/schema.d.ts +3 -0
- package/schematics/generators/treemap-tooltip/schema.js +2 -0
- package/schematics/generators/treemap-tooltip/schema.json +125 -0
- package/schematics/generators/treemap-tooltip/schema.ts +3 -0
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +25 -25
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
- package/src/index.d.ts +6 -6
- package/src/treemap/colormapping.directive.d.ts +54 -54
- package/src/treemap/levels.directive.d.ts +98 -98
- package/src/treemap/treemap-all.module.d.ts +13 -13
- package/src/treemap/treemap.component.d.ts +50 -50
- package/src/treemap/treemap.module.d.ts +5 -5
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "treemap-leaf",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "path",
|
|
10
|
+
"description": "The path to create the component.",
|
|
11
|
+
"visible": false
|
|
12
|
+
},
|
|
13
|
+
"project": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The name of the project.",
|
|
16
|
+
"$default": {
|
|
17
|
+
"$source": "projectName"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The name of the component.",
|
|
23
|
+
"$default": {
|
|
24
|
+
"$source": "argv",
|
|
25
|
+
"index": 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"inlineStyle": {
|
|
29
|
+
"description": "Specifies if the style will be in the ts file.",
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"alias": "s"
|
|
33
|
+
},
|
|
34
|
+
"inlineTemplate": {
|
|
35
|
+
"description": "Specifies if the template will be in the ts file.",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"alias": "t"
|
|
39
|
+
},
|
|
40
|
+
"viewEncapsulation": {
|
|
41
|
+
"description": "Specifies the view encapsulation strategy.",
|
|
42
|
+
"enum": [
|
|
43
|
+
"Emulated",
|
|
44
|
+
"Native",
|
|
45
|
+
"None",
|
|
46
|
+
"ShadowDom"
|
|
47
|
+
],
|
|
48
|
+
"type": "string",
|
|
49
|
+
"alias": "v"
|
|
50
|
+
},
|
|
51
|
+
"changeDetection": {
|
|
52
|
+
"description": "Specifies the change detection strategy.",
|
|
53
|
+
"enum": [
|
|
54
|
+
"Default",
|
|
55
|
+
"OnPush"
|
|
56
|
+
],
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "Default",
|
|
59
|
+
"alias": "c"
|
|
60
|
+
},
|
|
61
|
+
"prefix": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "The prefix to apply to generated selectors.",
|
|
64
|
+
"alias": "p",
|
|
65
|
+
"oneOf": [
|
|
66
|
+
{
|
|
67
|
+
"maxLength": 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"format": "html-selector"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"styleext": {
|
|
76
|
+
"description": "The file extension to be used for style files.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"default": "css"
|
|
79
|
+
},
|
|
80
|
+
"spec": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Specifies if a spec file is generated.",
|
|
83
|
+
"default": true
|
|
84
|
+
},
|
|
85
|
+
"flat": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Flag to indicate if a dir is created.",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"skipImport": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"description": "Flag to skip the module import.",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
95
|
+
"selector": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"format": "html-selector",
|
|
98
|
+
"description": "The selector to use for the component."
|
|
99
|
+
},
|
|
100
|
+
"module": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Allows specification of the declaring module.",
|
|
103
|
+
"alias": "m"
|
|
104
|
+
},
|
|
105
|
+
"export": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false,
|
|
108
|
+
"description": "Specifies if declaring module exports the component."
|
|
109
|
+
},
|
|
110
|
+
"entryComponent": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false,
|
|
113
|
+
"description": "Specifies if the component is an entry component of declaring module."
|
|
114
|
+
},
|
|
115
|
+
"lintFix": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": false,
|
|
118
|
+
"description": "Specifies whether to apply lint fixes after generating the component."
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": [
|
|
122
|
+
"name"
|
|
123
|
+
],
|
|
124
|
+
"id": "treemap-leaf"
|
|
125
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
|
|
4
|
+
const sampleDetails = require("./sample-details");
|
|
5
|
+
function default_1(options) {
|
|
6
|
+
return schematics_1.componentBuilder(options, sampleDetails);
|
|
7
|
+
}
|
|
8
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
|
3
|
+
import { Schema } from './schema';
|
|
4
|
+
import * as sampleDetails from './sample-details';
|
|
5
|
+
|
|
6
|
+
export default function (options: Schema): Rule {
|
|
7
|
+
return componentBuilder(options, sampleDetails);
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentName = 'treemap';
|
|
4
|
+
exports.sampleName = 'legend-default';
|
|
5
|
+
exports.diModules = 'TreeMapTooltip,TreeMapLegend';
|
|
6
|
+
exports.packageName = '@syncfusion/ej2-angular-treemap';
|
|
7
|
+
exports.libModules = 'TreeMapModule';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const componentName: string = 'treemap';
|
|
2
|
+
export const sampleName: string = 'legend-default';
|
|
3
|
+
export const diModules: string = 'TreeMapTooltip,TreeMapLegend';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-treemap';
|
|
5
|
+
export const libModules: string = 'TreeMapModule';
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<div class="control-section">
|
|
2
|
+
<ejs-treemap id='container' #treemap style="display:block;" [dataSource] ='dataSource' [weightValuePath] ='weightValuePath'
|
|
3
|
+
[titleSettings] = 'titleSettings' [legendSettings] = 'legendSettings' [leafItemSettings] = 'leafItemSettings' [tooltipSettings] = 'tooltipSettings'
|
|
4
|
+
[equalColorValuePath] = 'equalColorValuePath' format = 'n' useGroupingSeparator = 'true' (load)='load($event)' >
|
|
5
|
+
</ejs-treemap>
|
|
6
|
+
|
|
7
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import { Component, ViewEncapsulation, ViewChild } from '@angular/core';
|
|
4
|
+
import { TreeMap, TreeMapTooltip, TreeMapLegend, LegendMode } from '@syncfusion/ej2-angular-treemap';
|
|
5
|
+
import { electionData } from './assets/election-data';
|
|
6
|
+
import { ILoadEventArgs, TreeMapTheme } from '@syncfusion/ej2-angular-treemap';
|
|
7
|
+
TreeMap.Inject(TreeMapTooltip, TreeMapLegend);
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: '<%=dasherize(selector)%>',
|
|
11
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
12
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
13
|
+
encapsulation: ViewEncapsulation.None
|
|
14
|
+
})
|
|
15
|
+
export class <%= classify(name) %>Component {
|
|
16
|
+
@ViewChild('treemap')
|
|
17
|
+
public treemap: TreeMap;
|
|
18
|
+
public load = (args: ILoadEventArgs) => {
|
|
19
|
+
let theme: string = location.hash.split('/')[1];
|
|
20
|
+
theme = theme ? theme : 'Material';
|
|
21
|
+
args.treemap.theme = <TreeMapTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
|
|
22
|
+
}
|
|
23
|
+
titleSettings: object = {
|
|
24
|
+
text: 'US Presidential election result - 2016',
|
|
25
|
+
textStyle: { size: '15px' }
|
|
26
|
+
};
|
|
27
|
+
dataSource: object[] = electionData;
|
|
28
|
+
weightValuePath: string = 'Population';
|
|
29
|
+
tooltipSettings: object = {
|
|
30
|
+
visible: true,
|
|
31
|
+
format: ' <b>${Winner}<b><br>State : ${State}<br>Trump : ${Trump} %<br>Clinton : ${Clinton} %'
|
|
32
|
+
};
|
|
33
|
+
legendSettings: object = {
|
|
34
|
+
visible: true,
|
|
35
|
+
position: 'Top',
|
|
36
|
+
shape: 'Rectangle',
|
|
37
|
+
height: '10'
|
|
38
|
+
};
|
|
39
|
+
equalColorValuePath: string = 'Winner';
|
|
40
|
+
leafItemSettings: object = {
|
|
41
|
+
labelPath: 'State',
|
|
42
|
+
fill: '#6699cc',
|
|
43
|
+
border: { color: 'white', width: 0.5 },
|
|
44
|
+
colorMapping: [
|
|
45
|
+
{
|
|
46
|
+
value: 'Trump', color: '#D84444'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
value: 'Clinton', color: '#316DB5'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
constructor() {
|
|
55
|
+
//code
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export let electionData: Object[] =
|
|
4
|
+
[
|
|
5
|
+
{ State: "Alabama", Trump:62.9,Clinton:34.6, WinPercentage: 62.9,Winner:"Trump", Population : 4780127 },
|
|
6
|
+
{ State: "Alaska", Trump:52.9,Clinton:37.7, WinPercentage: 52.9,Winner:"Trump", Population : 710249},
|
|
7
|
+
{ State: "Arkansas", Trump:60.6,Clinton:33.7, WinPercentage:60.6,Winner:"Trump", Population : 2915958 },
|
|
8
|
+
{ State: "Arizona", Trump:49.5,Clinton:45.4, WinPercentage:49.5,Winner:"Trump", Population : 6392307 },
|
|
9
|
+
{ State: "California", Trump:32.8,Clinton:61.6, WinPercentage: 61.6,Winner:"Clinton", Population : 37252895},
|
|
10
|
+
{ State: "Colorado", Trump:47.3,Clinton:44.4, WinPercentage: 47.3,Winner:"Trump", Population : 5029324 },
|
|
11
|
+
{ State: "Connecticut", Trump:41.2,Clinton:54.5, WinPercentage: 54.5,Winner:"Clinton", Population : 3574118},
|
|
12
|
+
{ State: "Delaware", Trump:53.4,Clinton:41.9, WinPercentage: 53.4,Winner:"Trump", Population : 897936 },
|
|
13
|
+
{ State: "District of Columbia", Trump:4.1,Clinton:92.8, WinPercentage: 92.8,Winner:"Clinton", Population : 693972 },
|
|
14
|
+
{ State: "Florida", Trump:49.1,Clinton:47.8 , WinPercentage: 49.1,Winner:"Trump", Population : 18804623},
|
|
15
|
+
{ State: "Georgia", Trump:51.3,Clinton:45.6 , WinPercentage:51.3,Winner:"Trump", Population : 9688681},
|
|
16
|
+
{ State: "Hawaii", Trump:62.2,Clinton:30, WinPercentage:62.2,Winner:"Trump", Population : 1360301 },
|
|
17
|
+
{ State: "Idaho", Trump:59.2,Clinton:27.6 , WinPercentage: 59.2,Winner:"Trump", Population : 1567652 },
|
|
18
|
+
{ State: "Illinois", Trump:55.4,Clinton:39.4, WinPercentage: 55.4,Winner:"Trump", Population : 12831549 },
|
|
19
|
+
{ State: "Indiana", Trump:57.2,Clinton:37.9 , WinPercentage:57.2,Winner:"Trump", Population : 6484229 },
|
|
20
|
+
{ State: "Iowa", Trump:51.8,Clinton:42.2, WinPercentage:51.8,Winner:"Trump", Population : 3046869 },
|
|
21
|
+
{ State: "Kansas", Trump:57.2,Clinton:36.2, WinPercentage:57.2,Winner:"Trump", Population : 2853132, },
|
|
22
|
+
{ State: "Kentucky", Trump:62.5,Clinton:32.7 , WinPercentage:62.5,Winner:"Trump", Population : 4339349 },
|
|
23
|
+
{ State: "Louisiana", Trump:58.1,Clinton:38.4 , WinPercentage:58.1,Winner:"Trump", Population : 4533479 },
|
|
24
|
+
{ State: "Maine", Trump:45.2,Clinton:47.9 , WinPercentage:47.9,Winner:"Clinton", Population : 1328361},
|
|
25
|
+
{ State: "Maryland", Trump:35.3,Clinton:60.5 , WinPercentage:60.5,Winner:"Clinton", Population : 5773785 },
|
|
26
|
+
{ State: "Massachusetts", Trump:33.5,Clinton:60.8, WinPercentage:60.8,Winner:"Clinton", Population : 6547817 },
|
|
27
|
+
{ State: "Michigan", Trump:47.6,Clinton:47.3 , WinPercentage:47.6,Winner:"Trump", Population : 9884129 },
|
|
28
|
+
{ State: "Minnesota", Trump:45.4,Clinton:46.9, WinPercentage:46.9,Winner:"Trump", Population : 5303925 },
|
|
29
|
+
{ State: "Mississippi", Trump:58.3,Clinton:39.7, WinPercentage:58.3,Winner:"Trump", Population : 2968103 },
|
|
30
|
+
{ State: "Missouri", Trump:57.1,Clinton:38.0, WinPercentage:57.1,Winner:"Trump", Population : 5988927 },
|
|
31
|
+
{ State: "Montana", Trump:56.5,Clinton:36.0, WinPercentage: 56.5,Winner:"Trump", Population : 989417 },
|
|
32
|
+
{ State: "Nebraska", Trump:60.3,Clinton:34.0 , WinPercentage:60.3,Winner:"Trump", Population : 1826341 },
|
|
33
|
+
{ State: "Nevada", Trump:45.5,Clinton:47.9, WinPercentage:47.9,Winner:"Clinton", Population : 2700691 },
|
|
34
|
+
{ State: "New Hampshire", Trump:47.2,Clinton:47.6 , WinPercentage: 47.6,Winner:"Clinton", Population : 1316466 },
|
|
35
|
+
{ State: "New Jersey", Trump:41.8,Clinton:55.0, WinPercentage:55,Winner:"Clinton", Population : 8791936},
|
|
36
|
+
{ State: "New Mexico", Trump:40.0,Clinton:48.3 , WinPercentage:48.3,Winner:"Clinton", Population : 2059192 },
|
|
37
|
+
{ State: "New York", Trump:37.5,Clinton:58.8 , WinPercentage:58.8,Winner:"Clinton", Population : 19378087},
|
|
38
|
+
{ State: "North Carolina", Trump:50.5,Clinton:46.7, WinPercentage:50.5,Winner:"Trump", Population : 9535692 },
|
|
39
|
+
{ State: "North Dakota", Trump:64.1,Clinton:27.8, WinPercentage:64.1,Winner:"Trump", Population : 672591 },
|
|
40
|
+
{ State: "Ohio", Trump:52.1,Clinton:43.5, WinPercentage:52.5,Winner:"Trump", Population : 11536725 },
|
|
41
|
+
{ State: "Oklahoma", Trump:65.3,Clinton:28.9, WinPercentage: 65.3,Winner:"Trump", Population : 3751616 },
|
|
42
|
+
{ State: "Oregon", Trump:41.1,Clinton:51.7, WinPercentage:51.7,Winner:"Clinton", Population : 3831073 },
|
|
43
|
+
{ State: "Pennsylvania", Trump:48.8,Clinton:47.6 , WinPercentage: 48.8,Winner:"Trump", Population : 12702887},
|
|
44
|
+
{ State: "Rhode Island", Trump:39.8,Clinton:55.4, WinPercentage: 55.4,Winner:"Clinton", Population : 1052931 },
|
|
45
|
+
{ State: "South Carolina", Trump:54.9,Clinton:40.8, WinPercentage:54.9,Winner:"Trump", Population : 4625401},
|
|
46
|
+
{ State: "South Dakota", Trump:61.5,Clinton:31.7, WinPercentage: 61.5,Winner:"Trump", Population : 814191 },
|
|
47
|
+
{ State: "Tennessee", Trump:61.1,Clinton:34.9, WinPercentage:61.1,Winner:"Trump", Population : 6346275},
|
|
48
|
+
{ State: "Texas", Trump:52.6,Clinton:43.4, WinPercentage:52.6,Winner:"Trump", Population : 25146105 },
|
|
49
|
+
{ State: "Utah", Trump:45.9,Clinton:27.8, WinPercentage:45.9,Winner:"Trump", Population : 2763888, },
|
|
50
|
+
{ State: "Vermont", Trump:39.7,Clinton:61.1, WinPercentage:61.1,Winner:"Clinton", Population : 625745 },
|
|
51
|
+
{ State: "Virginia", Trump:45.0,Clinton:49.9 , WinPercentage:49.9,Winner:"Clinton", Population : 8001045},
|
|
52
|
+
{ State: "Washington", Trump:4.1,Clinton:92.8 , WinPercentage:92.8,Winner:"Clinton", Population : 6724543 },
|
|
53
|
+
{ State: "Wisconsin", Trump:68.7,Clinton:26.5 , WinPercentage:68.7,Winner:"Trump", Population : 5687289},
|
|
54
|
+
{ State: "West Virginia", Trump:47.9,Clinton:46.9, WinPercentage:47.9,Winner:"Clinton", Population : 1853011 },
|
|
55
|
+
{ State: "Wyoming", Trump:70.1,Clinton:22.5, WinPercentage:70.1,Winner:"Trump", Population : 583767 }
|
|
56
|
+
|
|
57
|
+
];
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "treemap-legend-default",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "path",
|
|
10
|
+
"description": "The path to create the component.",
|
|
11
|
+
"visible": false
|
|
12
|
+
},
|
|
13
|
+
"project": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The name of the project.",
|
|
16
|
+
"$default": {
|
|
17
|
+
"$source": "projectName"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The name of the component.",
|
|
23
|
+
"$default": {
|
|
24
|
+
"$source": "argv",
|
|
25
|
+
"index": 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"inlineStyle": {
|
|
29
|
+
"description": "Specifies if the style will be in the ts file.",
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"alias": "s"
|
|
33
|
+
},
|
|
34
|
+
"inlineTemplate": {
|
|
35
|
+
"description": "Specifies if the template will be in the ts file.",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"alias": "t"
|
|
39
|
+
},
|
|
40
|
+
"viewEncapsulation": {
|
|
41
|
+
"description": "Specifies the view encapsulation strategy.",
|
|
42
|
+
"enum": [
|
|
43
|
+
"Emulated",
|
|
44
|
+
"Native",
|
|
45
|
+
"None",
|
|
46
|
+
"ShadowDom"
|
|
47
|
+
],
|
|
48
|
+
"type": "string",
|
|
49
|
+
"alias": "v"
|
|
50
|
+
},
|
|
51
|
+
"changeDetection": {
|
|
52
|
+
"description": "Specifies the change detection strategy.",
|
|
53
|
+
"enum": [
|
|
54
|
+
"Default",
|
|
55
|
+
"OnPush"
|
|
56
|
+
],
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "Default",
|
|
59
|
+
"alias": "c"
|
|
60
|
+
},
|
|
61
|
+
"prefix": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "The prefix to apply to generated selectors.",
|
|
64
|
+
"alias": "p",
|
|
65
|
+
"oneOf": [
|
|
66
|
+
{
|
|
67
|
+
"maxLength": 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"format": "html-selector"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"styleext": {
|
|
76
|
+
"description": "The file extension to be used for style files.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"default": "css"
|
|
79
|
+
},
|
|
80
|
+
"spec": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Specifies if a spec file is generated.",
|
|
83
|
+
"default": true
|
|
84
|
+
},
|
|
85
|
+
"flat": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Flag to indicate if a dir is created.",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"skipImport": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"description": "Flag to skip the module import.",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
95
|
+
"selector": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"format": "html-selector",
|
|
98
|
+
"description": "The selector to use for the component."
|
|
99
|
+
},
|
|
100
|
+
"module": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Allows specification of the declaring module.",
|
|
103
|
+
"alias": "m"
|
|
104
|
+
},
|
|
105
|
+
"export": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false,
|
|
108
|
+
"description": "Specifies if declaring module exports the component."
|
|
109
|
+
},
|
|
110
|
+
"entryComponent": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false,
|
|
113
|
+
"description": "Specifies if the component is an entry component of declaring module."
|
|
114
|
+
},
|
|
115
|
+
"lintFix": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": false,
|
|
118
|
+
"description": "Specifies whether to apply lint fixes after generating the component."
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": [
|
|
122
|
+
"name"
|
|
123
|
+
],
|
|
124
|
+
"id": "treemap-legend-default"
|
|
125
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
|
|
4
|
+
const sampleDetails = require("./sample-details");
|
|
5
|
+
function default_1(options) {
|
|
6
|
+
return schematics_1.componentBuilder(options, sampleDetails);
|
|
7
|
+
}
|
|
8
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
|
3
|
+
import { Schema } from './schema';
|
|
4
|
+
import * as sampleDetails from './sample-details';
|
|
5
|
+
|
|
6
|
+
export default function (options: Schema): Rule {
|
|
7
|
+
return componentBuilder(options, sampleDetails);
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentName = 'treemap';
|
|
4
|
+
exports.sampleName = 'legend-interaction';
|
|
5
|
+
exports.diModules = 'TreeMapTooltip,TreeMapLegend';
|
|
6
|
+
exports.packageName = '@syncfusion/ej2-angular-treemap';
|
|
7
|
+
exports.libModules = 'TreeMapModule';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const componentName: string = 'treemap';
|
|
2
|
+
export const sampleName: string = 'legend-interaction';
|
|
3
|
+
export const diModules: string = 'TreeMapTooltip,TreeMapLegend';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-treemap';
|
|
5
|
+
export const libModules: string = 'TreeMapModule';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<div class="control-section">
|
|
2
|
+
<ejs-treemap id='container' #treemap style="display:block;" [dataSource] ='dataSource' [weightValuePath] ='weightValuePath'
|
|
3
|
+
[titleSettings] = 'titleSettings' [legendSettings] = 'legendSettings' [leafItemSettings] = 'leafItemSettings' [tooltipSettings] = 'tooltipSettings'
|
|
4
|
+
[equalColorValuePath] = 'equalColorValuePath' format = 'n' useGroupingSeparator = 'true' (load)='load($event)' >
|
|
5
|
+
</ejs-treemap>
|
|
6
|
+
|
|
7
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import { Component, ViewEncapsulation, ViewChild } from '@angular/core';
|
|
4
|
+
import { TreeMap, TreeMapTooltip, TreeMapLegend, LegendMode } from '@syncfusion/ej2-angular-treemap';
|
|
5
|
+
import { electionData } from './assets/election-data';
|
|
6
|
+
import { ILoadEventArgs, TreeMapTheme } from '@syncfusion/ej2-angular-treemap';
|
|
7
|
+
TreeMap.Inject(TreeMapTooltip, TreeMapLegend);
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: '<%=dasherize(selector)%>',
|
|
11
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
12
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
13
|
+
encapsulation: ViewEncapsulation.None
|
|
14
|
+
})
|
|
15
|
+
export class <%= classify(name) %>Component {
|
|
16
|
+
@ViewChild('treemap')
|
|
17
|
+
public treemap: TreeMap;
|
|
18
|
+
public load = (args: ILoadEventArgs) => {
|
|
19
|
+
let theme: string = location.hash.split('/')[1];
|
|
20
|
+
theme = theme ? theme : 'Material';
|
|
21
|
+
args.treemap.theme = <TreeMapTheme>(theme.charAt(0).toUpperCase() + theme.slice(1));
|
|
22
|
+
}
|
|
23
|
+
titleSettings: object = {
|
|
24
|
+
text: 'US Presidential election result - 2016',
|
|
25
|
+
textStyle: { size: '15px' }
|
|
26
|
+
};
|
|
27
|
+
dataSource: object[] = electionData;
|
|
28
|
+
weightValuePath: string = 'Population';
|
|
29
|
+
tooltipSettings: object = {
|
|
30
|
+
visible: true,
|
|
31
|
+
format: ' <b>${Winner}<b><br>State : ${State}<br>Trump : ${Trump} %<br>Clinton : ${Clinton} %'
|
|
32
|
+
};
|
|
33
|
+
legendSettings: object = {
|
|
34
|
+
visible: true,
|
|
35
|
+
position: 'Top',
|
|
36
|
+
shape: 'Rectangle',
|
|
37
|
+
height: '10',
|
|
38
|
+
mode:'Interactive',
|
|
39
|
+
};
|
|
40
|
+
equalColorValuePath: string = 'Winner';
|
|
41
|
+
leafItemSettings: object = {
|
|
42
|
+
labelPath: 'State',
|
|
43
|
+
fill: '#6699cc',
|
|
44
|
+
border: { color: 'white', width: 0.5 },
|
|
45
|
+
colorMapping: [
|
|
46
|
+
{
|
|
47
|
+
value: 'Trump', color: '#D84444'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: 'Clinton', color: '#316DB5'
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
constructor() {
|
|
56
|
+
//code
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export let electionData: Object[] =
|
|
4
|
+
[
|
|
5
|
+
{ State: "Alabama", Trump:62.9,Clinton:34.6, WinPercentage: 62.9,Winner:"Trump", Population : 4780127 },
|
|
6
|
+
{ State: "Alaska", Trump:52.9,Clinton:37.7, WinPercentage: 52.9,Winner:"Trump", Population : 710249},
|
|
7
|
+
{ State: "Arkansas", Trump:60.6,Clinton:33.7, WinPercentage:60.6,Winner:"Trump", Population : 2915958 },
|
|
8
|
+
{ State: "Arizona", Trump:49.5,Clinton:45.4, WinPercentage:49.5,Winner:"Trump", Population : 6392307 },
|
|
9
|
+
{ State: "California", Trump:32.8,Clinton:61.6, WinPercentage: 61.6,Winner:"Clinton", Population : 37252895},
|
|
10
|
+
{ State: "Colorado", Trump:47.3,Clinton:44.4, WinPercentage: 47.3,Winner:"Trump", Population : 5029324 },
|
|
11
|
+
{ State: "Connecticut", Trump:41.2,Clinton:54.5, WinPercentage: 54.5,Winner:"Clinton", Population : 3574118},
|
|
12
|
+
{ State: "Delaware", Trump:53.4,Clinton:41.9, WinPercentage: 53.4,Winner:"Trump", Population : 897936 },
|
|
13
|
+
{ State: "District of Columbia", Trump:4.1,Clinton:92.8, WinPercentage: 92.8,Winner:"Clinton", Population : 693972 },
|
|
14
|
+
{ State: "Florida", Trump:49.1,Clinton:47.8 , WinPercentage: 49.1,Winner:"Trump", Population : 18804623},
|
|
15
|
+
{ State: "Georgia", Trump:51.3,Clinton:45.6 , WinPercentage:51.3,Winner:"Trump", Population : 9688681},
|
|
16
|
+
{ State: "Hawaii", Trump:62.2,Clinton:30, WinPercentage:62.2,Winner:"Trump", Population : 1360301 },
|
|
17
|
+
{ State: "Idaho", Trump:59.2,Clinton:27.6 , WinPercentage: 59.2,Winner:"Trump", Population : 1567652 },
|
|
18
|
+
{ State: "Illinois", Trump:55.4,Clinton:39.4, WinPercentage: 55.4,Winner:"Trump", Population : 12831549 },
|
|
19
|
+
{ State: "Indiana", Trump:57.2,Clinton:37.9 , WinPercentage:57.2,Winner:"Trump", Population : 6484229 },
|
|
20
|
+
{ State: "Iowa", Trump:51.8,Clinton:42.2, WinPercentage:51.8,Winner:"Trump", Population : 3046869 },
|
|
21
|
+
{ State: "Kansas", Trump:57.2,Clinton:36.2, WinPercentage:57.2,Winner:"Trump", Population : 2853132, },
|
|
22
|
+
{ State: "Kentucky", Trump:62.5,Clinton:32.7 , WinPercentage:62.5,Winner:"Trump", Population : 4339349 },
|
|
23
|
+
{ State: "Louisiana", Trump:58.1,Clinton:38.4 , WinPercentage:58.1,Winner:"Trump", Population : 4533479 },
|
|
24
|
+
{ State: "Maine", Trump:45.2,Clinton:47.9 , WinPercentage:47.9,Winner:"Clinton", Population : 1328361},
|
|
25
|
+
{ State: "Maryland", Trump:35.3,Clinton:60.5 , WinPercentage:60.5,Winner:"Clinton", Population : 5773785 },
|
|
26
|
+
{ State: "Massachusetts", Trump:33.5,Clinton:60.8, WinPercentage:60.8,Winner:"Clinton", Population : 6547817 },
|
|
27
|
+
{ State: "Michigan", Trump:47.6,Clinton:47.3 , WinPercentage:47.6,Winner:"Trump", Population : 9884129 },
|
|
28
|
+
{ State: "Minnesota", Trump:45.4,Clinton:46.9, WinPercentage:46.9,Winner:"Trump", Population : 5303925 },
|
|
29
|
+
{ State: "Mississippi", Trump:58.3,Clinton:39.7, WinPercentage:58.3,Winner:"Trump", Population : 2968103 },
|
|
30
|
+
{ State: "Missouri", Trump:57.1,Clinton:38.0, WinPercentage:57.1,Winner:"Trump", Population : 5988927 },
|
|
31
|
+
{ State: "Montana", Trump:56.5,Clinton:36.0, WinPercentage: 56.5,Winner:"Trump", Population : 989417 },
|
|
32
|
+
{ State: "Nebraska", Trump:60.3,Clinton:34.0 , WinPercentage:60.3,Winner:"Trump", Population : 1826341 },
|
|
33
|
+
{ State: "Nevada", Trump:45.5,Clinton:47.9, WinPercentage:47.9,Winner:"Clinton", Population : 2700691 },
|
|
34
|
+
{ State: "New Hampshire", Trump:47.2,Clinton:47.6 , WinPercentage: 47.6,Winner:"Clinton", Population : 1316466 },
|
|
35
|
+
{ State: "New Jersey", Trump:41.8,Clinton:55.0, WinPercentage:55,Winner:"Clinton", Population : 8791936},
|
|
36
|
+
{ State: "New Mexico", Trump:40.0,Clinton:48.3 , WinPercentage:48.3,Winner:"Clinton", Population : 2059192 },
|
|
37
|
+
{ State: "New York", Trump:37.5,Clinton:58.8 , WinPercentage:58.8,Winner:"Clinton", Population : 19378087},
|
|
38
|
+
{ State: "North Carolina", Trump:50.5,Clinton:46.7, WinPercentage:50.5,Winner:"Trump", Population : 9535692 },
|
|
39
|
+
{ State: "North Dakota", Trump:64.1,Clinton:27.8, WinPercentage:64.1,Winner:"Trump", Population : 672591 },
|
|
40
|
+
{ State: "Ohio", Trump:52.1,Clinton:43.5, WinPercentage:52.5,Winner:"Trump", Population : 11536725 },
|
|
41
|
+
{ State: "Oklahoma", Trump:65.3,Clinton:28.9, WinPercentage: 65.3,Winner:"Trump", Population : 3751616 },
|
|
42
|
+
{ State: "Oregon", Trump:41.1,Clinton:51.7, WinPercentage:51.7,Winner:"Clinton", Population : 3831073 },
|
|
43
|
+
{ State: "Pennsylvania", Trump:48.8,Clinton:47.6 , WinPercentage: 48.8,Winner:"Trump", Population : 12702887},
|
|
44
|
+
{ State: "Rhode Island", Trump:39.8,Clinton:55.4, WinPercentage: 55.4,Winner:"Clinton", Population : 1052931 },
|
|
45
|
+
{ State: "South Carolina", Trump:54.9,Clinton:40.8, WinPercentage:54.9,Winner:"Trump", Population : 4625401},
|
|
46
|
+
{ State: "South Dakota", Trump:61.5,Clinton:31.7, WinPercentage: 61.5,Winner:"Trump", Population : 814191 },
|
|
47
|
+
{ State: "Tennessee", Trump:61.1,Clinton:34.9, WinPercentage:61.1,Winner:"Trump", Population : 6346275},
|
|
48
|
+
{ State: "Texas", Trump:52.6,Clinton:43.4, WinPercentage:52.6,Winner:"Trump", Population : 25146105 },
|
|
49
|
+
{ State: "Utah", Trump:45.9,Clinton:27.8, WinPercentage:45.9,Winner:"Trump", Population : 2763888, },
|
|
50
|
+
{ State: "Vermont", Trump:39.7,Clinton:61.1, WinPercentage:61.1,Winner:"Clinton", Population : 625745 },
|
|
51
|
+
{ State: "Virginia", Trump:45.0,Clinton:49.9 , WinPercentage:49.9,Winner:"Clinton", Population : 8001045},
|
|
52
|
+
{ State: "Washington", Trump:4.1,Clinton:92.8 , WinPercentage:92.8,Winner:"Clinton", Population : 6724543 },
|
|
53
|
+
{ State: "Wisconsin", Trump:68.7,Clinton:26.5 , WinPercentage:68.7,Winner:"Trump", Population : 5687289},
|
|
54
|
+
{ State: "West Virginia", Trump:47.9,Clinton:46.9, WinPercentage:47.9,Winner:"Clinton", Population : 1853011 },
|
|
55
|
+
{ State: "Wyoming", Trump:70.1,Clinton:22.5, WinPercentage:70.1,Winner:"Trump", Population : 583767 }
|
|
56
|
+
|
|
57
|
+
];
|