@ax-design/reveal-highlight 0.3.0-alpha.8 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +8 -167
  2. package/build/BaseConfig.d.ts +43 -0
  3. package/build/BaseConfig.d.ts.map +1 -0
  4. package/build/CanvasConfig.d.ts +7 -92
  5. package/build/CanvasConfig.d.ts.map +1 -1
  6. package/build/CustomElements.d.ts +20 -4
  7. package/build/CustomElements.d.ts.map +1 -1
  8. package/build/RevealBoundryStore.d.ts +50 -10
  9. package/build/RevealBoundryStore.d.ts.map +1 -1
  10. package/build/RevealStateManager.d.ts +3 -0
  11. package/build/RevealStateManager.d.ts.map +1 -1
  12. package/build/SvgConfig.d.ts +17 -0
  13. package/build/SvgConfig.d.ts.map +1 -0
  14. package/build/index.d.ts.map +1 -1
  15. package/build/main.js +169 -17
  16. package/build/utils/extractRGBValue.d.ts +2 -0
  17. package/build/utils/extractRGBValue.d.ts.map +1 -0
  18. package/build/utils/isValidateBorderDecorationType.d.ts +3 -0
  19. package/build/utils/isValidateBorderDecorationType.d.ts.map +1 -0
  20. package/build/utils/types.d.ts +103 -0
  21. package/build/utils/types.d.ts.map +1 -0
  22. package/es/BaseConfig.d.ts +43 -0
  23. package/es/BaseConfig.d.ts.map +1 -0
  24. package/es/BaseConfig.js +220 -0
  25. package/es/BaseConfig.js.map +1 -0
  26. package/es/CanvasConfig.d.ts +7 -92
  27. package/es/CanvasConfig.d.ts.map +1 -1
  28. package/es/CanvasConfig.js +35 -233
  29. package/es/CanvasConfig.js.map +1 -1
  30. package/es/CustomElements.d.ts +20 -4
  31. package/es/CustomElements.d.ts.map +1 -1
  32. package/es/CustomElements.js +115 -18
  33. package/es/CustomElements.js.map +1 -1
  34. package/es/RevealBoundryStore.d.ts +50 -10
  35. package/es/RevealBoundryStore.d.ts.map +1 -1
  36. package/es/RevealBoundryStore.js +129 -35
  37. package/es/RevealBoundryStore.js.map +1 -1
  38. package/es/RevealStateManager.d.ts +3 -0
  39. package/es/RevealStateManager.d.ts.map +1 -1
  40. package/es/RevealStateManager.js +43 -8
  41. package/es/RevealStateManager.js.map +1 -1
  42. package/es/SvgConfig.d.ts +17 -0
  43. package/es/SvgConfig.d.ts.map +1 -0
  44. package/es/SvgConfig.js +346 -0
  45. package/es/SvgConfig.js.map +1 -0
  46. package/es/index.d.ts.map +1 -1
  47. package/es/index.js +10 -16
  48. package/es/index.js.map +1 -1
  49. package/es/tsconfig.tsbuildinfo +1 -0
  50. package/es/utils/extractRGBValue.d.ts +2 -0
  51. package/es/utils/extractRGBValue.d.ts.map +1 -0
  52. package/es/utils/extractRGBValue.js +48 -0
  53. package/es/utils/extractRGBValue.js.map +1 -0
  54. package/es/utils/isValidateBorderDecorationType.d.ts +3 -0
  55. package/es/utils/isValidateBorderDecorationType.d.ts.map +1 -0
  56. package/es/utils/isValidateBorderDecorationType.js +10 -0
  57. package/es/utils/isValidateBorderDecorationType.js.map +1 -0
  58. package/es/utils/types.d.ts +103 -0
  59. package/es/utils/types.d.ts.map +1 -0
  60. package/es/utils/types.js +2 -0
  61. package/es/utils/types.js.map +1 -0
  62. package/package.json +35 -30
  63. package/src/BaseConfig.ts +311 -0
  64. package/src/CanvasConfig.ts +66 -380
  65. package/src/CustomElements.ts +137 -29
  66. package/src/RevealBoundryStore.ts +138 -39
  67. package/src/RevealStateManager.ts +48 -10
  68. package/src/SvgConfig.ts +422 -0
  69. package/src/index.ts +10 -16
  70. package/src/utils/extractRGBValue.ts +58 -0
  71. package/src/utils/isValidateBorderDecorationType.ts +8 -0
  72. package/src/utils/types.ts +106 -0
  73. package/.prettierrc +0 -6
  74. package/.travis.yml +0 -26
  75. package/.yarnrc.yml +0 -1
  76. package/docs/demo/debug.html +0 -73
  77. package/docs/demo/index.html +0 -1065
  78. package/docs/demo/performance-inspector.html +0 -60
  79. package/docs/demo/shapes-demo.html +0 -93
  80. package/docs/demo/single-unit.html +0 -39
  81. package/docs/logo.png +0 -0
  82. package/docs/logo.svg +0 -1
  83. package/docs/screen-record.gif +0 -0
  84. package/docs/src/logo.afdesign +0 -0
  85. package/rollup.config.js +0 -14
  86. package/tsconfig.json +0 -18
