aurea-eden 1.25.1
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.
- package/.gitattributes +2 -0
- package/.github/workflows/static.yml +43 -0
- package/CHANGELOG.md +60 -0
- package/LICENSE +17 -0
- package/README.md +171 -0
- package/README_.md +174 -0
- package/assets/3diagram_logo.png +0 -0
- package/assets/aurea-eden-logo.jpeg +0 -0
- package/assets/favicon/about.txt +6 -0
- package/assets/favicon/android-chrome-192x192.png +0 -0
- package/assets/favicon/android-chrome-512x512.png +0 -0
- package/assets/favicon/apple-touch-icon.png +0 -0
- package/assets/favicon/favicon-16x16.png +0 -0
- package/assets/favicon/favicon-32x32.png +0 -0
- package/assets/favicon/favicon.ico +0 -0
- package/assets/favicon/site.webmanifest +1 -0
- package/assets/threejs_camera.jpg.webp +0 -0
- package/assets/threejs_camera3.jpg.webp +0 -0
- package/assets/threejs_cameras.webp +0 -0
- package/assets/threejs_cameras2.webp +0 -0
- package/assets/threejs_objects.webp +0 -0
- package/assets/threejs_scene.webp +0 -0
- package/assets/threejs_scene_graph.webp +0 -0
- package/dist/bpmn-diagram.es.js +33126 -0
- package/dist/bpmn-diagram.umd.js +5790 -0
- package/favicon.ico +0 -0
- package/index.html +34 -0
- package/index.js +153 -0
- package/lib/connectors/Connector.js +47 -0
- package/lib/diagrams/Diagram.js +710 -0
- package/lib/diagrams/DiagramConstants.js +22 -0
- package/lib/elements/Element.js +860 -0
- package/lib/materials/BarMaterial.js +17 -0
- package/lib/materials/DiagramEditMaterial.js +28 -0
- package/lib/notations/BpmnDiagram.js +861 -0
- package/lib/shapes/Shape.js +23 -0
- package/lib/shapes/bar/ValueBarConstants.js +34 -0
- package/lib/shapes/bar/ValueBarShape.js +52 -0
- package/lib/shapes/basic/BasicShapeConstants.js +23 -0
- package/lib/shapes/basic/BoxShape.js +12 -0
- package/lib/shapes/basic/CircleShape.js +55 -0
- package/lib/shapes/basic/DiamondShape.js +169 -0
- package/lib/shapes/basic/RoundedRectangleShape.js +180 -0
- package/lib/shapes/connector/ConnectorConstants.js +7 -0
- package/lib/shapes/connector/RoundedCornerOrthogonalConnectorShape.js +229 -0
- package/lib/shapes/icon/IconConstants.js +7 -0
- package/lib/shapes/icon/IconShape.js +92 -0
- package/lib/shapes/icon/bpmn/activities/ad-hoc-marker.svg +50 -0
- package/lib/shapes/icon/bpmn/activities/business-rule.svg +92 -0
- package/lib/shapes/icon/bpmn/activities/compensation-marker.svg +50 -0
- package/lib/shapes/icon/bpmn/activities/loop-marker.svg +50 -0
- package/lib/shapes/icon/bpmn/activities/manual.svg +51 -0
- package/lib/shapes/icon/bpmn/activities/parallel-mi-marker.svg +70 -0
- package/lib/shapes/icon/bpmn/activities/receive.svg +77 -0
- package/lib/shapes/icon/bpmn/activities/script.svg +54 -0
- package/lib/shapes/icon/bpmn/activities/send.svg +86 -0
- package/lib/shapes/icon/bpmn/activities/sequential-mi-marker.svg +70 -0
- package/lib/shapes/icon/bpmn/activities/service.svg +58 -0
- package/lib/shapes/icon/bpmn/activities/sub-process-marker.svg +51 -0
- package/lib/shapes/icon/bpmn/activities/user.svg +50 -0
- package/lib/shapes/icon/bpmn/events/compensation.svg +47 -0
- package/lib/shapes/icon/bpmn/events/conditional.svg +47 -0
- package/lib/shapes/icon/bpmn/events/error.svg +47 -0
- package/lib/shapes/icon/bpmn/events/escalation.svg +47 -0
- package/lib/shapes/icon/bpmn/events/intermediate-compensation.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-conditional.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-escalation.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-link-catch.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-link-throw.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-receive.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-send.svg +69 -0
- package/lib/shapes/icon/bpmn/events/intermediate-signal-catch.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-signal-throw.svg +53 -0
- package/lib/shapes/icon/bpmn/events/intermediate-timer.svg +107 -0
- package/lib/shapes/icon/bpmn/events/intermediate.svg +49 -0
- package/lib/shapes/icon/bpmn/events/message-end.svg +54 -0
- package/lib/shapes/icon/bpmn/events/message-start.svg +41 -0
- package/lib/shapes/icon/bpmn/events/signal-end.svg +47 -0
- package/lib/shapes/icon/bpmn/events/signal-start.svg +47 -0
- package/lib/shapes/icon/bpmn/events/terminate.svg +49 -0
- package/lib/shapes/icon/bpmn/events/timer.svg +104 -0
- package/lib/shapes/icon/bpmn/gateways/complex.svg +61 -0
- package/lib/shapes/icon/bpmn/gateways/event-based.svg +68 -0
- package/lib/shapes/icon/bpmn/gateways/exclusive.svg +57 -0
- package/lib/shapes/icon/bpmn/gateways/inclusive.svg +57 -0
- package/lib/shapes/icon/bpmn/gateways/parallel.svg +56 -0
- package/lib/shapes/icon/decorators.svg +262 -0
- package/lib/shapes/icon/hexagon.svg +5 -0
- package/lib/shapes/text/Roboto_Regular.json +5610 -0
- package/lib/shapes/text/TextShape.js +29 -0
- package/lib/shapes/text/fonts/Roboto.zip +0 -0
- package/package.json +45 -0
- package/vite.config.js +15 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Shape } from '../Shape.js';
|
|
2
|
+
import { DiagramEditMaterial } from '../../materials/DiagramEditMaterial.js';
|
|
3
|
+
import { Colors } from '../../diagrams/DiagramConstants.js';
|
|
4
|
+
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
5
|
+
import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
6
|
+
import helveticaRegular from 'three/examples/fonts/helvetiker_regular.typeface.json';
|
|
7
|
+
import robotoRegular from './Roboto_Regular.json';
|
|
8
|
+
|
|
9
|
+
class TextShape extends Shape {
|
|
10
|
+
constructor(text, size = 8) {
|
|
11
|
+
|
|
12
|
+
const color = Colors.ELEMENT_TEXT;
|
|
13
|
+
|
|
14
|
+
const loader = new FontLoader();
|
|
15
|
+
var font = loader.parse( robotoRegular );
|
|
16
|
+
var textGeometry = new TextGeometry( text, {
|
|
17
|
+
font: font,
|
|
18
|
+
size: size,
|
|
19
|
+
depth: .2, // .0125,
|
|
20
|
+
curveSegments: 12
|
|
21
|
+
} ).center();
|
|
22
|
+
|
|
23
|
+
// Construct the shape
|
|
24
|
+
super(textGeometry, new DiagramEditMaterial( color ));
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { TextShape };
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aurea-eden",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.25.1",
|
|
5
|
+
"description": "A Three.js-based framework for creating custom 3D diagramming notations.",
|
|
6
|
+
"main": "dist/bpmn-diagram.es.js",
|
|
7
|
+
"module": "dist/bpmn-diagram.es.js",
|
|
8
|
+
"author": "Robert Waszkowski",
|
|
9
|
+
"license": "GPL-3.0",
|
|
10
|
+
"homepage": "",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/robertwaszkowski/aurea-eden.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"3D",
|
|
17
|
+
"diagramming",
|
|
18
|
+
"Three.js",
|
|
19
|
+
"library"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "vite build",
|
|
24
|
+
"predeploy": "npm run build",
|
|
25
|
+
"deploy1": "npm run build && mkdir -p temp-deploy && cp -r dist/* temp-deploy/ && cp index.html temp-deploy/ && cp index.js temp-deploy/ && cp favicon.ico temp-deploy/ && git branch -D gh-pages || true && git checkout --orphan gh-pages && git rm -rf . && git clean -fxd && mv temp-deploy/* . && rm -rf temp-deploy && git add . && git commit -m 'Deploy to GitHub Pages' && git push -f origin gh-pages && git checkout main",
|
|
26
|
+
"deploy": "npm run build && git branch -D gh-pages || true",
|
|
27
|
+
"release": "standard-version",
|
|
28
|
+
"release:patch": "standard-version --release-as patch",
|
|
29
|
+
"release:minor": "standard-version --release-as minor",
|
|
30
|
+
"release:major": "standard-version --release-as major"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"standard-version": "^9.5.0",
|
|
34
|
+
"vite": "^6.2.0",
|
|
35
|
+
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@tweenjs/tween.js": "^25.0.0",
|
|
39
|
+
"dat.gui": "^0.7.9",
|
|
40
|
+
"fs": "^0.0.1-security",
|
|
41
|
+
"three": "^0.172.0",
|
|
42
|
+
"troika-three-text": "^0.52.3",
|
|
43
|
+
"tween.js": "^16.6.0"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [cssInjectedByJsPlugin()],
|
|
7
|
+
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve(__dirname, "./lib/notations/BpmnDiagram.js"),
|
|
11
|
+
name: "Aurea EDEN",
|
|
12
|
+
fileName: (format) => `bpmn-diagram.${format}.js`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|