@evan.network/ui-angular-core
Version:
The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:
58 lines (57 loc) • 1.69 kB
TypeScript
import { AfterViewInit, ElementRef, // @angular/core
OnChanges, SimpleChanges } from 'angular-libs';
/**************************************************************************************************/
/**
* Displays account ids in blockie style. Angular component wrapper for
* https://github.com/download13/blockies.
*
* Usage:
* <blockie-component class="small-blockie"
* [address]="accountId"
* [size]="8"
* [scale]="15">
* </blockie-component>
*
* @class Component BlockieComponent
*/
export declare class BlockieComponent implements AfterViewInit, OnChanges {
/***************** inputs & outpus *****************/
/**
* Address that should be displayed as an blockie
*/
address: string;
/**
* width/height of the blockie
*/
size: number;
/**
* width/height of each block in pixels, default: 5
*/
scale: number;
/***************** variables *****************/
/**
* blockie element references
*/
$blockie: ElementRef;
/**
* properties to check for updates
*/
private changesProperties;
/***************** initialization *****************/
constructor();
/**
* Create the blockie after the wrapper element was rendered.
*/
ngAfterViewInit(): void;
/**
* Check the changesProperties to update the blockie.
*
* @param {SimpleChanges} changes SimpleChanges
*/
ngOnChanges(changes: SimpleChanges): void;
/***************** functions *****************/
/**
* Creates the blockie element and applies it to the blockie element reference.
*/
createBlockie(): void;
}