package/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: node_js
2
- node_js: "11"
3
- cache: yarn
4
- before_script:
5
- - yarn
6
- script: yarn build
7
-
8
- before_deploy:
9
- - tar czvf umd.tar.gz -C build .
10
- - tar czvf es.tar.gz -C es .
11
-
12
- deploy:
13
- - provider: releases
14
- api_key: "$GITHUB_KEY"
15
- file:
16
- - "./umd.tar.gz"
17
- - "./es.tar.gz"
18
- skip_cleanup: true
19
- on:
20
- tags: true
21
- - provider: npm
22
- email: "$NPM_EMAIL"
23
- api_key: "$NPM_KEY"
24
- skip_cleanup: true
25
- on:
26
- tags: true
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: "node-modules"
@@ -1,73 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <head>
4
- <style>
5
- .demo-block {
6
- display: flex;
7
- border-bottom: #aaa dashed 1px;
8
- }
9
-
10
- .demo {
11
- width: 500px;
12
- margin: 10px;
13
- padding-top: 1em;
14
- }
15
-
16
- .code {
17
- width: 100%;
18
- }
19
-
20
- .ax-reveal-container {
21
- display: flex;
22
- }
23
-
24
- .ax-reveal-container > ax-reveal {
25
- margin: 5px;
26
- }
27
-
28
- .ax-reveal-button {
29
- min-width: 120px;
30
- padding: 15px 25px;
31
- border: none;
32
- background: none;
33
- user-select: none;
34
- }
35
- </style>
36
- </head>
37
-
38
- <body>
39
- <ax-reveal-provider>
40
- <div class="demo">
41
- <ax-reveal-bound class="detailed-color-adjustment">
42
- <div class="ax-reveal-container">
43
- <ax-reveal>
44
- <button class="ax-reveal-button">Welcome</button>
45
- </ax-reveal>
46
- <ax-reveal>
47
- <button class="ax-reveal-button">To</button>
48
- </ax-reveal>
49
- </div>
50
- <div class="ax-reveal-container">
51
- <ax-reveal>
52
- <button class="ax-reveal-button">Project</button>
53
- </ax-reveal>
54
- <ax-reveal>
55
- <button class="ax-reveal-button">Axiom!</button>
56
- </ax-reveal>
57
- </div>
58
- </ax-reveal-bound>
59
- </div>
60
- <style>
61
- .detailed-color-adjustment {
62
- --reveal-border-decoration-type: round;
63
- --reveal-border-decoration-top-left-radius: 4px;
64
- }
65
- </style>
66
- </ax-reveal-provider>
67
-
68
- <script type="module">
69
- // For package developer.
70
- import { register } from '../../../es/index.js';
71
- register(true);
72
- </script>
73
- </body>