Popular New Releases in Base64
cpp-base64
Fix buffer overrun problem (and allow to decode unpadded data)
libflate
v1.1.2
go-fixedwidth
fixedwidth v0.9.0
ethereum-input-to-object
0.0.4
fast-abi
v0.0.4
Popular Libraries in Base64
by ashtuchkin javascript
2640 MIT
Convert character encodings in pure javascript.
by beatgammit javascript
705 MIT
Base64 encoding/decoding in pure JS
by s0md3v python
680
Detect and decode encoded strings, recursively.
by ReneNyffenegger c++
507 Zlib
base64 encoding and decoding with c++
by polygonplanet javascript
380 MIT
Convert or detect character encoding in JavaScript
by niklasvh typescript
250 MIT
Encode/decode base64 data into ArrayBuffers
by lifthrasiir rust
231 MIT
Character encoding support for Rust
by sile rust
136 MIT
A Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP)
by liutiantian233 python
97
Encoding and Decoding
Trending New libraries in Base64
by choby csharp
27
id生成器, 包含雪花算法和id混淆器
by TsinghuaAI python
22 MIT
Pretrain CPM-1
by TsinghuaAI python
21 MIT
Pretrain CPM
by banteg python
16
hashmask reverse lookup
by blocknative javascript
14
Decodes an Ethereum input data hex string into a developer friendly JavaScript object
by taehoio python
13 MIT
For whom prefers reading than watching
by 0xProject rust
12 NOASSERTION
ABI encoding, fast
by edithturn c
7
Recode printf in C
by Notsfsssf go
6 Apache-2.0
一个允许通过本地反代的方式直连pixiv的go lib
Top Authors in Base64
1
2 Libraries
4
2
2 Libraries
43
3
2 Libraries
9
4
2 Libraries
17
5
2 Libraries
60
6
2 Libraries
6
7
1 Libraries
2
8
1 Libraries
3
9
1 Libraries
4
10
1 Libraries
136
1
2 Libraries
4
2
2 Libraries
43
3
2 Libraries
9
4
2 Libraries
17
5
2 Libraries
60
6
2 Libraries
6
7
1 Libraries
2
8
1 Libraries
3
9
1 Libraries
4
10
1 Libraries
136
Trending Kits in Base64
No Trending Kits are available at this moment for Base64
Trending Discussions on Base64
Cannot load inline font in Electron-Forge/Webpack
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
Access a .pem public key from .env file
Create-React-App with TypeScript failing to compile after importing Semantic UI
java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest;
Unable to use AppId extension with WebAuthn for previously registered U2F keys
kubelet won't start after kuberntes/manifest update
Difficulties installing Cro: "Failed to find dependencies: CBOR::Simple"
Confusions about different ways of displaying images from an external url using JavaScript
how to restrict drag elements in interact.js
QUESTION
Cannot load inline font in Electron-Forge/Webpack
Asked 2022-Mar-29 at 03:04When import 'semantic-ui-css/semantic.min.css'
into a brand new Electron-Forge/Webpack5 project, I get the following:
1UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAO...
2Webpack supports "data:" and "file:" URIs by default.
3You may need an additional plugin to handle "data:" URIs.
4
After stepping through the code, it appears that the data:uri
format here does not match the regex extracting its format in NormalModule: https://github.com/webpack/webpack/blob/e5570ab5230e98e1030d696e84465b5f533fdae9/lib/schemes/DataUriPlugin.js#L16. Note the double ;;
in the data URI, that breaks the RegEx linked.
However, this CSS file loads fine in my website. When stepping through the webpack build, they both load the CSS file (as verified by breakpoints in https://github.com/webpack/webpack/blob/e83587cfef25db91dc5b86be5b729288fd1bafdd/lib/NormalModule.js#L761), but then the website just... doesn't load this data URL??? I tried replacing the webpack config for Electron with the one from the website, but no joy.
I'm all out of ideas after a day or 4 digging into this. I don't even know where to poke next. Any suggestions on where I can dig/what I can check to get this CSS file loading in Electron?
A minimal demo repo can be found here: https://github.com/FrozenKiwi/data-url-loading, only difference is pulled the offending CSS declaration out into the local CSS file
ANSWER
Answered 2021-Jul-26 at 17:05Finally fixed it...
Electron-Forge installs a recent version of CSS-Loader, whereas the website still has quite an old version. Downgrading fixed the issue.
QUESTION
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
Asked 2022-Mar-28 at 21:08I have been stock on this error on my project when I add "proxy": "http://localhost:6000"
in my package.json.
This is the error response after yarn start.
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options.allowedHosts[0] should be a non-empty string. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
But everything is fine when I remove the "proxy": "http://localhost:6000"
.
This is on my package.json:
1{
2 "name": "client",
3 "version": "0.1.0",
4 "private": true,
5 "dependencies": {
6 "@material-ui/core": "^4.12.3",
7 "@testing-library/jest-dom": "^5.16.1",
8 "@testing-library/react": "^12.1.2",
9 "@testing-library/user-event": "^13.5.0",
10 "axios": "^0.24.0",
11 "moment": "^2.29.1",
12 "react": "^17.0.2",
13 "react-dom": "^17.0.2",
14 "react-file-base64": "^1.0.3",
15 "react-redux": "^7.2.6",
16 "react-scripts": "5.0.0",
17 "redux": "^4.1.2",
18 "redux-thunk": "^2.4.1",
19 "web-vitals": "^2.1.2"
20 },
21 "scripts": {
22 "start": "react-scripts start",
23 "build": "react-scripts build",
24 "test": "react-scripts test",
25 "eject": "react-scripts eject"
26 },
27 "eslintConfig": {
28 "extends": [
29 "react-app",
30 "react-app/jest"
31 ]
32 },
33 "browserslist": {
34 "production": [
35 ">0.2%",
36 "not dead",
37 "not op_mini all"
38 ],
39 "development": [
40 "last 1 chrome version",
41 "last 1 firefox version",
42 "last 1 safari version"
43 ]
44 },
45 "proxy": "http://localhost:6000"
46}
47
ANSWER
Answered 2021-Dec-19 at 16:06Here is a workaround. Delete "proxy": "http://localhost:6000". Install package http-proxy-middleware with command npm install http-proxy-middleware --save. Create a file setupProxy.js inside your src folder. Add these lines inside:
1{
2 "name": "client",
3 "version": "0.1.0",
4 "private": true,
5 "dependencies": {
6 "@material-ui/core": "^4.12.3",
7 "@testing-library/jest-dom": "^5.16.1",
8 "@testing-library/react": "^12.1.2",
9 "@testing-library/user-event": "^13.5.0",
10 "axios": "^0.24.0",
11 "moment": "^2.29.1",
12 "react": "^17.0.2",
13 "react-dom": "^17.0.2",
14 "react-file-base64": "^1.0.3",
15 "react-redux": "^7.2.6",
16 "react-scripts": "5.0.0",
17 "redux": "^4.1.2",
18 "redux-thunk": "^2.4.1",
19 "web-vitals": "^2.1.2"
20 },
21 "scripts": {
22 "start": "react-scripts start",
23 "build": "react-scripts build",
24 "test": "react-scripts test",
25 "eject": "react-scripts eject"
26 },
27 "eslintConfig": {
28 "extends": [
29 "react-app",
30 "react-app/jest"
31 ]
32 },
33 "browserslist": {
34 "production": [
35 ">0.2%",
36 "not dead",
37 "not op_mini all"
38 ],
39 "development": [
40 "last 1 chrome version",
41 "last 1 firefox version",
42 "last 1 safari version"
43 ]
44 },
45 "proxy": "http://localhost:6000"
46}
47const { createProxyMiddleware } = require('http-proxy-middleware');
48
49module.exports = function(app) {
50 app.use(
51 '/api',
52 createProxyMiddleware({
53 target: 'http://localhost:6000',
54 changeOrigin: true,
55 })
56 );
57};
58
Now, run your app. It should work.
QUESTION
Access a .pem public key from .env file
Asked 2022-Mar-28 at 09:14I am storing a public key in a env variable as a string. This public key is from a .pem file. When I try to use it in my code, I get the following error
1error:0909006C:PEM routines:get_name:no start line
2
I have tried what other users have suggested, by converting it to base64 and then using the key, but I still get the same error.
env variable for the public key
1error:0909006C:PEM routines:get_name:no start line
2PUB_KEY='-----BEGIN PUBLIC KEY-----randomgibberish-----END PUBLIC KEY-----'
3
Code for converting it to base64
1error:0909006C:PEM routines:get_name:no start line
2PUB_KEY='-----BEGIN PUBLIC KEY-----randomgibberish-----END PUBLIC KEY-----'
3const pubKey = process.env.PUB_KEY
4const buff = Buffer.from(pubKey).toString('base64');
5console.log(buff)
6
Using it in the createPublicKey method here
1error:0909006C:PEM routines:get_name:no start line
2PUB_KEY='-----BEGIN PUBLIC KEY-----randomgibberish-----END PUBLIC KEY-----'
3const pubKey = process.env.PUB_KEY
4const buff = Buffer.from(pubKey).toString('base64');
5console.log(buff)
6crypto.createPublicKey({
7 key: buff,
8 format: 'pem',
9 });
10
Any idea what could be going wrong? TIA
ANSWER
Answered 2022-Mar-28 at 08:47Your key seems to be a PEM encoded public key in X.509/SPKI format. However, the line breaks are missing. These are to be set so that header and footer are each on a single line. In the body there is a line break after every 64 characters.
A correctly formatted PEM key can be processed directly by createPublicKey()
. The key will be accepted even if the line breaks in the body are missing, but header and footer must be in different lines, otherwise the posted error message will be displayed: error:0909006C:PEM routines:get_name:no start line.
Example:
1error:0909006C:PEM routines:get_name:no start line
2PUB_KEY='-----BEGIN PUBLIC KEY-----randomgibberish-----END PUBLIC KEY-----'
3const pubKey = process.env.PUB_KEY
4const buff = Buffer.from(pubKey).toString('base64');
5console.log(buff)
6crypto.createPublicKey({
7 key: buff,
8 format: 'pem',
9 });
10var crypto = require('crypto')
11
12var x509 = `-----BEGIN PUBLIC KEY-----
13MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAunF5aDa6HCfLMMI/MZLT
145hDk304CU+ypFMFiBjowQdUMQKYHZ+fklB7GpLxCatxYJ/hZ7rjfHH3Klq20/Y1E
15bYDRopyTSfkrTzPzwsX4Ur/l25CtdQldhHCTMgwf/Ev/buBNobfzdZE+Dhdv5lQw
16KtjI43lDKvAi5kEet2TFwfJcJrBiRJeEcLfVgWTXGRQn7gngWKykUu5rS83eAU1x
17H9FLojQfyia89/EykiOO7/3UWwd+MATZ9HLjSx2/Lf3g2jr81eifEmYDlri/OZp4
18OhZu+0Bo1LXloCTe+vmIQ2YCX7EatUOuyQMt2Vwx4uV+d/A3DP6PtMGBKpF8St4i
19GwIDAQAB
20-----END PUBLIC KEY-----`;
21
22// Import
23var importedPubKey = crypto.createPublicKey({
24 key: x509,
25 format: 'pem' // default, can also be omitted
26});
27
28// Export
29console.log(importedPubKey.export({type: 'spki', format: 'pem'}))
30
The key can also be written as one-liner with line breaks as escape sequences (\n
), e.g. for header and footer in single lines:
1error:0909006C:PEM routines:get_name:no start line
2PUB_KEY='-----BEGIN PUBLIC KEY-----randomgibberish-----END PUBLIC KEY-----'
3const pubKey = process.env.PUB_KEY
4const buff = Buffer.from(pubKey).toString('base64');
5console.log(buff)
6crypto.createPublicKey({
7 key: buff,
8 format: 'pem',
9 });
10var crypto = require('crypto')
11
12var x509 = `-----BEGIN PUBLIC KEY-----
13MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAunF5aDa6HCfLMMI/MZLT
145hDk304CU+ypFMFiBjowQdUMQKYHZ+fklB7GpLxCatxYJ/hZ7rjfHH3Klq20/Y1E
15bYDRopyTSfkrTzPzwsX4Ur/l25CtdQldhHCTMgwf/Ev/buBNobfzdZE+Dhdv5lQw
16KtjI43lDKvAi5kEet2TFwfJcJrBiRJeEcLfVgWTXGRQn7gngWKykUu5rS83eAU1x
17H9FLojQfyia89/EykiOO7/3UWwd+MATZ9HLjSx2/Lf3g2jr81eifEmYDlri/OZp4
18OhZu+0Bo1LXloCTe+vmIQ2YCX7EatUOuyQMt2Vwx4uV+d/A3DP6PtMGBKpF8St4i
19GwIDAQAB
20-----END PUBLIC KEY-----`;
21
22// Import
23var importedPubKey = crypto.createPublicKey({
24 key: x509,
25 format: 'pem' // default, can also be omitted
26});
27
28// Export
29console.log(importedPubKey.export({type: 'spki', format: 'pem'}))
30var x509 = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAunF5aDa6HCfLMMI/MZLT5hDk304CU+ypFMFiBjowQdUMQKYHZ+fklB7GpLxCatxYJ/hZ7rjfHH3Klq20/Y1EbYDRopyTSfkrTzPzwsX4Ur/l25CtdQldhHCTMgwf/Ev/buBNobfzdZE+Dhdv5lQwKtjI43lDKvAi5kEet2TFwfJcJrBiRJeEcLfVgWTXGRQn7gngWKykUu5rS83eAU1xH9FLojQfyia89/EykiOO7/3UWwd+MATZ9HLjSx2/Lf3g2jr81eifEmYDlri/OZp4OhZu+0Bo1LXloCTe+vmIQ2YCX7EatUOuyQMt2Vwx4uV+d/A3DP6PtMGBKpF8St4iGwIDAQAB\n-----END PUBLIC KEY-----"
31
All this also works if the key is stored in an environment variable (e.g. X509ENV
) and retrieved (via process.env.X509ENV
) as long as the line breaks are correctly taken into account.
QUESTION
Create-React-App with TypeScript failing to compile after importing Semantic UI
Asked 2022-Mar-15 at 08:26I've created a new React app by running npx create-react-app@latest --typescript .
and I've run the project using npm start
and it all works as expected. I ran npm install semantic-ui-react semantic-ui-css
and that installs correctly.
But when I add import 'semantic-ui-css/semantic.min.css';
to index.tsx
as instructed, I get a failed to compile error
.
Here's my index.tsx
file:
1import React from 'react';
2import ReactDOM from 'react-dom';
3import './index.css';
4import App from './App';
5import reportWebVitals from './reportWebVitals';
6import 'semantic-ui-css/semantic.min.css';
7
8ReactDOM.render(
9 <React.StrictMode>
10 <App />
11 </React.StrictMode>,
12 document.getElementById('root')
13);
14
15// If you want to start measuring performance in your app, pass a function
16// to log results (for example: reportWebVitals(console.log))
17// or send to an analytics endpoint.
18reportWebVitals();
19
Everything else is untouched.
If I remove import 'semantic-ui-css/semantic.min.css';
from line 6 of index.tsx
it compiles correctly. I'm guessing this is a Webpack issue, but I'm new to Webpack and I'm not sure how to solve the issue. I've tried setting the project up from scratch again but I get the same results.
I'm using react 17.0.2
, react scripts 5.0.0
, semantic-ui-react 2.0.4
and typescript 4.5.4
. Is there something obvious that I'm missing that would fix this?
And here is the error code I get:
1import React from 'react';
2import ReactDOM from 'react-dom';
3import './index.css';
4import App from './App';
5import reportWebVitals from './reportWebVitals';
6import 'semantic-ui-css/semantic.min.css';
7
8ReactDOM.render(
9 <React.StrictMode>
10 <App />
11 </React.StrictMode>,
12 document.getElementById('root')
13);
14
15// If you want to start measuring performance in your app, pass a function
16// to log results (for example: reportWebVitals(console.log))
17// or send to an analytics endpoint.
18reportWebVitals();
19Failed to compile.
20
21Module build failed: UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAYALAMI0IgYLABYbUNDQEACwBCQopgsQ0FK7BtKxsiWS2wDyyxAA4rLbAQLLEBDistsBEssQIOKy2wEiyxAw4rLbATLLEEDistsBQssQUOKy2wFSyxBg4rLbAWLLEHDistsBcssQgOKy2wGCyxCQ4rLbAZLrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=" is not handled by plugins (Unhandled scheme).
22Webpack supports "data:" and "file:" URIs by default.
23You may need an additional plugin to handle "data:" URIs.
24assets by path static/ 9.45 KiB
25 asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.88 KiB [emitted] 1 related asset
26 asset static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg 2.57 KiB [emitted] (auxiliary name: main)
27asset index.html 1.62 KiB [emitted]
28asset asset-manifest.json 429 bytes [emitted]
29Entrypoint main (2.57 KiB) = 1 auxiliary asset
30cached modules 2.72 MiB (javascript) 1.66 MiB (asset) 31.4 KiB (runtime) [cached] 150 modules
31runtime modules 54 bytes 1 module
32modules by layer 4.38 KiB (javascript) 1 bytes (asset)
33 ./src/index.tsx 1.82 KiB [built] [code generated]
34 ./src/App.tsx 2.51 KiB [built] [code generated]
35 data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwND4rLbBYLLIBAT4rLbBZLLIAADorLbBaLLIAATorLbBbLLIBADorLbBcLLIBATorLbBdLLAyKy6xJgEUKy2wXiywMiuwNistsF8ssDIrsDcrLbBgLLAAFrAyK7A4Ky2wYSywMysusSYBFCstsGIssDMrsDYrLbBjLLAzK7A3Ky2wZCywMyuwOCstsGUssDQrLrEmARQrLbBmLLA0K7A2Ky2wZyywNCuwNystsGgssDQrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA= 42 bytes (javascript) 1 bytes (asset) [built] [1 error]
36
37ERROR in data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoAQNS/2oAWgMLAE8AAAABAAAAAAAAAAAAAw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wgGJhsAIlRmE4IyA8IzgbISAgRiNHsAArI2E4IVmxJgEUKy2wPSywMCsusSYBFCstsD4ssDErISMgIDywBCNCIzixJgEUK7AEQy6wJistsD8ssAAVIEewACNCsgABARUUEy6wLCotsEAssAAVIEewACNCsgABARUUEy6wLCotsEEssQABFBOwLSotsEIssC8qLbBDLLAAFkUjIC4gRoojYTixJgEUKy2wRCywCCNCsEMrLbBFLLIAADwrLbBGLLIAATwrLbBHLLIBADwrLbBILLIBATwrLbBJLLIAAD0rLbBKLLIAAT0rLbBLLLIBAD0rLbBMLLIBAT0rLbBNLLIAADkrLbBOLLIAATkrLbBPLLIBADkrLbBQLLIBATkrLbBRLLIAADsrLbBSLLIAATsrLbBTLLIBADsrLbBULLIBATsrLbBVLLIAAD4rLbBWLLIAAT4rLbBXLLIBAD4rLbBYLLIBAT4rLbBZLLIAADorLbBaLLIAATorLbBbLLIBADorLbBcLLIBATorLbBdLLAyKy6xJgEUKy2wXiywMiuwNistsF8ssDIrsDcrLbBgLLAAFrAyK7A4Ky2wYSywMysusSYBFCstsGIssDMrsDYrLbBjLLAzK7A3Ky2wZCywMyuwOCstsGUssDQrLrEmARQrLbBmLLA0K7A2Ky2wZyywNCuwNystsGgssDQrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=
38Module build failed: UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZ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NistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=" is not handled by plugins (Unhandled scheme).
39Webpack supports "data:" and "file:" URIs by default.
40You may need an additional plugin to handle "data:" URIs.
41 at /Users/eamon/projects/frontend/node_modules/webpack/lib/NormalModule.js:825:25
42 at Hook.eval [as callAsync] (eval at create (/Users/eamon/projects/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
43 at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/eamon/projects/frontend/node_modules/tapable/lib/Hook.js:18:14)
44 at Object.processResource (/Users/eamon/projects/frontend/node_modules/webpack/lib/NormalModule.js:822:8)
45 at processResource (/Users/eamon/projects/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
46 at iteratePitchingLoaders (/Users/eamon/projects/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
47 at runLoaders (/Users/eamon/projects/frontend/node_modules/loader-runner/lib/LoaderRunner.js:397:2)
48 at NormalModule._doBuild (/Users/eamon/projects/frontend/node_modules/webpack/lib/NormalModule.js:812:3)
49 at NormalModule.build (/Users/eamon/projects/frontend/node_modules/webpack/lib/NormalModule.js:956:15)
50 at /Users/eamon/projects/frontend/node_modules/webpack/lib/Compilation.js:1367:12
51 @ ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/semantic-ui-css/semantic.min.css 22:37-5903
52 @ ./node_modules/semantic-ui-css/semantic.min.css 8:6-230 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-200 83:0-200 84:22-29 84:33-47 84:50-64 61:4-74:5
53 @ ./src/index.tsx 9:0-42
54
55ERROR in [entry] [initial]
56Cannot read properties of undefined (reading 'get')
57during rendering of asset asset/inline|data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoAQNS/2oAWgMLAE8AAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoAf//AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAADpAKYABUAHEAZDwEAAQFCAAIBAmoAAQAB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ULLIBATsrLbBVLLIAAD4rLbBWLLIAAT4rLbBXLLIBAD4rLbBYLLIBAT4rLbBZLLIAADorLbBaLLIAATorLbBbLLIBADorLbBcLLIBATorLbBdLLAyKy6xJgEUKy2wXiywMiuwNistsF8ssDIrsDcrLbBgLLAAFrAyK7A4Ky2wYSywMysusSYBFCstsGIssDMrsDYrLbBjLLAzK7A3Ky2wZCywMyuwOCstsGUssDQrLrEmARQrLbBmLLA0K7A2Ky2wZyywNCuwNystsGgssDQrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=
58TypeError: Cannot read properties of undefined (reading 'get')
59during rendering of asset asset/inline|data:application/x-font-ttf;charset=utf-8;;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoAQNS/2oAWgMLAE8AAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoAf//AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAA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JhsAIlRmE4IyA8IzgbISAgRiNHsAArI2E4IVmxJgEUKy2wPSywMCsusSYBFCstsD4ssDErISMgIDywBCNCIzixJgEUK7AEQy6wJistsD8ssAAVIEewACNCsgABARUUEy6wLCotsEAssAAVIEewACNCsgABARUUEy6wLCotsEEssQABFBOwLSotsEIssC8qLbBDLLAAFkUjIC4gRoojYTixJgEUKy2wRCywCCNCsEMrLbBFLLIAADwrLbBGLLIAATwrLbBHLLIBADwrLbBILLIBATwrLbBJLLIAAD0rLbBKLLIAAT0rLbBLLLIBAD0rLbBMLLIBAT0rLbBNLLIAADkrLbBOLLIAATkrLbBPLLIBADkrLbBQLLIBATkrLbBRLLIAADsrLbBSLLIAATsrLbBTLLIBADsrLbBULLIBATsrLbBVLLIAAD4rLbBWLLIAAT4rLbBXLLIBAD4rLbBYLLIBAT4rLbBZLLIAADorLbBaLLIAATorLbBbLLIBADorLbBcLLIBATorLbBdLLAyKy6xJgEUKy2wXiywMiuwNistsF8ssDIrsDcrLbBgLLAAFrAyK7A4Ky2wYSywMysusSYBFCstsGIssDMrsDYrLbBjLLAzK7A3Ky2wZCywMyuwOCstsGUssDQrLrEmARQrLbBmLLA0K7A2Ky2wZyywNCuwNystsGgssDQrsDgrLbBpLLA1Ky6xJgEUKy2waiywNSuwNistsGsssDUrsDcrLbBsLLA1K7A4Ky2wbSwrsAhlsAMkUHiwARUwLQAAAEu4AMhSWLEBAY5ZuQgACABjILABI0SwAyNwsgQoCUVSRLIKAgcqsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAA=
60 at /Users/eamon/projects/frontend/node_modules/webpack/lib/asset/AssetModulesPlugin.js:183:30
61 at Hook.eval [as call] (eval at create (/Users/eamon/projects/frontend/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:12:16)
62 at Hook.CALL_DELEGATE [as _call] (/Users/eamon/projects/frontend/node_modules/tapable/lib/Hook.js:14:14)
63 at Compilation.getRenderManifest (/Users/eamon/projects/frontend/node_modules/webpack/lib/Compilation.js:4439:36)
64 at /Users/eamon/projects/frontend/node_modules/webpack/lib/Compilation.js:4459:22
65 at symbolIterator (/Users/eamon/projects/frontend/node_modules/neo-async/async.js:3482:9)
66 at timesSync (/Users/eamon/projects/frontend/node_modules/neo-async/async.js:2297:7)
67 at Object.eachLimit (/Users/eamon/projects/frontend/node_modules/neo-async/async.js:3463:5)
68 at Compilation.createChunkAssets (/Users/eamon/projects/frontend/node_modules/webpack/lib/Compilation.js:4452:12)
69 at /Users/eamon/projects/frontend/node_modules/webpack/lib/Compilation.js:3095:14
70
71webpack 5.65.0 compiled with 2 errors in 1597 ms
72Files successfully emitted, waiting for typecheck results...
73Issues checking in progress...
74No issues found.
75
ANSWER
Answered 2021-Dec-15 at 21:37Judging from this issue:
CSS import breaks webpack 5 compilation
I believe this is an issue with Semantic-UI-React and Webpack 5 (which is used by Create-React-App).
The final answer in that issue is a suggestion to switch to Fomantic-UI 😅
This should be reported into the upstream repo: https://github.com/Semantic-Org/Semantic-UI. The problem is that it's dead 🙄 Reasonable solution is to switch to https://github.com/fomantic/Fomantic-UI.
https://github.com/Semantic-Org/Semantic-UI-React/issues/4287#issuecomment-935897619
QUESTION
java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest;
Asked 2022-Feb-25 at 23:22It was working fine before I have done nothing, no packages update, no gradle update no nothing just created new build and this error occurs. but for some team members the error occur after gradle sync.
The issue is that build is generating successfully without any error but when opens the app it suddenly gets crash (in both debug and release mode)
Error
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9
gradle-wrapper.properties
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9distributionBase=GRADLE_USER_HOME
10distributionPath=wrapper/dists
11distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
12zipStoreBase=GRADLE_USER_HOME
13zipStorePath=wrapper/dists
14
build.gradle
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9distributionBase=GRADLE_USER_HOME
10distributionPath=wrapper/dists
11distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
12zipStoreBase=GRADLE_USER_HOME
13zipStorePath=wrapper/dists
14// Top-level build file where you can add configuration options common to all sub-projects/modules.
15
16buildscript {
17 ext {
18 buildToolsVersion = "30.0.2"
19 minSdkVersion = 21
20 compileSdkVersion = 30
21 targetSdkVersion = 30
22 ndkVersion = "21.4.7075529"
23 }
24 repositories {
25 google()
26 mavenCentral()
27 jcenter()
28 // maven {
29 // url 'https://maven.fabric.io/public'
30 // }
31 maven { url "https://www.jitpack.io" }
32 }
33 dependencies {
34 classpath("com.android.tools.build:gradle:4.2.2")
35 classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin
36 // Add the Fabric Crashlytics plugin.
37 // classpath 'io.fabric.tools:gradle:1.31.2'
38 // firebase performance sdk
39 classpath 'com.google.firebase:perf-plugin:1.4.0'
40 classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
41
42
43 // NOTE: Do not place your application dependencies here; they belong
44 // in the individual module build.gradle files
45 }
46}
47
48allprojects {
49 repositories {
50 mavenCentral()
51 mavenLocal()
52 maven {
53 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
54 url("$rootDir/../node_modules/react-native/android")
55 }
56 maven {
57 // Android JSC is installed from npm
58 url("$rootDir/../node_modules/jsc-android/dist")
59 }
60
61 google()
62 jcenter()
63 maven { url 'https://www.jitpack.io' }
64 }
65}
66
67
68subprojects {
69 afterEvaluate {project ->
70 if (project.hasProperty("android")) {
71 android {
72 buildToolsVersion "28.0.3"
73 compileSdkVersion 28
74 }
75 }
76 }
77}
78
79subprojects {
80 afterEvaluate {project ->
81 if (project.hasProperty("android")) {
82 android {
83 compileSdkVersion 29
84 buildToolsVersion '29.0.3'
85 }
86 }
87 }
88}
89
packages
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9distributionBase=GRADLE_USER_HOME
10distributionPath=wrapper/dists
11distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
12zipStoreBase=GRADLE_USER_HOME
13zipStorePath=wrapper/dists
14// Top-level build file where you can add configuration options common to all sub-projects/modules.
15
16buildscript {
17 ext {
18 buildToolsVersion = "30.0.2"
19 minSdkVersion = 21
20 compileSdkVersion = 30
21 targetSdkVersion = 30
22 ndkVersion = "21.4.7075529"
23 }
24 repositories {
25 google()
26 mavenCentral()
27 jcenter()
28 // maven {
29 // url 'https://maven.fabric.io/public'
30 // }
31 maven { url "https://www.jitpack.io" }
32 }
33 dependencies {
34 classpath("com.android.tools.build:gradle:4.2.2")
35 classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin
36 // Add the Fabric Crashlytics plugin.
37 // classpath 'io.fabric.tools:gradle:1.31.2'
38 // firebase performance sdk
39 classpath 'com.google.firebase:perf-plugin:1.4.0'
40 classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
41
42
43 // NOTE: Do not place your application dependencies here; they belong
44 // in the individual module build.gradle files
45 }
46}
47
48allprojects {
49 repositories {
50 mavenCentral()
51 mavenLocal()
52 maven {
53 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
54 url("$rootDir/../node_modules/react-native/android")
55 }
56 maven {
57 // Android JSC is installed from npm
58 url("$rootDir/../node_modules/jsc-android/dist")
59 }
60
61 google()
62 jcenter()
63 maven { url 'https://www.jitpack.io' }
64 }
65}
66
67
68subprojects {
69 afterEvaluate {project ->
70 if (project.hasProperty("android")) {
71 android {
72 buildToolsVersion "28.0.3"
73 compileSdkVersion 28
74 }
75 }
76 }
77}
78
79subprojects {
80 afterEvaluate {project ->
81 if (project.hasProperty("android")) {
82 android {
83 compileSdkVersion 29
84 buildToolsVersion '29.0.3'
85 }
86 }
87 }
88}
89"dependencies": {
90 "@eva-design/eva": "^2.1.0",
91 "@react-native-async-storage/async-storage": "^1.15.14",
92 "@react-native-community/blur": "^3.6.0",
93 "@react-native-community/checkbox": "^0.5.0",
94 "@react-native-community/netinfo": "^6.0.1",
95 "@react-native-community/toolbar-android": "^0.1.0-rc.2",
96 "@react-native-firebase/analytics": "^10.3.1",
97 "@react-native-firebase/app": "^10.3.0",
98 "@react-native-firebase/auth": "^10.3.1",
99 "@react-native-firebase/crashlytics": "^10.3.1",
100 "@react-native-firebase/dynamic-links": "^10.3.1",
101 "@react-native-firebase/firestore": "^10.3.1",
102 "@react-native-firebase/iid": "^10.3.1",
103 "@react-native-firebase/in-app-messaging": "^10.3.1",
104 "@react-native-firebase/messaging": "^10.3.1",
105 "@react-native-firebase/perf": "^10.3.1",
106 "@react-native-firebase/remote-config": "^10.3.1",
107 "@react-native-firebase/storage": "^10.3.1",
108 "@react-native-picker/picker": "^2.1.0",
109 "@react-navigation/bottom-tabs": "^6.0.9",
110 "@react-navigation/native": "^6.0.6",
111 "@react-navigation/stack": "^6.0.11",
112 "@types/react-native": "^0.65.5",
113 "@ui-kitten/components": "^5.1.0",
114 "axios": "^0.19.0",
115 "i18n-js": "^3.5.1",
116 "moment": "^2.24.0",
117 "native-base": "2.13.8",
118 "react": "17.0.2",
119 "react-content-loader": "^4.3.4",
120 "react-native": "0.66.0",
121 "react-native-actions-sheet": "^0.5.6",
122 "react-native-adjust": "^4.28.0",
123 "react-native-amplitude-analytics": "^0.2.7",
124 "react-native-animatable": "^1.3.3",
125 "react-native-code-push": "^7.0.4",
126 "react-native-config": "^1.3.3",
127 "react-native-contacts": "^5.0.7",
128 "react-native-dots-pagination": "^0.2.0",
129 "react-native-fbsdk-next": "^6.2.0",
130 "react-native-fingerprint-scanner": "^6.0.0",
131 "react-native-floating-action": "^1.22.0",
132 "react-native-geocoding": "^0.4.0",
133 "react-native-geolocation-service": "^5.2.0",
134 "react-native-gesture-handler": "^1.5.2",
135 "react-native-get-random-values": "^1.4.0",
136 "react-native-html-to-pdf-lite": "^0.11.0",
137 "react-native-image-base64": "^0.1.4",
138 "react-native-image-pan-zoom": "^2.1.11",
139 "react-native-image-picker": "^4.1.2",
140 "react-native-image-resizer": "^1.2.0",
141 "react-native-in-app-review": "^2.1.7",
142 "react-native-linear-gradient": "^2.5.6",
143 "react-native-loading-spinner-overlay": "^1.1.0",
144 "react-native-material-menu": "^1.0.0",
145 "react-native-material-textfield": "^0.16.1",
146 "react-native-modal": "^13.0.0",
147 "react-native-phone-call": "^1.0.9",
148 "react-native-ratings": "^7.3.0",
149 "react-native-reanimated": "^1.13.0",
150 "react-native-safe-area-context": "^3.3.2",
151 "react-native-screens": "^3.9.0",
152 "react-native-share": "^7.2.1",
153 "react-native-smooth-pincode-input": "^1.0.9",
154 "react-native-sms-retriever": "https://github.com/sarmad1995/react-native-sms-retriever.git",
155 "react-native-snap-carousel": "^3.9.1",
156 "react-native-splash-screen": "^3.2.0",
157 "react-native-svg": "^12.1.1",
158 "react-native-version-check": "^3.4.2",
159 "react-native-version-number": "^0.3.6",
160 "react-native-view-shot": "^3.1.2",
161 "react-native-walkthrough-tooltip": "^1.3.0",
162 "react-redux": "^7.1.3",
163 "redux": "^4.0.4",
164 "redux-logger": "^3.0.6",
165 "redux-persist": "^6.0.0",
166 "redux-thunk": "^2.3.0",
167 "rn-fetch-blob": "^0.12.0",
168 "urbanairship-react-native": "^12.0.0",
169 "uuid": "^8.3.0"
170},
171
ANSWER
Answered 2022-Feb-25 at 23:22We have fixed the issue by replacing
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9distributionBase=GRADLE_USER_HOME
10distributionPath=wrapper/dists
11distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
12zipStoreBase=GRADLE_USER_HOME
13zipStorePath=wrapper/dists
14// Top-level build file where you can add configuration options common to all sub-projects/modules.
15
16buildscript {
17 ext {
18 buildToolsVersion = "30.0.2"
19 minSdkVersion = 21
20 compileSdkVersion = 30
21 targetSdkVersion = 30
22 ndkVersion = "21.4.7075529"
23 }
24 repositories {
25 google()
26 mavenCentral()
27 jcenter()
28 // maven {
29 // url 'https://maven.fabric.io/public'
30 // }
31 maven { url "https://www.jitpack.io" }
32 }
33 dependencies {
34 classpath("com.android.tools.build:gradle:4.2.2")
35 classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin
36 // Add the Fabric Crashlytics plugin.
37 // classpath 'io.fabric.tools:gradle:1.31.2'
38 // firebase performance sdk
39 classpath 'com.google.firebase:perf-plugin:1.4.0'
40 classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
41
42
43 // NOTE: Do not place your application dependencies here; they belong
44 // in the individual module build.gradle files
45 }
46}
47
48allprojects {
49 repositories {
50 mavenCentral()
51 mavenLocal()
52 maven {
53 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
54 url("$rootDir/../node_modules/react-native/android")
55 }
56 maven {
57 // Android JSC is installed from npm
58 url("$rootDir/../node_modules/jsc-android/dist")
59 }
60
61 google()
62 jcenter()
63 maven { url 'https://www.jitpack.io' }
64 }
65}
66
67
68subprojects {
69 afterEvaluate {project ->
70 if (project.hasProperty("android")) {
71 android {
72 buildToolsVersion "28.0.3"
73 compileSdkVersion 28
74 }
75 }
76 }
77}
78
79subprojects {
80 afterEvaluate {project ->
81 if (project.hasProperty("android")) {
82 android {
83 compileSdkVersion 29
84 buildToolsVersion '29.0.3'
85 }
86 }
87 }
88}
89"dependencies": {
90 "@eva-design/eva": "^2.1.0",
91 "@react-native-async-storage/async-storage": "^1.15.14",
92 "@react-native-community/blur": "^3.6.0",
93 "@react-native-community/checkbox": "^0.5.0",
94 "@react-native-community/netinfo": "^6.0.1",
95 "@react-native-community/toolbar-android": "^0.1.0-rc.2",
96 "@react-native-firebase/analytics": "^10.3.1",
97 "@react-native-firebase/app": "^10.3.0",
98 "@react-native-firebase/auth": "^10.3.1",
99 "@react-native-firebase/crashlytics": "^10.3.1",
100 "@react-native-firebase/dynamic-links": "^10.3.1",
101 "@react-native-firebase/firestore": "^10.3.1",
102 "@react-native-firebase/iid": "^10.3.1",
103 "@react-native-firebase/in-app-messaging": "^10.3.1",
104 "@react-native-firebase/messaging": "^10.3.1",
105 "@react-native-firebase/perf": "^10.3.1",
106 "@react-native-firebase/remote-config": "^10.3.1",
107 "@react-native-firebase/storage": "^10.3.1",
108 "@react-native-picker/picker": "^2.1.0",
109 "@react-navigation/bottom-tabs": "^6.0.9",
110 "@react-navigation/native": "^6.0.6",
111 "@react-navigation/stack": "^6.0.11",
112 "@types/react-native": "^0.65.5",
113 "@ui-kitten/components": "^5.1.0",
114 "axios": "^0.19.0",
115 "i18n-js": "^3.5.1",
116 "moment": "^2.24.0",
117 "native-base": "2.13.8",
118 "react": "17.0.2",
119 "react-content-loader": "^4.3.4",
120 "react-native": "0.66.0",
121 "react-native-actions-sheet": "^0.5.6",
122 "react-native-adjust": "^4.28.0",
123 "react-native-amplitude-analytics": "^0.2.7",
124 "react-native-animatable": "^1.3.3",
125 "react-native-code-push": "^7.0.4",
126 "react-native-config": "^1.3.3",
127 "react-native-contacts": "^5.0.7",
128 "react-native-dots-pagination": "^0.2.0",
129 "react-native-fbsdk-next": "^6.2.0",
130 "react-native-fingerprint-scanner": "^6.0.0",
131 "react-native-floating-action": "^1.22.0",
132 "react-native-geocoding": "^0.4.0",
133 "react-native-geolocation-service": "^5.2.0",
134 "react-native-gesture-handler": "^1.5.2",
135 "react-native-get-random-values": "^1.4.0",
136 "react-native-html-to-pdf-lite": "^0.11.0",
137 "react-native-image-base64": "^0.1.4",
138 "react-native-image-pan-zoom": "^2.1.11",
139 "react-native-image-picker": "^4.1.2",
140 "react-native-image-resizer": "^1.2.0",
141 "react-native-in-app-review": "^2.1.7",
142 "react-native-linear-gradient": "^2.5.6",
143 "react-native-loading-spinner-overlay": "^1.1.0",
144 "react-native-material-menu": "^1.0.0",
145 "react-native-material-textfield": "^0.16.1",
146 "react-native-modal": "^13.0.0",
147 "react-native-phone-call": "^1.0.9",
148 "react-native-ratings": "^7.3.0",
149 "react-native-reanimated": "^1.13.0",
150 "react-native-safe-area-context": "^3.3.2",
151 "react-native-screens": "^3.9.0",
152 "react-native-share": "^7.2.1",
153 "react-native-smooth-pincode-input": "^1.0.9",
154 "react-native-sms-retriever": "https://github.com/sarmad1995/react-native-sms-retriever.git",
155 "react-native-snap-carousel": "^3.9.1",
156 "react-native-splash-screen": "^3.2.0",
157 "react-native-svg": "^12.1.1",
158 "react-native-version-check": "^3.4.2",
159 "react-native-version-number": "^0.3.6",
160 "react-native-view-shot": "^3.1.2",
161 "react-native-walkthrough-tooltip": "^1.3.0",
162 "react-redux": "^7.1.3",
163 "redux": "^4.0.4",
164 "redux-logger": "^3.0.6",
165 "redux-persist": "^6.0.0",
166 "redux-thunk": "^2.3.0",
167 "rn-fetch-blob": "^0.12.0",
168 "urbanairship-react-native": "^12.0.0",
169 "uuid": "^8.3.0"
170},
171implementation 'com.facebook.android:facebook-marketing:[4,5)'
172
by
1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
2 java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest; or its super classes (declaration of 'com.facebook.GraphRequest' appears in /data/app/~~aLf3pfLySq5u7zpIAr2Hlg==/com.package-name-99h4GcP3GNx2sMs76AXGvA==/base.apk)
3 at com.facebook.marketing.internal.RemoteConfigManager.getRemoteConfigQueryResponse(RemoteConfigManager.java:87)
4 at com.facebook.marketing.internal.RemoteConfigManager.access$000(RemoteConfigManager.java:43)
5 at com.facebook.marketing.internal.RemoteConfigManager$1.run(RemoteConfigManager.java:64)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
8 at java.lang.Thread.run(Thread.java:923)
9distributionBase=GRADLE_USER_HOME
10distributionPath=wrapper/dists
11distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
12zipStoreBase=GRADLE_USER_HOME
13zipStorePath=wrapper/dists
14// Top-level build file where you can add configuration options common to all sub-projects/modules.
15
16buildscript {
17 ext {
18 buildToolsVersion = "30.0.2"
19 minSdkVersion = 21
20 compileSdkVersion = 30
21 targetSdkVersion = 30
22 ndkVersion = "21.4.7075529"
23 }
24 repositories {
25 google()
26 mavenCentral()
27 jcenter()
28 // maven {
29 // url 'https://maven.fabric.io/public'
30 // }
31 maven { url "https://www.jitpack.io" }
32 }
33 dependencies {
34 classpath("com.android.tools.build:gradle:4.2.2")
35 classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin
36 // Add the Fabric Crashlytics plugin.
37 // classpath 'io.fabric.tools:gradle:1.31.2'
38 // firebase performance sdk
39 classpath 'com.google.firebase:perf-plugin:1.4.0'
40 classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
41
42
43 // NOTE: Do not place your application dependencies here; they belong
44 // in the individual module build.gradle files
45 }
46}
47
48allprojects {
49 repositories {
50 mavenCentral()
51 mavenLocal()
52 maven {
53 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
54 url("$rootDir/../node_modules/react-native/android")
55 }
56 maven {
57 // Android JSC is installed from npm
58 url("$rootDir/../node_modules/jsc-android/dist")
59 }
60
61 google()
62 jcenter()
63 maven { url 'https://www.jitpack.io' }
64 }
65}
66
67
68subprojects {
69 afterEvaluate {project ->
70 if (project.hasProperty("android")) {
71 android {
72 buildToolsVersion "28.0.3"
73 compileSdkVersion 28
74 }
75 }
76 }
77}
78
79subprojects {
80 afterEvaluate {project ->
81 if (project.hasProperty("android")) {
82 android {
83 compileSdkVersion 29
84 buildToolsVersion '29.0.3'
85 }
86 }
87 }
88}
89"dependencies": {
90 "@eva-design/eva": "^2.1.0",
91 "@react-native-async-storage/async-storage": "^1.15.14",
92 "@react-native-community/blur": "^3.6.0",
93 "@react-native-community/checkbox": "^0.5.0",
94 "@react-native-community/netinfo": "^6.0.1",
95 "@react-native-community/toolbar-android": "^0.1.0-rc.2",
96 "@react-native-firebase/analytics": "^10.3.1",
97 "@react-native-firebase/app": "^10.3.0",
98 "@react-native-firebase/auth": "^10.3.1",
99 "@react-native-firebase/crashlytics": "^10.3.1",
100 "@react-native-firebase/dynamic-links": "^10.3.1",
101 "@react-native-firebase/firestore": "^10.3.1",
102 "@react-native-firebase/iid": "^10.3.1",
103 "@react-native-firebase/in-app-messaging": "^10.3.1",
104 "@react-native-firebase/messaging": "^10.3.1",
105 "@react-native-firebase/perf": "^10.3.1",
106 "@react-native-firebase/remote-config": "^10.3.1",
107 "@react-native-firebase/storage": "^10.3.1",
108 "@react-native-picker/picker": "^2.1.0",
109 "@react-navigation/bottom-tabs": "^6.0.9",
110 "@react-navigation/native": "^6.0.6",
111 "@react-navigation/stack": "^6.0.11",
112 "@types/react-native": "^0.65.5",
113 "@ui-kitten/components": "^5.1.0",
114 "axios": "^0.19.0",
115 "i18n-js": "^3.5.1",
116 "moment": "^2.24.0",
117 "native-base": "2.13.8",
118 "react": "17.0.2",
119 "react-content-loader": "^4.3.4",
120 "react-native": "0.66.0",
121 "react-native-actions-sheet": "^0.5.6",
122 "react-native-adjust": "^4.28.0",
123 "react-native-amplitude-analytics": "^0.2.7",
124 "react-native-animatable": "^1.3.3",
125 "react-native-code-push": "^7.0.4",
126 "react-native-config": "^1.3.3",
127 "react-native-contacts": "^5.0.7",
128 "react-native-dots-pagination": "^0.2.0",
129 "react-native-fbsdk-next": "^6.2.0",
130 "react-native-fingerprint-scanner": "^6.0.0",
131 "react-native-floating-action": "^1.22.0",
132 "react-native-geocoding": "^0.4.0",
133 "react-native-geolocation-service": "^5.2.0",
134 "react-native-gesture-handler": "^1.5.2",
135 "react-native-get-random-values": "^1.4.0",
136 "react-native-html-to-pdf-lite": "^0.11.0",
137 "react-native-image-base64": "^0.1.4",
138 "react-native-image-pan-zoom": "^2.1.11",
139 "react-native-image-picker": "^4.1.2",
140 "react-native-image-resizer": "^1.2.0",
141 "react-native-in-app-review": "^2.1.7",
142 "react-native-linear-gradient": "^2.5.6",
143 "react-native-loading-spinner-overlay": "^1.1.0",
144 "react-native-material-menu": "^1.0.0",
145 "react-native-material-textfield": "^0.16.1",
146 "react-native-modal": "^13.0.0",
147 "react-native-phone-call": "^1.0.9",
148 "react-native-ratings": "^7.3.0",
149 "react-native-reanimated": "^1.13.0",
150 "react-native-safe-area-context": "^3.3.2",
151 "react-native-screens": "^3.9.0",
152 "react-native-share": "^7.2.1",
153 "react-native-smooth-pincode-input": "^1.0.9",
154 "react-native-sms-retriever": "https://github.com/sarmad1995/react-native-sms-retriever.git",
155 "react-native-snap-carousel": "^3.9.1",
156 "react-native-splash-screen": "^3.2.0",
157 "react-native-svg": "^12.1.1",
158 "react-native-version-check": "^3.4.2",
159 "react-native-version-number": "^0.3.6",
160 "react-native-view-shot": "^3.1.2",
161 "react-native-walkthrough-tooltip": "^1.3.0",
162 "react-redux": "^7.1.3",
163 "redux": "^4.0.4",
164 "redux-logger": "^3.0.6",
165 "redux-persist": "^6.0.0",
166 "redux-thunk": "^2.3.0",
167 "rn-fetch-blob": "^0.12.0",
168 "urbanairship-react-native": "^12.0.0",
169 "uuid": "^8.3.0"
170},
171implementation 'com.facebook.android:facebook-marketing:[4,5)'
172implementation 'com.facebook.android:facebook-marketing:latest.release'
173
in android/app/build.gradle
file.
Posted this so someone out there facing the same problem will find the solution easily. It took me and my team around one and a half day to figure it out as there is no clear solution out there.
Solution Ref: here
QUESTION
Unable to use AppId extension with WebAuthn for previously registered U2F keys
Asked 2021-Nov-19 at 14:22With the eminent demise of the u2f api, I'm trying to move to WebAuthn APIs using the AppId extension to support security keys previously registered with U2F. As best I can tell from reading the docs I think I am doing it correctly, however, when attempting to authenticate I am prompted by my browser to tap my key, and my key is blinking, but upon tapping it I get the error "You're using a security key that's not registered with this website". In comparing the existing u2f authentication request I'm using the same appid and key handle.
Example U2F sign request:
1{
2 "version": "U2F_V2",
3 "challenge": "zSeDYPUjDVbLQ9HDle3g2QYrHEdG5vGBwAhzqdm_PAY",
4 "appId": "https:\/\/subdomain.domain.net\/app-id.json",
5 "keyHandle": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
6}
7
And here is my server response that is handed to the webauthn js library:
1{
2 "version": "U2F_V2",
3 "challenge": "zSeDYPUjDVbLQ9HDle3g2QYrHEdG5vGBwAhzqdm_PAY",
4 "appId": "https:\/\/subdomain.domain.net\/app-id.json",
5 "keyHandle": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
6}
7{
8 "publicKey": {
9 "challenge": "iygioh7vECe9OCQ5K0IBa0XeTD5hxX+aOBGimrJAntg=",
10 "timeout": 60000,
11 "rpId": "domain.net",
12 "allowCredentials": [
13 {
14 "type": "public-key",
15 "id": "SC10QkRqUzFGZ3IxOWNwcktZVW5aOWNEU0UyQWlYX0xkMWtkUFIycnVoSVViWXI3alAzZGZseGtqWm1mdnF4a2c1cTg0ZVhCcjNpdW0zRVRKNjFGd3c="
16 }
17 ],
18 "userVerification": "discouraged",
19 "extensions": {
20 "appid": "https://subdomain.domain.net/app-id.json"
21 }
22 }
23}
24
The base64 url decoded version of that credential id is
1{
2 "version": "U2F_V2",
3 "challenge": "zSeDYPUjDVbLQ9HDle3g2QYrHEdG5vGBwAhzqdm_PAY",
4 "appId": "https:\/\/subdomain.domain.net\/app-id.json",
5 "keyHandle": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
6}
7{
8 "publicKey": {
9 "challenge": "iygioh7vECe9OCQ5K0IBa0XeTD5hxX+aOBGimrJAntg=",
10 "timeout": 60000,
11 "rpId": "domain.net",
12 "allowCredentials": [
13 {
14 "type": "public-key",
15 "id": "SC10QkRqUzFGZ3IxOWNwcktZVW5aOWNEU0UyQWlYX0xkMWtkUFIycnVoSVViWXI3alAzZGZseGtqWm1mdnF4a2c1cTg0ZVhCcjNpdW0zRVRKNjFGd3c="
16 }
17 ],
18 "userVerification": "discouraged",
19 "extensions": {
20 "appid": "https://subdomain.domain.net/app-id.json"
21 }
22 }
23}
24H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww
25
I noticed in our U2F version that the appid url is escaped for some reason, so I've tried the same thing in WebAuthn version but that did not make a difference.
I've also tried the challenge and credential id without the trailing padding (=
), but that also did not help.
The JS client we're using to interact with the webauthn API appears to be decoding the challenge and credential id into binary array buffers. Here is a console log of the object sent as the publicKey to the navigator.credential.get API:
1{
2 "version": "U2F_V2",
3 "challenge": "zSeDYPUjDVbLQ9HDle3g2QYrHEdG5vGBwAhzqdm_PAY",
4 "appId": "https:\/\/subdomain.domain.net\/app-id.json",
5 "keyHandle": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
6}
7{
8 "publicKey": {
9 "challenge": "iygioh7vECe9OCQ5K0IBa0XeTD5hxX+aOBGimrJAntg=",
10 "timeout": 60000,
11 "rpId": "domain.net",
12 "allowCredentials": [
13 {
14 "type": "public-key",
15 "id": "SC10QkRqUzFGZ3IxOWNwcktZVW5aOWNEU0UyQWlYX0xkMWtkUFIycnVoSVViWXI3alAzZGZseGtqWm1mdnF4a2c1cTg0ZVhCcjNpdW0zRVRKNjFGd3c="
16 }
17 ],
18 "userVerification": "discouraged",
19 "extensions": {
20 "appid": "https://subdomain.domain.net/app-id.json"
21 }
22 }
23}
24H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww
25{
26 "challenge": { "0": 83, "1": 195, "2": 81, "3": 9, "4": 32, "5": 53, "6": 59, "7": 244, "8": 34, "9": 113, "10": 189, "11": 177, "12": 61, "13": 184, "14": 170, "15": 86, "16": 43, "17": 206, "18": 102, "19": 145, "20": 218, "21": 136, "22": 137, "23": 18, "24": 14, "25": 176, "26": 210, "27": 54, "28": 201, "29": 57, "30": 156, "31": 21},
27 "timeout": 60000,
28 "rpId": "domain.net",
29 "allowCredentials": [
30 {
31 "type": "public-key",
32 "id": { "0": 72, "1": 45, "2": 116, "3": 66, "4": 68, "5": 106, "6": 83, "7": 49, "8": 70, "9": 103, "10": 114, "11": 49, "12": 57, "13": 99, "14": 112, "15": 114, "16": 75, "17": 89, "18": 85, "19": 110, "20": 90, "21": 57, "22": 99, "23": 68, "24": 83, "25": 69, "26": 50, "27": 65, "28": 105, "29": 88, "30": 95, "31": 76, "32": 100, "33": 49, "34": 107, "35": 100, "36": 80, "37": 82, "38": 50, "39": 114, "40": 117, "41": 104, "42": 73, "43": 85, "44": 98, "45": 89, "46": 114, "47": 55, "48": 106, "49": 80, "50": 51, "51": 100, "52": 102, "53": 108, "54": 120, "55": 107, "56": 106, "57": 90, "58": 109, "59": 102, "60": 118, "61": 113, "62": 120, "63": 107, "64": 103, "65": 53, "66": 113, "67": 56, "68": 52, "69": 101, "70": 88, "71": 66, "72": 114, "73": 51, "74": 105, "75": 117, "76": 109, "77": 51, "78": 69, "79": 84, "80": 74, "81": 54, "82": 49, "83": 70, "84": 119, "85": 119}
33 }
34 ],
35 "userVerification": "discouraged",
36 "extensions": {
37 "appid": "https://subdomain.domain.net/app-id.json"
38 }
39}
40
What am I doing wrong? We have thousands of users using yubikeys with u2f and with such a short time frame for a migration we really need this backwards compatibility option to work.
Solution:
@IAmKale was right that this was a double encoding issue, or perhaps it was a triple encoding issue. Anyway, the solution was the H-tBD...
string needed to be raw url base64 decoded before sending back to browser. Thank you @IAmKale for the suggestions that led to figuring this out!
ANSWER
Answered 2021-Nov-16 at 17:53Everything about the options you pass to navigator.credentials.get()
looks correct, including how you're specifying the "appid"
extension. I believe the issue is that you're double-encoding your U2F credential's credential ID. Try passing the original "keyHandle"
in the options instead (you can use it as-is because it's already compatible with base64url encoding):
1{
2 "version": "U2F_V2",
3 "challenge": "zSeDYPUjDVbLQ9HDle3g2QYrHEdG5vGBwAhzqdm_PAY",
4 "appId": "https:\/\/subdomain.domain.net\/app-id.json",
5 "keyHandle": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
6}
7{
8 "publicKey": {
9 "challenge": "iygioh7vECe9OCQ5K0IBa0XeTD5hxX+aOBGimrJAntg=",
10 "timeout": 60000,
11 "rpId": "domain.net",
12 "allowCredentials": [
13 {
14 "type": "public-key",
15 "id": "SC10QkRqUzFGZ3IxOWNwcktZVW5aOWNEU0UyQWlYX0xkMWtkUFIycnVoSVViWXI3alAzZGZseGtqWm1mdnF4a2c1cTg0ZVhCcjNpdW0zRVRKNjFGd3c="
16 }
17 ],
18 "userVerification": "discouraged",
19 "extensions": {
20 "appid": "https://subdomain.domain.net/app-id.json"
21 }
22 }
23}
24H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww
25{
26 "challenge": { "0": 83, "1": 195, "2": 81, "3": 9, "4": 32, "5": 53, "6": 59, "7": 244, "8": 34, "9": 113, "10": 189, "11": 177, "12": 61, "13": 184, "14": 170, "15": 86, "16": 43, "17": 206, "18": 102, "19": 145, "20": 218, "21": 136, "22": 137, "23": 18, "24": 14, "25": 176, "26": 210, "27": 54, "28": 201, "29": 57, "30": 156, "31": 21},
27 "timeout": 60000,
28 "rpId": "domain.net",
29 "allowCredentials": [
30 {
31 "type": "public-key",
32 "id": { "0": 72, "1": 45, "2": 116, "3": 66, "4": 68, "5": 106, "6": 83, "7": 49, "8": 70, "9": 103, "10": 114, "11": 49, "12": 57, "13": 99, "14": 112, "15": 114, "16": 75, "17": 89, "18": 85, "19": 110, "20": 90, "21": 57, "22": 99, "23": 68, "24": 83, "25": 69, "26": 50, "27": 65, "28": 105, "29": 88, "30": 95, "31": 76, "32": 100, "33": 49, "34": 107, "35": 100, "36": 80, "37": 82, "38": 50, "39": 114, "40": 117, "41": 104, "42": 73, "43": 85, "44": 98, "45": 89, "46": 114, "47": 55, "48": 106, "49": 80, "50": 51, "51": 100, "52": 102, "53": 108, "54": 120, "55": 107, "56": 106, "57": 90, "58": 109, "59": 102, "60": 118, "61": 113, "62": 120, "63": 107, "64": 103, "65": 53, "66": 113, "67": 56, "68": 52, "69": 101, "70": 88, "71": 66, "72": 114, "73": 51, "74": 105, "75": 117, "76": 109, "77": 51, "78": 69, "79": 84, "80": 74, "81": 54, "82": 49, "83": 70, "84": 119, "85": 119}
33 }
34 ],
35 "userVerification": "discouraged",
36 "extensions": {
37 "appid": "https://subdomain.domain.net/app-id.json"
38 }
39}
40{
41 "publicKey": {
42 "challenge": "iygioh7vECe9OCQ5K0IBa0XeTD5hxX+aOBGimrJAntg=",
43 "timeout": 60000,
44 "rpId": "domain.net",
45 "allowCredentials": [
46 {
47 "type": "public-key",
48 "id": "H-tBDjS1Fgr19cprKYUnZ9cDSE2AiX_Ld1kdPR2ruhIUbYr7jP3dflxkjZmfvqxkg5q84eXBr3ium3ETJ61Fww"
49 }
50 ],
51 "userVerification": "discouraged",
52 "extensions": {
53 "appid": "https://subdomain.domain.net/app-id.json"
54 }
55 }
56}
57
I'm almost certain that's all you need to do to get WebAuthn to work with your old U2F credentials. If that still doesn't work, try it again with "appid"
set to the escaped "appId"
URL from the U2F sign request you posted.
QUESTION
kubelet won't start after kuberntes/manifest update
Asked 2021-Nov-16 at 10:01This is sort of strange behavior in our K8 cluster.
When we try to deploy a new version of our applications we get:
1Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "<container-id>" network for pod "application-6647b7cbdb-4tp2v": networkPlugin cni failed to set up pod "application-6647b7cbdb-4tp2v_default" network: Get "https://[10.233.0.1]:443/api/v1/namespaces/default": dial tcp 10.233.0.1:443: connect: connection refused
2
I used kubectl get cs
and found controller
and scheduler
in Unhealthy
state.
As describer here updated /etc/kubernetes/manifests/kube-scheduler.yaml
and
/etc/kubernetes/manifests/kube-controller-manager.yaml
by commenting --port=0
When I checked systemctl status kubelet
it was working.
1Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "<container-id>" network for pod "application-6647b7cbdb-4tp2v": networkPlugin cni failed to set up pod "application-6647b7cbdb-4tp2v_default" network: Get "https://[10.233.0.1]:443/api/v1/namespaces/default": dial tcp 10.233.0.1:443: connect: connection refused
2Active: active (running) since Mon 2020-10-26 13:18:46 +0530; 1 years 0 months ago
3
I had restarted kubelet service and controller
and scheduler
were shown healthy.
But systemctl status kubelet
shows (soon after restart kubelet it showed running state)
1Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "<container-id>" network for pod "application-6647b7cbdb-4tp2v": networkPlugin cni failed to set up pod "application-6647b7cbdb-4tp2v_default" network: Get "https://[10.233.0.1]:443/api/v1/namespaces/default": dial tcp 10.233.0.1:443: connect: connection refused
2Active: active (running) since Mon 2020-10-26 13:18:46 +0530; 1 years 0 months ago
3Active: activating (auto-restart) (Result: exit-code) since Thu 2021-11-11 10:50:49 +0530; 3s ago<br>
4 Docs: https://github.com/GoogleCloudPlatform/kubernetes<br> Process: 21234 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET
5
Tried adding Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --fail-swap-on=false"
to /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
as described here, but still its not working properly.
Also removed --port=0
comment in above mentioned manifests and tried restarting,still same result.
Edit: This issue was due to kubelet
certificate expired and fixed following these steps. If someone faces this issue, make sure /var/lib/kubelet/pki/kubelet-client-current.pem
certificate and key values are base64 encoded when placing on /etc/kubernetes/kubelet.conf
Many other suggested kubeadm init
again. But this cluster was created using kubespray
no manually added nodes.
We have baremetal k8 running on Ubuntu 18.04. K8: v1.18.8
We would like to know any debugging and fixing suggestions.
PS:
When we try to telnet 10.233.0.1 443
from any node, first attempt fails and second attempt success.
Edit: Found this in kubelet
service logs
1Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "<container-id>" network for pod "application-6647b7cbdb-4tp2v": networkPlugin cni failed to set up pod "application-6647b7cbdb-4tp2v_default" network: Get "https://[10.233.0.1]:443/api/v1/namespaces/default": dial tcp 10.233.0.1:443: connect: connection refused
2Active: active (running) since Mon 2020-10-26 13:18:46 +0530; 1 years 0 months ago
3Active: activating (auto-restart) (Result: exit-code) since Thu 2021-11-11 10:50:49 +0530; 3s ago<br>
4 Docs: https://github.com/GoogleCloudPlatform/kubernetes<br> Process: 21234 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET
5Nov 10 17:35:05 node1 kubelet[1951]: W1110 17:35:05.380982 1951 docker_sandbox.go:402] failed to read pod IP from plugin/docker: networkPlugin cni failed on the status hook for pod "app-7b54557dd4-bzjd9_default": unexpected command output nsenter: cannot open /proc/12311/ns/net: No such file or directory
6
ANSWER
Answered 2021-Nov-15 at 17:56Posting comment as the community wiki answer for better visibility
This issue was due to kubelet
certificate expired and fixed following these steps. If someone faces this issue, make sure /var/lib/kubelet/pki/kubelet-client-current.pem
certificate and key values are base64
encoded when placing on /etc/kubernetes/kubelet.conf
QUESTION
Difficulties installing Cro: "Failed to find dependencies: CBOR::Simple"
Asked 2021-Nov-04 at 19:02I'm hoping to try out the Cro library in Raku: https://cro.services/docs
However, when I try to install it using zef
, I get this output:
1zef install Cro::HTTP 1 ⨯
2===> Searching for: Cro::HTTP
3===> Searching for missing dependencies: IO::Socket::Async::SSL, OO::Monitors, IO::Path::ChildSecure, Base64, HTTP::HPACK, Cro::Core:ver<0.8.6>, Cro::TLS:ver<0.8.6>, JSON::Fast, Crypt::Random, JSON::JWT, DateTime::Parse, Log::Timeline
4===> Searching for missing dependencies: MIME::Base64, OpenSSL, Digest::HMAC, if, CBOR::Simple
5===> Failed to find dependencies: CBOR::Simple
6Failed to resolve some missing dependencies
7
Same results on Ubuntu (WSL2) and Kali linux.
ANSWER
Answered 2021-Nov-04 at 19:02I asked around on GitHub and IRC. The solution was to download and use rakudo-pkg to get a newer version of zef
. The one that can be installed via apt
is too old.
QUESTION
Confusions about different ways of displaying images from an external url using JavaScript
Asked 2021-Oct-19 at 17:02I recently learned there seem to be multiple ways to display an image on a web page.
The first way is to directly assign the URL to an image element's URL
1const img = new Image();
2
3img.onload = () => {
4 document.querySelector("#myImage").src = url;
5};
6img.onerror = () => {};
7
8img.src = imageUrl;
9
Another way I recently learned is using fetch
1const img = new Image();
2
3img.onload = () => {
4 document.querySelector("#myImage").src = url;
5};
6img.onerror = () => {};
7
8img.src = imageUrl;
9fetch(imageUrl)
10 .then((response)=>response.blob())
11 .then((blob)=>{
12 const objectUrl = URL.createObjectURL(blob)
13 document.querySelector("#myImage").src = objectUrl;
14})
15
I have a few questions about both approaches:
I am familiar with
fetch
but I normally use it to fetch JSON. The second way of usingfetch
to get the image seems to me like we are fetching raw binary data of that image file over HTTP, while the first one we are delegating the browser to kick off aGet
request to fetch that image. But from the server's perspective, there are no differences in terms of how it sends the image down? Am I understanding this right?In what situations we should favor one approach over the other? I feel like the second approach is going to have a lot of CORS problems than the first one, but not sure exactly why.
are there any other ways to display an image on a web page? I heard of base64 encoding/decoding a lot when people talk about images. Is base64 related to
response.blob()
i.e. the second approach? Or it is different? if so, can someone please give me an example of using base64 to show an image?lastly, I think displaying images has been a hole in my knowledge of frontend or web development. Please feel free to recommend any good resources on this subject.
ANSWER
Answered 2021-Oct-12 at 23:04- The second way is called Data URL, which allow embed small files inline in HTML/CSS, for example:
1const img = new Image();
2
3img.onload = () => {
4 document.querySelector("#myImage").src = url;
5};
6img.onerror = () => {};
7
8img.src = imageUrl;
9fetch(imageUrl)
10 .then((response)=>response.blob())
11 .then((blob)=>{
12 const objectUrl = URL.createObjectURL(blob)
13 document.querySelector("#myImage").src = objectUrl;
14})
15<img src="data:image/png;base64,iVBORw0KGgoAAA
16ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
17//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU
185ErkJggg==" alt="Red dot" />
this method can effectively reduce network requests during web page loading progress.
- In the follwing situations, Data URL is applicable:
- embed small files in html to reduct reqeusts
- embed all assets in a single html for archive purpose
- load resource dynamically generated by server
- The
base64
way is just Data URL, in addition to these two methods:
- SVG image can directly embed in HTML by
<svg>
tag - Image can also be dynamically rendered using
<canvas>
API
- Recommand a book to you
The definitive guide to HTML5
.
QUESTION
how to restrict drag elements in interact.js
Asked 2021-Oct-04 at 09:29I'm trying to stop my elements from overlapping using interact.js, but I don't have any idea how to get the n elements to be able to do it. Does anyone have an idea? Or some other way I can validate it. Try the solution to this question, but I don't understand how to get the list of elements to go through it. enter link description here
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}<!DOCTYPE html>
150<html>
151 <head></head>
152 <body>
153 <div id="pdf-container">
154 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAA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AADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAYCwBAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAMJYAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAYCwBAADAWAIAAGAsAQAAMJYAAAAYSwAAADCWAAAAGEsAAACMJQAAAMYSAAAAjCUAAADGEgAAAGMJAACAsQQAAABjCQAAgLEEAADAWAIAAGAsAQAAMJYAAABgLAEAADCWAAAAGEsAAACMJQAAABhLAAAAjCUAAADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAGEsAAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAjCUAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
155 />
156
157
158 <div id="signer-1" class="signer-box" data-x="379" data-y="279" style="position: absolute; transform: translate(379px, 279px); width: 148px; height: 90px; --content:&quot;Firma número 1&quot; ;"></div>
159 <div id="signer-2" class="signer-box" data-x="17" data-y="30" style="position: absolute; transform: translate(17px, 30px); width: 238px; height: 121px; --content:&quot;Firma número 2&quot; ;"></div>
160
161 </div>
162 <div id="values">
163 <label>X:
164 <input id="coorX" readonly>
165 </label>
166 <label>Y:
167 <input id="coorY" readonly>
168 </label>
169 <label>Width:
170 <input id="widthValue" readonly>
171 </label>
172 <label>Height:
173 <input id="heightValue" readonly>
174 </label>
175 </div>
176 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
177 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
178 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
179 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
180 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
181 </body>
182</html>
ANSWER
Answered 2021-Oct-03 at 18:14What you are looking for is collision detection. When you move or resize your box you can check if the new dimensions/position does collide with other boxes. If that is the case then you can ignore the movement/resize.
Because your code snippet contained a lot of invalid HTML I had to strip most of it to make it work. Please do spend some time making valid HTML when/if you ask your next question. Some errors that were present in your HTML code:
- All content was made in the
<head>
element - Usage of HTML tags. Only certain tags can exist out of one tag like
<br/>
is valid but<div/>
is not and the proper way of writing some HTML tags like input is<input>
(without closing tag) - Closing tags
</tag>
without any starting tags<tag>
- Closing parent tags before closing all the child tags
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}<!DOCTYPE html>
150<html>
151 <head></head>
152 <body>
153 <div id="pdf-container">
154 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAAAQFgCAAAgLAEAABCWAAAAICwBAAAQlgAAAAhLAAAAhCUAAAAISwAAAIQlAAAAwhIAAABhCQAAAMISAAAAYQkAAICwBAAAQFgCAAAgLAEAAEBYAgAAICwBAAAQlgAAAAhLAAAAEJYAAAAISwAAAIQlAAAAwhIAAACEJQAAAMISAAAAYQkAAICwBAAAAGEJAACAsAQAAEBYAgAA8JuG5X+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YSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAYCwBAADAWAIAAGAsAQAAMJYAAAAYSwAAADCWAAAAGEsAAACMJQAAAMYSAAAAjCUAAADGEgAAAGMJAACAsQQAAABjCQAAgLEEAADAWAIAAGAsAQAAMJYAAABgLAEAADCWAAAAGEsAAACMJQAAABhLAAAAjCUAAADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAGEsAAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAjCUAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
155 />
156
157
158 <div id="signer-1" class="signer-box" data-x="379" data-y="279" style="position: absolute; transform: translate(379px, 279px); width: 148px; height: 90px; --content:&quot;Firma número 1&quot; ;"></div>
159 <div id="signer-2" class="signer-box" data-x="17" data-y="30" style="position: absolute; transform: translate(17px, 30px); width: 238px; height: 121px; --content:&quot;Firma número 2&quot; ;"></div>
160
161 </div>
162 <div id="values">
163 <label>X:
164 <input id="coorX" readonly>
165 </label>
166 <label>Y:
167 <input id="coorY" readonly>
168 </label>
169 <label>Width:
170 <input id="widthValue" readonly>
171 </label>
172 <label>Height:
173 <input id="heightValue" readonly>
174 </label>
175 </div>
176 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
177 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
178 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
179 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
180 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
181 </body>
182</html><table>
183 <div>
184</table>
185 </div>
186
Below is the solution i came up with:
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}<!DOCTYPE html>
150<html>
151 <head></head>
152 <body>
153 <div id="pdf-container">
154 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAAAQFgCAAAgLAEAABCWAAAAICwBAAAQlgAAAAhLAAAAhCUAAAAISwAAAIQlAAAAwhIAAABhCQAAAMISAAAAYQkAAICwBAAAQFgCAAAgLAEAAEBYAgAAICwBAAAQlgAAAAhLAAAAEJYAAAAISwAAAIQlAAAAwhIAAACEJQAAAMISAAAAYQkAAICwBAAAAGEJAACAsAQAAEBYAgAA8JuG5X+Afw3/IQMAQFgCwhIAAGEJCEsAAISlsARhCQAA/0xYOojwD7x1vQcBABCWgLAEAEBYOqkFYQkAAMIShCUAAAhLEJYAACAsAe9BAACEJSAsAQAQlk5qQVgCAICwBGEJAADCEvAeBABAWALCEgAAYemkFoQlAAAISxCWAAAgLAHvQQAAhCUgLAEAEJZOakFYAgCAsARhCQAAwhLwHgQAQFgCwhIAAGHppBaEJQAAfPewHBwcPHjwYF1dXfUXa9eu7e7uvn79+s97sJ48efLnn3+uW7cu7dH69esPHToUg/4ZISwBABCW3/Gk9urVq2myZ8+e/RqH7P79+2mPbt++7R8QwhIAAL57WN65c+cXO/d99+5d2qO3b9/6B4SwBACA7x6W9+7d+1XDMh74B4SwBACAXzAsp6enhSXCEgAAft+wvHnz5o4dO1pbW9evX79p06ZLly4VX33w4EFbW9uqVavicVdXV0VFRUycX+3p6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SwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
155 />
156
157
158 <div id="signer-1" class="signer-box" data-x="379" data-y="279" style="position: absolute; transform: translate(379px, 279px); width: 148px; height: 90px; --content:&quot;Firma número 1&quot; ;"></div>
159 <div id="signer-2" class="signer-box" data-x="17" data-y="30" style="position: absolute; transform: translate(17px, 30px); width: 238px; height: 121px; --content:&quot;Firma número 2&quot; ;"></div>
160
161 </div>
162 <div id="values">
163 <label>X:
164 <input id="coorX" readonly>
165 </label>
166 <label>Y:
167 <input id="coorY" readonly>
168 </label>
169 <label>Width:
170 <input id="widthValue" readonly>
171 </label>
172 <label>Height:
173 <input id="heightValue" readonly>
174 </label>
175 </div>
176 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
177 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
178 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
179 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
180 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
181 </body>
182</html><table>
183 <div>
184</table>
185 </div>
186window.dragMoveListener = dragMoveListener;
187interact('.signer')
188 .draggable({
189 onmove: dragMoveListener,
190 inertia: true,
191 autoScroll: true,
192 restrict: {
193 elementRect: {
194 top: 0,
195 left: 0,
196 bottom: 1,
197 right: 1
198 }
199 }
200 })
201 .resizable({
202 onmove: resizeMoveListener,
203 inertia: true,
204 edges: {
205 left: true,
206 right: true,
207 bottom: true,
208 top: true
209 }
210 })
211
212const boxes = document.getElementsByClassName("signer");
213
214function dragMoveListener(event) {
215 const self = {
216 x: event.target.offsetLeft + event.dx,
217 y: event.target.offsetTop + event.dy,
218 width: event.target.offsetWidth,
219 height: event.target.offsetHeight
220 }
221
222 if (!collides(self, event)) {
223 event.target.style.left = event.target.offsetLeft + event.dx + "px";
224 event.target.style.top = event.target.offsetTop + event.dy + "px";
225 setInfo(self);
226 }
227}
228
229function resizeMoveListener(event) {
230 const self = {
231 x: event.target.offsetLeft + event.deltaRect.left,
232 y: event.target.offsetTop + event.deltaRect.top,
233 width: event.target.offsetWidth + event.deltaRect.width,
234 height: event.target.offsetHeight + event.deltaRect.height
235 }
236
237 if (!collides(self, event)) {
238 event.target.style.left = self.x + "px";
239 event.target.style.top = self.y + "px";
240 event.target.style.width = self.width + "px";
241 event.target.style.height = self.height + "px";
242 setInfo(self);
243 }
244}
245
246function setInfo(dimensions) {
247 document.getElementById("x").value = dimensions.x;
248 document.getElementById("y").value = dimensions.y;
249 document.getElementById("width").value = dimensions.width;
250 document.getElementById("height").value = dimensions.height;
251}
252
253function collides(self, event) {
254 for (const box of boxes) {
255 if (box == event.target) {
256 continue;
257 }
258
259 const other = {
260 x: box.offsetLeft,
261 y: box.offsetTop,
262 width: box.offsetWidth,
263 height: box.offsetHeight
264 }
265
266 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
267 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
268
269 if (collisionX && collisionY) {
270 return true;
271 }
272 }
273 return false;
274}
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}<!DOCTYPE html>
150<html>
151 <head></head>
152 <body>
153 <div id="pdf-container">
154 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAAAQFgCAAAgLAEAABCWAAAAICwBAAAQlgAAAAhLAAAAhCUAAAAISwAAAIQlAAAAwhIAAABhCQAAAMISAAAAYQ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AAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAMJYAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAYCwBAADAWAIAAGAsAQAAMJYAAAAYSwAAADCWAAAAGEsAAACMJQAAAMYSAAAAjCUAAADGEgAAAGMJAACAsQQAAABjCQAAgLEEAADAWAIAAGAsAQAAMJYAAABgLAEAADCWAAAAGEsAAACMJQAAABhLAAAAjCUAAADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAGEsAAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAjCUAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
155 />
156
157
158 <div id="signer-1" class="signer-box" data-x="379" data-y="279" style="position: absolute; transform: translate(379px, 279px); width: 148px; height: 90px; --content:&quot;Firma número 1&quot; ;"></div>
159 <div id="signer-2" class="signer-box" data-x="17" data-y="30" style="position: absolute; transform: translate(17px, 30px); width: 238px; height: 121px; --content:&quot;Firma número 2&quot; ;"></div>
160
161 </div>
162 <div id="values">
163 <label>X:
164 <input id="coorX" readonly>
165 </label>
166 <label>Y:
167 <input id="coorY" readonly>
168 </label>
169 <label>Width:
170 <input id="widthValue" readonly>
171 </label>
172 <label>Height:
173 <input id="heightValue" readonly>
174 </label>
175 </div>
176 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
177 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
178 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
179 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
180 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
181 </body>
182</html><table>
183 <div>
184</table>
185 </div>
186window.dragMoveListener = dragMoveListener;
187interact('.signer')
188 .draggable({
189 onmove: dragMoveListener,
190 inertia: true,
191 autoScroll: true,
192 restrict: {
193 elementRect: {
194 top: 0,
195 left: 0,
196 bottom: 1,
197 right: 1
198 }
199 }
200 })
201 .resizable({
202 onmove: resizeMoveListener,
203 inertia: true,
204 edges: {
205 left: true,
206 right: true,
207 bottom: true,
208 top: true
209 }
210 })
211
212const boxes = document.getElementsByClassName("signer");
213
214function dragMoveListener(event) {
215 const self = {
216 x: event.target.offsetLeft + event.dx,
217 y: event.target.offsetTop + event.dy,
218 width: event.target.offsetWidth,
219 height: event.target.offsetHeight
220 }
221
222 if (!collides(self, event)) {
223 event.target.style.left = event.target.offsetLeft + event.dx + "px";
224 event.target.style.top = event.target.offsetTop + event.dy + "px";
225 setInfo(self);
226 }
227}
228
229function resizeMoveListener(event) {
230 const self = {
231 x: event.target.offsetLeft + event.deltaRect.left,
232 y: event.target.offsetTop + event.deltaRect.top,
233 width: event.target.offsetWidth + event.deltaRect.width,
234 height: event.target.offsetHeight + event.deltaRect.height
235 }
236
237 if (!collides(self, event)) {
238 event.target.style.left = self.x + "px";
239 event.target.style.top = self.y + "px";
240 event.target.style.width = self.width + "px";
241 event.target.style.height = self.height + "px";
242 setInfo(self);
243 }
244}
245
246function setInfo(dimensions) {
247 document.getElementById("x").value = dimensions.x;
248 document.getElementById("y").value = dimensions.y;
249 document.getElementById("width").value = dimensions.width;
250 document.getElementById("height").value = dimensions.height;
251}
252
253function collides(self, event) {
254 for (const box of boxes) {
255 if (box == event.target) {
256 continue;
257 }
258
259 const other = {
260 x: box.offsetLeft,
261 y: box.offsetTop,
262 width: box.offsetWidth,
263 height: box.offsetHeight
264 }
265
266 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
267 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
268
269 if (collisionX && collisionY) {
270 return true;
271 }
272 }
273 return false;
274}.signer {
275 top: 0;
276 left: 0;
277 position: absolute;
278 background: #29e no-repeat 50% 50%;
279 background-size: 50%;
280 color: white;
281 font-size: 20px;
282 font-family: sans-serif;
283 border-radius: 8px;
284 width: 180px;
285 height: 150px;
286 opacity: 0.8;
287 box-sizing: border-box;
288 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
289 -ms-touch-action: none;
290 touch-action: none;
291}
292
293.signer:nth-child(2) {
294 left: 300px;
295}
296
297#values {
298 position: fixed;
299 bottom: 0;
300 height: 40;
301}
1window.dragMoveListener = dragMoveListener;
2
3 interact('.signer-box')
4 .draggable({
5 onmove: dragMoveListener,
6 inertia: true,
7 autoScroll: true,
8 restrict: {
9 elementRect: {top: 0, left: 0, bottom: 1, right: 1}
10 }
11 })
12 .resizable({
13 onmove: resizeMoveListener,
14 inertia: true,
15 edges: {left: true, right: true, bottom: true, top: true}
16 })
17
18const boxes = document.getElementsByClassName("signer-box");
19
20function dragMoveListener(event) {
21
22 const self = {
23 x: event.target.offsetLeft + event.dx,
24 y: event.target.offsetTop + event.dy,
25 width: event.target.offsetWidth,
26 height: event.target.offsetHeight
27 }
28
29 if (!collides(self, event)) {
30 event.target.style.left = event.target.offsetLeft + event.dx + "px";
31 event.target.style.top = event.target.offsetTop + event.dy + "px";
32 var target = event.target;
33 var x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
34 var y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
35 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px, ' + y + 'px)';
36 target.setAttribute('data-x', x);
37 target.setAttribute('data-y', y);
38
39 computeSignerBoxPosition();
40 }
41
42}
43
44function resizeMoveListener(event) {
45
46 const self = {
47 x: event.target.offsetLeft + event.deltaRect.left,
48 y: event.target.offsetTop + event.deltaRect.top,
49 width: event.target.offsetWidth + event.deltaRect.width,
50 height: event.target.offsetHeight + event.deltaRect.height
51 }
52
53 if (!collides(self, event)) {
54 var target = event.target;
55 var x = (parseFloat(target.getAttribute('data-x')) || 0);
56 var y = (parseFloat(target.getAttribute('data-y')) || 0);
57 x += event.deltaRect.left;
58 y += event.deltaRect.top;
59
60 target.style.width = event.rect.width + 'px';
61 target.style.height = event.rect.height + 'px';
62 target.style.webkitTransform = target.style.transform = 'translate(' + x + 'px,' + y + 'px)';
63 target.setAttribute('data-x', x);
64 target.setAttribute('data-y', y);
65
66 computeSignerBoxPosition();
67 }
68 }
69
70 function collides(self, event) {
71 for (const box of boxes) {
72 if (box == event.target) {
73 continue;
74 }
75
76 const other = {
77 x: box.offsetLeft,
78 y: box.offsetTop,
79 width: box.offsetWidth,
80 height: box.offsetHeight
81 }
82
83 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
84 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
85
86 if (collisionX && collisionY) {
87 return true;
88 }
89 }
90 return false;
91
92}
93
94function computeSignerBoxPosition() {
95 var $signatureBox = $('.signer-box');
96 var sbDataX = parseFloat($signatureBox.attr('data-x'));
97 var sbDataY = parseFloat($signatureBox.attr('data-y'));
98 var sbOuterWidth = $signatureBox.outerWidth();
99 var sbOuterHeight = $signatureBox.outerHeight();
100
101 var w = $('#pdf-page').width();
102 var h = $('#pdf-page').height();
103
104 var top = sbDataX / w;
105 var left = sbDataY / h;
106 var width = sbOuterWidth / w;
107 var height = sbOuterHeight / h;
108
109 document.getElementById("widthValue").value = width;
110 document.getElementById("heightValue").value = height;
111 document.getElementById("coorX").value = top;
112 document.getElementById("coorY").value = left;
113}@charset "UTF-8";
114
115
116#pdf-container {
117 display: inline-block;
118 width: 100%;
119 user-select: none;
120}
121
122#pdf-page {
123 width: 100%;
124}
125
126.signer-box {
127 top: 0;
128 left: 0;
129 position: absolute;
130 background: #29e no-repeat 50% 50%;
131 background-size: 50%;
132 color: white;
133 font-size: 20px;
134 font-family: sans-serif;
135 border-radius: 8px;
136 width: 180px;
137 height: 150px;
138 opacity: 0.8;
139 box-sizing: border-box;
140 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
141 -ms-touch-action: none;
142 touch-action: none;
143}
144
145#values {
146 position: fixed;
147 bottom: 0;
148 height: 40;
149}<!DOCTYPE html>
150<html>
151 <head></head>
152 <body>
153 <div id="pdf-container">
154 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAAAQFgCAAAgLAEAABCWAAAAICwBAAAQlgAAAAhLAAAAhCUAAAAISwAAAIQlAAAAwhIAAABhCQAAAMISAAAAYQkAAICwBAAAQFgCAAAgLAEAAEBYAgAAICwBAAAQlgAAAAhLAAAAEJYAAAAISwAAAIQlAAAAwhIAAACEJQAAAMISAAAAYQkAAICwBAAAAGEJAACAsAQAAEBYAgAA8JuG5X+Afw3/IQMAQFgCwhIAAGEJCEsAAISlsARhCQAA/0xYOojwD7x1vQcBABCW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AQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAYCwBAADAWAIAAGAsAQAAMJYAAAAYSwAAADCWAAAAGEsAAACMJQAAAMYSAAAAjCUAAADGEgAAAGMJAACAsQQAAABjCQAAgLEEAADAWAIAAGAsAQAAMJYAAABgLAEAADCWAAAAGEsAAACMJQAAABhLAAAAjCUAAADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAGEsAAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAjCUAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
155 />
156
157
158 <div id="signer-1" class="signer-box" data-x="379" data-y="279" style="position: absolute; transform: translate(379px, 279px); width: 148px; height: 90px; --content:&quot;Firma número 1&quot; ;"></div>
159 <div id="signer-2" class="signer-box" data-x="17" data-y="30" style="position: absolute; transform: translate(17px, 30px); width: 238px; height: 121px; --content:&quot;Firma número 2&quot; ;"></div>
160
161 </div>
162 <div id="values">
163 <label>X:
164 <input id="coorX" readonly>
165 </label>
166 <label>Y:
167 <input id="coorY" readonly>
168 </label>
169 <label>Width:
170 <input id="widthValue" readonly>
171 </label>
172 <label>Height:
173 <input id="heightValue" readonly>
174 </label>
175 </div>
176 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
177 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
178 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
179 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
180 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
181 </body>
182</html><table>
183 <div>
184</table>
185 </div>
186window.dragMoveListener = dragMoveListener;
187interact('.signer')
188 .draggable({
189 onmove: dragMoveListener,
190 inertia: true,
191 autoScroll: true,
192 restrict: {
193 elementRect: {
194 top: 0,
195 left: 0,
196 bottom: 1,
197 right: 1
198 }
199 }
200 })
201 .resizable({
202 onmove: resizeMoveListener,
203 inertia: true,
204 edges: {
205 left: true,
206 right: true,
207 bottom: true,
208 top: true
209 }
210 })
211
212const boxes = document.getElementsByClassName("signer");
213
214function dragMoveListener(event) {
215 const self = {
216 x: event.target.offsetLeft + event.dx,
217 y: event.target.offsetTop + event.dy,
218 width: event.target.offsetWidth,
219 height: event.target.offsetHeight
220 }
221
222 if (!collides(self, event)) {
223 event.target.style.left = event.target.offsetLeft + event.dx + "px";
224 event.target.style.top = event.target.offsetTop + event.dy + "px";
225 setInfo(self);
226 }
227}
228
229function resizeMoveListener(event) {
230 const self = {
231 x: event.target.offsetLeft + event.deltaRect.left,
232 y: event.target.offsetTop + event.deltaRect.top,
233 width: event.target.offsetWidth + event.deltaRect.width,
234 height: event.target.offsetHeight + event.deltaRect.height
235 }
236
237 if (!collides(self, event)) {
238 event.target.style.left = self.x + "px";
239 event.target.style.top = self.y + "px";
240 event.target.style.width = self.width + "px";
241 event.target.style.height = self.height + "px";
242 setInfo(self);
243 }
244}
245
246function setInfo(dimensions) {
247 document.getElementById("x").value = dimensions.x;
248 document.getElementById("y").value = dimensions.y;
249 document.getElementById("width").value = dimensions.width;
250 document.getElementById("height").value = dimensions.height;
251}
252
253function collides(self, event) {
254 for (const box of boxes) {
255 if (box == event.target) {
256 continue;
257 }
258
259 const other = {
260 x: box.offsetLeft,
261 y: box.offsetTop,
262 width: box.offsetWidth,
263 height: box.offsetHeight
264 }
265
266 const collisionX = Math.max(self.x + self.width, other.x + other.width) - Math.min(self.x, other.x) < self.width + other.width;
267 const collisionY = Math.max(self.y + self.height, other.y + other.height) - Math.min(self.y, other.y) < self.height + other.height;
268
269 if (collisionX && collisionY) {
270 return true;
271 }
272 }
273 return false;
274}.signer {
275 top: 0;
276 left: 0;
277 position: absolute;
278 background: #29e no-repeat 50% 50%;
279 background-size: 50%;
280 color: white;
281 font-size: 20px;
282 font-family: sans-serif;
283 border-radius: 8px;
284 width: 180px;
285 height: 150px;
286 opacity: 0.8;
287 box-sizing: border-box;
288 box-shadow: rgb(0, 0, 0, 0.7) 0.2em 0.2em 0.5em;
289 -ms-touch-action: none;
290 touch-action: none;
291}
292
293.signer:nth-child(2) {
294 left: 300px;
295}
296
297#values {
298 position: fixed;
299 bottom: 0;
300 height: 40;
301}<!DOCTYPE html>
302<html>
303
304<head>
305</head>
306
307<body>
308 <div id="pdf-container">
309 <img id="pdf-page" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAAYwCAIAAAAI8uQFAAAzRklEQVR42uzdf2SV/f/A8Q8zySQxyUwykiTJSJLMjMncMhkzkyQxk1uSSJIkMZN8JJEkk0RmJkkkmUziNpNMYjLJJCZJMn1fevu+XZ+zH/dpq+67ejz+yDnvc/2uc7ue93XOdf7zGQAAABbhPw4BAAAAwhIAAABhCQAAgLAEAABAWAIAAICwBAAAQFgCAAAgLAEAABCWAAAAICwBAAAQlgAAAAhLAAAAhCUAAAAISwAAAIQlAAAAwhIAAABhCQAAAMISAAAAYQkAAICwBAAAQFgCAAAgLAEAAEBYAgAAICwBAAAQlgAAAAhLAAAAEJYAAAAISwAAAIQlAAAAwhIAAACEJQAAAMISAAAAYQkAAICwBAAAAGEJAACAsAQAAEBYAgAA8JuG5X+Afw3/IQMAQFgCwhIAAGEJCEsAAISlsARhCQAA/0xYOojwD7x1vQcBABCWgLAEAEBYOqkFYQkAAMI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lAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAYCwBAADAWAIAAGAsAQAAMJYAAAAYSwAAADCWAAAAGEsAAACMJQAAAMYSAAAAjCUAAADGEgAAAGMJAACAsQQAAABjCQAAgLEEAADAWAIAAGAsAQAAMJYAAABgLAEAADCWAAAAGEsAAACMJQAAABhLAAAAjCUAAADGEgAAAGMJAAAAxhIAAABjCQAAgLEEAADAWAIAAICxBAAAwFgCAABgLAEAADCWAAAAGEsAAAAwlgAAABhLAAAAjCUAAADGEgAAAIwlAAAAxhIAAABjCQAAgLEEAAAAYwkAAICxBAAAwFgCAABgLAEAAMBYAgAAYCwBAAAwlgAAABhLAAAAjCUAAAAYSwAAAIwlAAAAxhIAAABjCQAAAMYSAAAAYwkAAICxBAAAwFgCAACAsQQAAMBYAgAAYCwBAAAwlgAAAGAsAQAAMJYAAAAYSwAAAIwlAAAAGEsAAACMJQAAAMYSAAAAYwkAAICxBAAAAGMJAACAsQQAAMBYAgAAsBF9Ip71RRoBHwAAAABJRU5ErkJggg=="
310 />
311 <div class="signer"></div>
312 <div class="signer"></div>
313 </div>
314 <div id="values">
315 <label>X:
316 <input id="x" readonly>
317 </label>
318 <label>Y:
319 <input id="y" readonly>
320 </label>
321 <label>Width:
322 <input id="width" readonly>
323 </label>
324 <label>Height:
325 <input id="height" readonly>
326 </label>
327 </div>
328
329 <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
330 <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js'></script>
331 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js'></script>
332 <script src='https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.9/interact.min.js'></script>
333 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.min.js'></script>
334</body>
335
336</html>
Note that collision detection is done with the so-called AABB collision detection algorithm. It might not be the most efficient collision detection algorithm but it's one of the simplest to implement. And since you have only 2 boxes this algorithm is sufficient. If you need more boxes this algorithm will become exponentially slower and you might want to invest time researching for a better algorithm, for example, a quadtree.
Community Discussions contain sources that include Stack Exchange Network
Tutorials and Learning Resources in Base64
Tutorials and Learning Resources are not available at this moment for Base64