apextree 1.4.2 → 1.4.3

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.
@@ -7,7 +7,7 @@
7
7
  <script src="../apextree.min.js"></script>
8
8
  </head>
9
9
  <body>
10
- <div id="svg-tree" style="margin: 0 auto"></div>
10
+ <div id="svg-tree" style="margin: 0 auto;"></div>
11
11
  <script>
12
12
  const data = {
13
13
  id: 'ms',
@@ -94,7 +94,7 @@
94
94
  };
95
95
  const options = {
96
96
  contentKey: 'data',
97
- width: 1000,
97
+ width: 800,
98
98
  nodeWidth: 150,
99
99
  nodeHeight: 100,
100
100
  fontColor: '#fff',
@@ -6,14 +6,11 @@
6
6
  <title>Document</title>
7
7
  <link rel="preconnect" href="https://fonts.googleapis.com" />
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
- <link
10
- href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap"
11
- rel="stylesheet"
12
- />
9
+ <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
13
10
  <script src="../apextree.min.js"></script>
14
11
  </head>
15
12
  <body>
16
- <div id="svg-tree" style="margin: 0 auto"></div>
13
+ <div id="svg-tree" style="margin: 0 auto;"></div>
17
14
  <script>
18
15
  const data = {
19
16
  id: '1',
package/index.d.ts CHANGED
@@ -1 +1,4 @@
1
- export { ApexTree as default } from './lib/ApexTree';
1
+ import { ApexTree } from './lib/ApexTree';
2
+
3
+ export { ApexTree as default };
4
+ export { ApexTree };
package/lib/ApexTree.d.ts CHANGED
@@ -6,5 +6,10 @@ export declare class ApexTree {
6
6
  graph: Graph;
7
7
  options: TreeOptions;
8
8
  constructor(element: HTMLElement, options: TreeOptions);
9
+ static setLicense(key: string): void;
10
+ /**
11
+ * Handle watermark display based on license validation
12
+ */
13
+ private handleWatermark;
9
14
  render(data: NestedNode): Graph;
10
15
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "apextree",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "dependencies": {
5
- "@dagrejs/dagre": "^1.1.4",
6
5
  "@svgdotjs/svg.js": "^3.2.0",
7
- "@svgdotjs/svg.panzoom.js": "^2.1.2"
6
+ "@svgdotjs/svg.panzoom.js": "^2.1.2",
7
+ "@dagrejs/dagre": "^1.1.4"
8
8
  },
9
9
  "type": "module",
10
10
  "types": "./index.d.ts",
@@ -22,16 +22,5 @@
22
22
  "default": "./apextree.min.js"
23
23
  }
24
24
  }
25
- },
26
- "devDependencies": {
27
- "@commitlint/cli": "^19.8.1",
28
- "@commitlint/config-conventional": "^19.8.1",
29
- "commitlint": "^19.8.1",
30
- "husky": "^9.1.7",
31
- "standard-version": "^9.5.0"
32
- },
33
- "scripts": {
34
- "prepare": "husky",
35
- "release": "standard-version"
36
25
  }
