New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fis-spriter-csssprites

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-spriter-csssprites - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

index.js

@@ -42,3 +42,3 @@ /**

function processCss(file, ret, settings, opt) {
var content = _process(file.getContent(), file, '', ret, settings, opt);
var content = _process(file.getContent(), file, null, ret, settings, opt);
file.setContent(content);

@@ -45,0 +45,0 @@ }

@@ -84,3 +84,8 @@ /*

after: function (image, arr_selector, direct) {
var ext = '_' + this.index + '_' + direct + '.png';
var ext = '_' + direct + '.png';
if (this.index) {
ext = '_' + this.index + ext;
}
var image_file = fis.file.wrap(this.file.realpathNoExt + ext);

@@ -87,0 +92,0 @@ image_file.setContent(image.encode('png'));

{
"name": "fis-spriter-csssprites",
"version": "0.1.8",
"version": "0.1.9",
"description": "基于fis的csssprite,支持repeat-x,repeat-x,background-position",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,3 +14,3 @@ ## fis-spriter-csssprites

0. 依赖native插件,[node-images](https://github.com/xiangshouding/node-images) 环境需要符合个插件的要求。(OS X、Windows、Linux x86 提供了二进制包)
0. 依赖native插件,[node-images](https://github.com/fex-team/node-images) 环境需要符合个插件的要求。(OS X、Windows、Linux x86 提供了二进制包)
0. 只能在FIS中使用

@@ -51,3 +51,3 @@

//开启模板内联css处理,默认关闭
htmlUseSprite: true
htmlUseSprite: true,
//默认针对html原生<style></style>标签内的内容处理。

@@ -75,3 +75,3 @@ //用户可以通过配置styleTag来扩展要识别的css片段

//使用矩阵排列方式,默认为线性`linear`
layout: 'matrix',
layout: 'matrix'
});

@@ -88,3 +88,3 @@ ```

![background](https://raw.github.com/xiangshouding/fis-spriter-csssprites/master/doc/image/background.png)
![background](https://raw.github.com/fex-team/fis-spriter-csssprites/master/doc/image/background.png)

@@ -205,2 +205,2 @@ 通过图片添加query识别图片是否需要做图片合并,具体

### 其他
* [实现原理](https://github.com/xiangshouding/fis-spriter-csssprites/wiki/CssSprites%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86)
* [实现原理](https://github.com/fex-team/fis-spriter-csssprites/wiki/CssSprites%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86)
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