Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-gx-split-text

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-gx-split-text - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

2

bundles/ng-gx-split-text.umd.js

@@ -140,2 +140,3 @@ (function (global, factory) {

wordSpan.style.display = 'inline-block';
wordSpan.style.textIndent = '0';
chars.forEach((/**

@@ -150,2 +151,3 @@ * @param {?} char

charSpan.style.display = 'inherit';
charSpan.style.textIndent = '0';
charSpan.innerHTML = char;

@@ -152,0 +154,0 @@ wordSpan.appendChild(charSpan);

2

bundles/ng-gx-split-text.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("ng-gx-split-text",["exports","@angular/core","rxjs","@angular/common"],e):e((t=t||self)["ng-gx-split-text"]={},t.ng.core,t.rxjs,t.ng.common)}(this,function(t,e,n,i){"use strict";var o=Object.prototype,r=o.hasOwnProperty;function s(t,e){return t===e||t!=t&&e!=e}var p={defer:!1},l=function(){function t(t,e){this.textContent=t,this.el=e,this.words=[],this.chars=[],this.lineWords=[],this.lineChars=[],this.wordsArray=[],this.nodes=[],this.nodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}}return t.prototype.initSplitNodes=function(){this.splitNodes(this.el),this.initNewNodes(),this.setLines(),this.updateOnResize()},t.prototype.splitNodes=function(t){for(var e=this,n=function(n){var o=t.childNodes[n],r=-1!==[i.nodeTypes.ELEMENT_NODE,i.nodeTypes.DOCUMENT_NODE,i.nodeTypes.DOCUMENT_FRAGMENT_NODE].indexOf(o.nodeType),s=-1!==[i.nodeTypes.TEXT_NODE,i.nodeTypes.CDATA_SECTION_NODE].indexOf(o.nodeType);if(r)i.splitNodes(o);else if(s){var p=i.splitNodesIntoWords(o),l=[];p.forEach(function(t){var n=document.createElement("span");n.classList.add("split-text-word"),n.style.display="inline-block",t.forEach(function(t){var i=document.createElement("span");i.classList.add("split-text-char"),i.style.display="inherit",i.innerHTML=t,n.appendChild(i),e.chars.push(i)}),l.push(n),e.words.push(n)}),i.wordsArray.push(l),i.nodes.push(o)}},i=this,o=0;o<t.childNodes.length;o++)n(o)},t.prototype.initNewNodes=function(){var t=this;this.nodes.forEach(function(e,n){t.wordsArray[n].forEach(function(i,o){e.parentNode.insertBefore(i,e);var r=document.createElement("span");r.classList.add("split-text-space"),r.style.display="inline",r.innerHTML=" ",e.parentNode.insertBefore(r,i.nextSibling),o===t.wordsArray[n].length-1&&e.remove()})})},t.prototype.splitNodesIntoWords=function(t){var e=t.textContent.split(" ");return""===e[0]&&e.splice(0,1),""===e[e.length-1]&&e.splice(e.length-1,1),e.map(function(t){return t.split("")})},t.prototype.getLines=function(t){var e=[],n=[],i=0;return t.forEach(function(o,r){var s=t[i].getBoundingClientRect().top,p=t.length-1;o.getBoundingClientRect().top===s?(n.push(o),r===p&&e.push(n)):(e.push(n),i=r,(n=[]).push(o))}),e},t.prototype.updateOnResize=function(){var t=this;n.fromEvent(window,"resize").subscribe(function(){t.setLines()})},t.prototype.setLines=function(){this.lineWords=this.getLines(this.words),this.lineChars=this.getLines(this.chars)},t}();var c=function(){function t(t){this.el=t,this.init=!1}return t.prototype.ngOnInit=function(){this.setCurrentOptions(),this.initSplitNodes()},t.prototype.ngAfterViewInit=function(){this.currentOptions.defer||this.initSplit()},t.prototype.initSplit=function(){this.init?console.warn("Warning! Text is already initialized"):(this.init=!0,this.saveSrcText(),this.splitNodes.initSplitNodes())},t.prototype.saveSrcText=function(){this.srcTextContent=this.el.nativeElement.innerHTML},Object.defineProperty(t.prototype,"words",{get:function(){return this.splitNodes.words},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineWords",{get:function(){return this.splitNodes.lineWords},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chars",{get:function(){return this.splitNodes.chars},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineChars",{get:function(){return this.splitNodes.lineChars},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"srcText",{get:function(){return this.srcTextContent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInit",{get:function(){return this.init},enumerable:!0,configurable:!0}),t.prototype.resetSplit=function(){this.nativeElement.innerHTML=this.srcText},t.prototype.setCurrentOptions=function(){this.currentOptions=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t=Object(t),e.forEach(function(e){if(null!=e)for(var n in e=Object(e))if(e.hasOwnProperty(n)){var i=t[n];(void 0===i||s(i,o[n])&&!r.call(t,n))&&(t[n]=e[n])}}),t}(this.options,p)},t.prototype.initSplitNodes=function(){this.splitNodes=new l(this.el.nativeElement.textContent,this.el.nativeElement)},t.decorators=[{type:e.Directive,args:[{selector:"[ngGxSplitText], ngGxSplitText"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={options:[{type:e.Input,args:["ngGxSplitText"]}]},t}();var a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[c],imports:[i.CommonModule],exports:[c]}]}],t}();t.NgGxSplitTextDirective=c,t.NgGxSplitTextModule=a,t.defaultOptions=p,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("ng-gx-split-text",["exports","@angular/core","rxjs","@angular/common"],e):e((t=t||self)["ng-gx-split-text"]={},t.ng.core,t.rxjs,t.ng.common)}(this,function(t,e,n,i){"use strict";var o=Object.prototype,r=o.hasOwnProperty;function s(t,e){return t===e||t!=t&&e!=e}var p={defer:!1},l=function(){function t(t,e){this.textContent=t,this.el=e,this.words=[],this.chars=[],this.lineWords=[],this.lineChars=[],this.wordsArray=[],this.nodes=[],this.nodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}}return t.prototype.initSplitNodes=function(){this.splitNodes(this.el),this.initNewNodes(),this.setLines(),this.updateOnResize()},t.prototype.splitNodes=function(t){for(var e=this,n=function(n){var o=t.childNodes[n],r=-1!==[i.nodeTypes.ELEMENT_NODE,i.nodeTypes.DOCUMENT_NODE,i.nodeTypes.DOCUMENT_FRAGMENT_NODE].indexOf(o.nodeType),s=-1!==[i.nodeTypes.TEXT_NODE,i.nodeTypes.CDATA_SECTION_NODE].indexOf(o.nodeType);if(r)i.splitNodes(o);else if(s){var p=i.splitNodesIntoWords(o),l=[];p.forEach(function(t){var n=document.createElement("span");n.classList.add("split-text-word"),n.style.display="inline-block",n.style.textIndent="0",t.forEach(function(t){var i=document.createElement("span");i.classList.add("split-text-char"),i.style.display="inherit",i.style.textIndent="0",i.innerHTML=t,n.appendChild(i),e.chars.push(i)}),l.push(n),e.words.push(n)}),i.wordsArray.push(l),i.nodes.push(o)}},i=this,o=0;o<t.childNodes.length;o++)n(o)},t.prototype.initNewNodes=function(){var t=this;this.nodes.forEach(function(e,n){t.wordsArray[n].forEach(function(i,o){e.parentNode.insertBefore(i,e);var r=document.createElement("span");r.classList.add("split-text-space"),r.style.display="inline",r.innerHTML=" ",e.parentNode.insertBefore(r,i.nextSibling),o===t.wordsArray[n].length-1&&e.remove()})})},t.prototype.splitNodesIntoWords=function(t){var e=t.textContent.split(" ");return""===e[0]&&e.splice(0,1),""===e[e.length-1]&&e.splice(e.length-1,1),e.map(function(t){return t.split("")})},t.prototype.getLines=function(t){var e=[],n=[],i=0;return t.forEach(function(o,r){var s=t[i].getBoundingClientRect().top,p=t.length-1;o.getBoundingClientRect().top===s?(n.push(o),r===p&&e.push(n)):(e.push(n),i=r,(n=[]).push(o))}),e},t.prototype.updateOnResize=function(){var t=this;n.fromEvent(window,"resize").subscribe(function(){t.setLines()})},t.prototype.setLines=function(){this.lineWords=this.getLines(this.words),this.lineChars=this.getLines(this.chars)},t}();var c=function(){function t(t){this.el=t,this.init=!1}return t.prototype.ngOnInit=function(){this.setCurrentOptions(),this.initSplitNodes()},t.prototype.ngAfterViewInit=function(){this.currentOptions.defer||this.initSplit()},t.prototype.initSplit=function(){this.init?console.warn("Warning! Text is already initialized"):(this.init=!0,this.saveSrcText(),this.splitNodes.initSplitNodes())},t.prototype.saveSrcText=function(){this.srcTextContent=this.el.nativeElement.innerHTML},Object.defineProperty(t.prototype,"words",{get:function(){return this.splitNodes.words},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineWords",{get:function(){return this.splitNodes.lineWords},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chars",{get:function(){return this.splitNodes.chars},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineChars",{get:function(){return this.splitNodes.lineChars},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"srcText",{get:function(){return this.srcTextContent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInit",{get:function(){return this.init},enumerable:!0,configurable:!0}),t.prototype.resetSplit=function(){this.nativeElement.innerHTML=this.srcText},t.prototype.setCurrentOptions=function(){this.currentOptions=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t=Object(t),e.forEach(function(e){if(null!=e)for(var n in e=Object(e))if(e.hasOwnProperty(n)){var i=t[n];(void 0===i||s(i,o[n])&&!r.call(t,n))&&(t[n]=e[n])}}),t}(this.options,p)},t.prototype.initSplitNodes=function(){this.splitNodes=new l(this.el.nativeElement.textContent,this.el.nativeElement)},t.decorators=[{type:e.Directive,args:[{selector:"[ngGxSplitText], ngGxSplitText"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={options:[{type:e.Input,args:["ngGxSplitText"]}]},t}();var a=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[c],imports:[i.CommonModule],exports:[c]}]}],t}();t.NgGxSplitTextDirective=c,t.NgGxSplitTextModule=a,t.defaultOptions=p,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ng-gx-split-text.umd.min.js.map

@@ -73,2 +73,3 @@ /**

wordSpan.style.display = 'inline-block';
wordSpan.style.textIndent = '0';
chars.forEach((/**

@@ -83,2 +84,3 @@ * @param {?} char

charSpan.style.display = 'inherit';
charSpan.style.textIndent = '0';
charSpan.innerHTML = char;

@@ -226,2 +228,2 @@ wordSpan.appendChild(charSpan);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtbm9kZXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy1neC1zcGxpdC10ZXh0LyIsInNvdXJjZXMiOlsibGliL3V0aWxzL3NwbGl0LW5vZGVzL3NwbGl0LW5vZGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRWpDLE1BQU0sT0FBTyxVQUFVOzs7OztJQUVyQixZQUNVLFdBQW1CLEVBQ25CLEVBQWU7UUFEZixnQkFBVyxHQUFYLFdBQVcsQ0FBUTtRQUNuQ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AgbGluZS5wdXNoKGVsKTtcbiAgICAgICAgaWYgKGluZGV4ID09PSBsYXN0RWxJbmRleCkge1xuICAgICAgICAgIGxpbmVFbGVtZW50cy5wdXNoKGxpbmUpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsaW5lRWxlbWVudHMucHVzaChsaW5lKTtcbiAgICAgICAgbGluZUluZGV4ID0gaW5kZXg7XG4gICAgICAgIGxpbmUgPSBbXTtcbiAgICAgICAgbGluZS5wdXNoKGVsKTtcbiAgICAgIH1cbiAgICB9KTtcblxuICAgIHJldHVybiBsaW5lRWxlbWVudHM7XG4gIH1cblxuICB1cGRhdGVPblJlc2l6ZSgpIHtcbiAgICBmcm9tRXZlbnQ8VUlFdmVudD4od2luZG93LCAncmVzaXplJylcbiAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICB0aGlzLnNldExpbmVzKCk7XG4gICAgICB9KTtcbiAgfVxuXG4gIHNldExpbmVzKCkge1xuICAgIHRoaXMubGluZVdvcmRzID0gdGhpcy5nZXRMaW5lcyh0aGlzLndvcmRzKTtcbiAgICB0aGlzLmxpbmVDaGFycyA9IHRoaXMuZ2V0TGluZXModGhpcy5jaGFycyk7XG4gIH1cbn1cbiJdfQ==

@@ -77,2 +77,3 @@ /**

wordSpan.style.display = 'inline-block';
wordSpan.style.textIndent = '0';
chars.forEach((/**

@@ -87,2 +88,3 @@ * @param {?} char

charSpan.style.display = 'inherit';
charSpan.style.textIndent = '0';
charSpan.innerHTML = char;

@@ -255,2 +257,2 @@ wordSpan.appendChild(charSpan);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtbm9kZXMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy1neC1zcGxpdC10ZXh0LyIsInNvdXJjZXMiOlsibGliL3V0aWxzL3NwbGl0LW5vZGVzL3NwbGl0LW5vZGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGlu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XG5cbiAgICBlbGVtZW50cy5mb3JFYWNoKChlbCwgaW5kZXgpID0+IHtcblxuICAgICAgY29uc3QgZmlyc3RFbFRvcCA9IGVsZW1lbnRzW2xpbmVJbmRleF0uZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCkudG9wO1xuICAgICAgY29uc3QgbGFzdEVsSW5kZXggPSBlbGVtZW50cy5sZW5ndGggLSAxO1xuXG4gICAgICBpZiAoZWwuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCkudG9wID09PSBmaXJzdEVsVG9wKSB7XG4gICAgICAgIGxpbmUucHVzaChlbCk7XG4gICAgICAgIGlmIChpbmRleCA9PT0gbGFzdEVsSW5kZXgpIHtcbiAgICAgICAgICBsaW5lRWxlbWVudHMucHVzaChsaW5lKTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgbGluZUVsZW1lbnRzLnB1c2gobGluZSk7XG4gICAgICAgIGxpbmVJbmRleCA9IGluZGV4O1xuICAgICAgICBsaW5lID0gW107XG4gICAgICAgIGxpbmUucHVzaChlbCk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICByZXR1cm4gbGluZUVsZW1lbnRzO1xuICB9XG5cbiAgdXBkYXRlT25SZXNpemUoKSB7XG4gICAgZnJvbUV2ZW50PFVJRXZlbnQ+KHdpbmRvdywgJ3Jlc2l6ZScpXG4gICAgICAuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgdGhpcy5zZXRMaW5lcygpO1xuICAgICAgfSk7XG4gIH1cblxuICBzZXRMaW5lcygpIHtcbiAgICB0aGlzLmxpbmVXb3JkcyA9IHRoaXMuZ2V0TGluZXModGhpcy53b3Jkcyk7XG4gICAgdGhpcy5saW5lQ2hhcnMgPSB0aGlzLmdldExpbmVzKHRoaXMuY2hhcnMpO1xuICB9XG59XG4iXX0=

@@ -130,2 +130,3 @@ import { Directive, ElementRef, Input, NgModule } from '@angular/core';

wordSpan.style.display = 'inline-block';
wordSpan.style.textIndent = '0';
chars.forEach((/**

@@ -140,2 +141,3 @@ * @param {?} char

charSpan.style.display = 'inherit';
charSpan.style.textIndent = '0';
charSpan.innerHTML = char;

@@ -142,0 +144,0 @@ wordSpan.appendChild(charSpan);

@@ -138,2 +138,3 @@ import { Directive, ElementRef, Input, NgModule } from '@angular/core';

wordSpan.style.display = 'inline-block';
wordSpan.style.textIndent = '0';
chars.forEach((/**

@@ -148,2 +149,3 @@ * @param {?} char

charSpan.style.display = 'inherit';
charSpan.style.textIndent = '0';
charSpan.innerHTML = char;

@@ -150,0 +152,0 @@ wordSpan.appendChild(charSpan);

{
"name": "ng-gx-split-text",
"description": "This is a utility for Angular, allowing you to split the text into words and chars, for subsequent animation",
"version": "0.2.0",
"version": "0.2.2",
"author": {

@@ -6,0 +6,0 @@ "name": "Yan Merkushin",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc