Skip to content

Commit

Permalink
�chore(release): v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanchen committed Dec 27, 2017
1 parent 4ba4dbc commit a8e1840
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-screenshot",
"version": "0.4.0",
"version": "0.4.1",
"authors": [
"weihanchen"
],
Expand Down Expand Up @@ -28,4 +28,4 @@
"dependencies": {
"angular": "^1.3"
}
}
}
2 changes: 1 addition & 1 deletion build/angular-screenshot.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */
/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */
/* shared */
/* components */
.screenshot-toolbox {
Expand Down
56 changes: 28 additions & 28 deletions build/angular-screenshot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Screenshot - v0.4.0 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */
/*! Angular Screenshot - v0.4.1 - http://weihanchen.github.io/angular-screenshot - (c) 2017 weihanchen - MIT */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down Expand Up @@ -3388,11 +3388,11 @@ var screenshotToolbox = function screenshotToolbox() {
transclude: true
};
};
/**
* @ngdoc directive
* @name screenshot-toolbox
* @description
* Custom template of screenshot toolbox, connent with screenshot
/**
* @ngdoc directive
* @name screenshot-toolbox
* @description
* Custom template of screenshot toolbox, connent with screenshot
*/
exports.default = screenshotToolbox;

Expand Down Expand Up @@ -3552,9 +3552,9 @@ var screenshot = function screenshot() {
var toolbox = $compile(self.template)(self.templateScope);
$scope.$apply();
var toolboxElement = toolbox[0];
/**
* toolbox position setting
* because read elememt's width sould indicated postion method, so we set position method first then move location with dom.
/**
* toolbox position setting
* because read elememt's width sould indicated postion method, so we set position method first then move location with dom.
*/
_utils.domprocess.setToolboxStackStyle(toolboxElement, hightLevelZindex.top).then(_utils.domprocess.appendToBody).then(function (element) {
var position = calculateToolboxPosition(canvas.offsetLeft, canvas.offsetTop, rect, element.offsetWidth, element.offsetHeight);
Expand Down Expand Up @@ -3610,10 +3610,10 @@ var screenshot = function screenshot() {
});
};

/**
*
* @param {string} template - allow screenshot-toolbox directive setting with
* @param {string} templateScope - scope of $compile toolbox content
/**
*
* @param {string} template - allow screenshot-toolbox directive setting with
* @param {string} templateScope - scope of $compile toolbox content
*/
var setTemplate = function setTemplate(template, templateScope) {
self.template = template;
Expand Down Expand Up @@ -3674,21 +3674,21 @@ var screenshot = function screenshot() {
};
};

/**
* @ngdoc directive
* @name screenshot
* @description
* Capture dom setion with indicate element
*
* @param {string@} [target=element.children()] Use target element with capture section.
* @param {boolean=} [isOpen=false] Flag indicating that open the capture canvas.
* @param {object=} [toolboxOptions=
* {
* filename: 'screenshot.png',
* cancelText: 'Cancel',
* downloadText: 'Download'
* }] toolboxOptions
* @param {object=} [api={download, cancel, downloadFull}] Expose api to interactive custom template action.
/**
* @ngdoc directive
* @name screenshot
* @description
* Capture dom setion with indicate element
*
* @param {string@} [target=element.children()] Use target element with capture section.
* @param {boolean=} [isOpen=false] Flag indicating that open the capture canvas.
* @param {object=} [toolboxOptions=
* {
* filename: 'screenshot.png',
* cancelText: 'Cancel',
* downloadText: 'Download'
* }] toolboxOptions
* @param {object=} [api={download, cancel, downloadFull, toPng}] Expose api to interactive custom template action.
*/
exports.default = screenshot;

Expand Down
2 changes: 1 addition & 1 deletion build/angular-screenshot.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/angular-screenshot.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-screenshot",
"version": "0.4.0",
"version": "0.4.1",
"description": "Angular screenshot in directive for screen capture.",
"main": "dist/angular-screenshot.js",
"repository": {
Expand All @@ -25,7 +25,7 @@
"esLint:start": "./node_modules/.bin/eslint src/**/*.js",
"watch": "onchange src/*.js src/**/*.js src/**/*.scss -- npm run build",
"dev": "webpack-dev-server --port 8003 --inline --watch --devtool eval --progress --colors --hot --content-base examples",
"release": "npm run esLint:start && npm run test && webpack --define increase=minor && webpack -p",
"release": "npm run esLint:start && npm run test && webpack --define increase=patch && webpack -p",
"test": "node ./node_modules/karma/bin/karma start"
},
"ignore": [
Expand Down

0 comments on commit a8e1840

Please sign in to comment.