37
26
  }
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- node_modules
2
- dist
package/.eslintrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "plugins": [
5
- "@typescript-eslint",
6
- "prettier"
7
- ],
8
- "extends": ["prettier"]
9
- }
package/.husky/commit-msg DELETED
@@ -1 +0,0 @@
1
- npx --no -- commitlint --edit "$1"
package/.husky/pre-push DELETED
@@ -1 +0,0 @@
1
- npm run release && git push --follow-tags --no-verify
package/.prettierrc DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "arrowParens": "always"
5
- }
package/CHANGELOG.md DELETED
@@ -1,25 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [1.4.2](https://github.com/apexcharts/apextree/compare/v1.4.1...v1.4.2) (2025-07-27)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * add npm install in workflow ([ba334a9](https://github.com/apexcharts/apextree/commit/ba334a9be71901e317187c60d23d4a1029f7db54))
11
-
12
- ### 1.4.1 (2025-07-27)
13
-
14
-
15
- ### Bug Fixes
16
-
17
- * implement commitlint and auto versioning ([de25914](https://github.com/apexcharts/apextree/commit/de2591430a16e4e4a59787168e95709dae376b81))
18
- * revert version ([8f31b83](https://github.com/apexcharts/apextree/commit/8f31b83c97a243c465c2265e6cb9af4d70241eb6))
19
-
20
- ### 1.4.1 (2025-07-27)
21
-
22
-
23
- ### Bug Fixes
24
-
25
- * implement commitlint and auto versioning ([de25914](https://github.com/apexcharts/apextree/commit/de2591430a16e4e4a59787168e95709dae376b81))
@@ -1,5 +0,0 @@
1
- const Configuration = {
2
- extends: ["@commitlint/config-conventional"],
3
- };
4
-
5
- export default Configuration;
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "allowSyntheticDefaultImports": true,
4
- "baseUrl": ".",
5
- "rootDir": ".",
6
- "module": "commonjs",
7
- "moduleResolution": "Node",
8
- "resolveJsonModule": true,
9
- "target": "es6",
10
- "esModuleInterop": true,
11
- "noImplicitAny": true,
12
- "strictNullChecks": true,
13
- "lib": [
14
- "es2021",
15
- "dom"
16
- ]
17
- },
18
- "include": ["src/**/*"],
19
- "exclude": [
20
- "node_modules",
21
- "dist",
22
- ],
23
- "ts-node": {
24
- "esm": true,
25
- "experimentalSpecifierResolution": "node"
26
- },
27
- "files": ["globals.d.ts"]
28
- }
package/webpack.common.ts DELETED
@@ -1,68 +0,0 @@
1
- import path from 'path';
2
- import {Compiler, Configuration, WebpackPluginInstance} from 'webpack';
3
-
4
- export const ROOT = path.resolve(__dirname, '.');
5
-
6
- interface CommonConfig extends Configuration {
7
- plugins: (((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance)[];
8
- }
9
-
10
- export const commonConfig: CommonConfig = {
11
- entry: [path.resolve(__dirname, 'src/ApexTree.ts')],
12
- output: {
13
- clean: true,
14
- filename: 'ApexTree.js',
15
- path: path.resolve(__dirname, 'dist'),
16
- library: 'ApexTree',
17
- libraryTarget: 'umd',
18
- libraryExport: 'ApexTree',
19
- },
20
- module: {
21
- rules: [
22
- {
23
- // Include ts, tsx, js, and jsx files.
24
- test: /\.(ts|js)?$/,
25
- include: [ROOT],
26
- exclude: [/node_modules/],
27
- use: [
28
- {
29
- loader: 'babel-loader',
30
- options: {
31
- // Rely on babel loading it's `babel.config.js` file. If we need to edit it for
32
- // Hot Module Reloading support so be it.
33
- // https://gist.github.com/rmoorman/94eeed830942758e218d92f15ce58d88
34
- presets: [['@babel/preset-env', {targets: 'defaults'}]],
35
- plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-transform-runtime'],
36
- },
37
- },
38
- ],
39
- },
40
- {
41
- test: /\.ts?$/,
42
- include: [ROOT],
43
- exclude: [/node_modules/],
44
- use: [
45
- 'babel-loader',
46
- {
47
- loader: 'ts-loader',
48
- options: {
49
- configFile: 'tsconfig.json',
50
- transpileOnly: true,
51
- experimentalWatchApi: true,
52
- },
53
- },
54
- ],
55
- },
56
- {test: /\.(less)$/, loader: 'asset/resource'},
57
- {
58
- test: /\.svg$/,
59
- loader: 'raw-loader',
60
- },
61
- ],
62
- },
63
- resolve: {
64
- modules: [__dirname, 'src', 'node_modules'],
65
- extensions: ['.ts', '.js'],
66
- },
67
- plugins: [],
68
- };
package/webpack.config.ts DELETED
@@ -1,7 +0,0 @@
1
- import {Configuration} from 'webpack';
2
-
3
- export default (argv: any, env: any = {mode: 'production'}): Configuration => {
4
- const mode = argv?.mode || env.mode;
5
- const config: Configuration = require(`./webpack.${mode === 'development' ? 'dev' : 'prod'}`).default;
6
- return config;
7
- };
package/webpack.dev.ts DELETED
@@ -1,12 +0,0 @@
1
- import {Configuration} from 'webpack';
2
- import {commonConfig} from './webpack.common';
3
-
4
- const config: Configuration = {
5
- ...commonConfig,
6
- mode: 'development',
7
- optimization: {
8
- minimize: false
9
- },
10
- };
11
-
12
- export default config;
package/webpack.prod.ts DELETED
@@ -1,9 +0,0 @@
1
- import {Configuration} from 'webpack';
2
- import {commonConfig} from './webpack.common';
3
-
4
- const config: Configuration = {
5
- ...commonConfig,
6
- mode: 'production',
7
- };
8
-
9
- export default config;