This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>region selected box</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
#selectContainer { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>clip image test</title> | |
<style> | |
body { | |
display: flex; | |
justify-content: center; | |
flex-direction: column; | |
align-items: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* create folder sync | |
* @param {String} rootPath root path. | |
* @param {String} folderPath folder base on root path. | |
* @returns {Boolean} created | |
*/ | |
function mkdirsSync (rootPath, folderPath) { | |
let dirPath = path.join(rootPath, folderPath) | |
if (fs.existsSync(dirPath)) { | |
return true |