Skip to content

Commit 4d2418a

Browse files
committed
@ocif instead of @ocwg
1 parent d0bfddd commit 4d2418a

File tree

14 files changed

+79
-79
lines changed

14 files changed

+79
-79
lines changed

apps/vps-web/public/hello-ocif.ocif.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"resource": "berlin-res",
99
"data": [
1010
{
11-
"type": "@ocwg/node/rect",
11+
"type": "@ocif/node/rect",
1212
"strokeWidth": 3,
1313
"strokeColor": "#000000",
1414
"fillColor": "#00FF00"
@@ -22,7 +22,7 @@
2222
"resource": "germany-res",
2323
"data": [
2424
{
25-
"type": "@ocwg/node/oval",
25+
"type": "@ocif/node/oval",
2626
"strokeWidth": 5,
2727
"strokeColor": "#FF0000",
2828
"fillColor": "#FFFFFF"
@@ -33,7 +33,7 @@
3333
"id": "arrow-1",
3434
"data": [
3535
{
36-
"type": "@ocwg/node/arrow",
36+
"type": "@ocif/node/arrow",
3737
"strokeColor": "#000000",
3838
"start": [200, 125],
3939
"end": [350, 130],
@@ -49,7 +49,7 @@
4949
"id": "relation-1",
5050
"data": [
5151
{
52-
"type": "@ocwg/rel/edge",
52+
"type": "@ocif/rel/edge",
5353
"start": "berlin-node",
5454
"end": "germany-node",
5555
"rel": "https://www.wikidata.org/wiki/Property:P1376",

apps/vps-web/public/test-grid.ocif.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"resource": "r1",
99
"data": [
1010
{
11-
"type": "@ocwg/node/rect",
11+
"type": "@ocif/node/rect",
1212
"strokeColor": "#FF5733",
1313
"strokeWidth": 4,
1414
"fillColor": "#C13D26"
@@ -22,7 +22,7 @@
2222
"resource": "r2",
2323
"data": [
2424
{
25-
"type": "@ocwg/node/rect",
25+
"type": "@ocif/node/rect",
2626
"strokeColor": "#33FF57",
2727
"strokeWidth": 4,
2828
"fillColor": "#269E3D"
@@ -36,7 +36,7 @@
3636
"resource": "r3",
3737
"data": [
3838
{
39-
"type": "@ocwg/node/rect",
39+
"type": "@ocif/node/rect",
4040
"strokeColor": "#3357FF",
4141
"strokeWidth": 4,
4242
"fillColor": "#263DA6"
@@ -50,7 +50,7 @@
5050
"resource": "r4",
5151
"data": [
5252
{
53-
"type": "@ocwg/node/rect",
53+
"type": "@ocif/node/rect",
5454
"strokeColor": "#FF33A1",
5555
"strokeWidth": 4,
5656
"fillColor": "#A1266E"
@@ -64,7 +64,7 @@
6464
"resource": "r5",
6565
"data": [
6666
{
67-
"type": "@ocwg/node/rect",
67+
"type": "@ocif/node/rect",
6868
"strokeColor": "#FFC733",
6969
"strokeWidth": 4,
7070
"fillColor": "#C19B26"
@@ -78,7 +78,7 @@
7878
"resource": "r6",
7979
"data": [
8080
{
81-
"type": "@ocwg/node/rect",
81+
"type": "@ocif/node/rect",
8282
"strokeColor": "#8D33FF",
8383
"strokeWidth": 4,
8484
"fillColor": "#6626A6"
@@ -92,7 +92,7 @@
9292
"resource": "r7",
9393
"data": [
9494
{
95-
"type": "@ocwg/node/rect",
95+
"type": "@ocif/node/rect",
9696
"strokeColor": "#33FFF6",
9797
"strokeWidth": 4,
9898
"fillColor": "#269EB5"
@@ -106,7 +106,7 @@
106106
"resource": "r8",
107107
"data": [
108108
{
109-
"type": "@ocwg/node/rect",
109+
"type": "@ocif/node/rect",
110110
"strokeColor": "#FFB733",
111111
"strokeWidth": 4,
112112
"fillColor": "#C18A26"
@@ -120,7 +120,7 @@
120120
"resource": "r9",
121121
"data": [
122122
{
123-
"type": "@ocwg/node/rect",
123+
"type": "@ocif/node/rect",
124124
"strokeColor": "#33FFB7",
125125
"strokeWidth": 4,
126126
"fillColor": "#269E85"
@@ -134,7 +134,7 @@
134134
"resource": "r10",
135135
"data": [
136136
{
137-
"type": "@ocwg/node/rect",
137+
"type": "@ocif/node/rect",
138138
"strokeColor": "#A1FF33",
139139
"strokeWidth": 4,
140140
"fillColor": "#6EA626"
@@ -148,7 +148,7 @@
148148
"resource": "r11",
149149
"data": [
150150
{
151-
"type": "@ocwg/node/rect",
151+
"type": "@ocif/node/rect",
152152
"strokeColor": "#FF338D",
153153
"strokeWidth": 4,
154154
"fillColor": "#A62663"
@@ -162,7 +162,7 @@
162162
"resource": "r12",
163163
"data": [
164164
{
165-
"type": "@ocwg/node/rect",
165+
"type": "@ocif/node/rect",
166166
"strokeColor": "#33A1FF",
167167
"strokeWidth": 4,
168168
"fillColor": "#2672A6"
@@ -176,7 +176,7 @@
176176
"resource": "r13",
177177
"data": [
178178
{
179-
"type": "@ocwg/node/rect",
179+
"type": "@ocif/node/rect",
180180
"strokeColor": "#F633FF",
181181
"strokeWidth": 4,
182182
"fillColor": "#B526C1"
@@ -190,7 +190,7 @@
190190
"resource": "r14",
191191
"data": [
192192
{
193-
"type": "@ocwg/node/rect",
193+
"type": "@ocif/node/rect",
194194
"strokeColor": "#FF9E33",
195195
"strokeWidth": 4,
196196
"fillColor": "#C17826"
@@ -204,7 +204,7 @@
204204
"resource": "r15",
205205
"data": [
206206
{
207-
"type": "@ocwg/node/rect",
207+
"type": "@ocif/node/rect",
208208
"strokeColor": "#33FF73",
209209
"strokeWidth": 4,
210210
"fillColor": "#269E53"
@@ -218,7 +218,7 @@
218218
"resource": "r16",
219219
"data": [
220220
{
221-
"type": "@ocwg/node/rect",
221+
"type": "@ocif/node/rect",
222222
"strokeColor": "#FF33E4",
223223
"strokeWidth": 4,
224224
"fillColor": "#A626AB"

apps/vps-web/public/test-with-connection.ocif.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ocif": "https://canvasprotocol.org/ocif/0.2",
2+
"ocif": "https://canvasprotocol.org/ocif/0.4",
33
"nodes": [
44
{
55
"id": "112cc79c-6ea0-4438-baf1-9d34bb0660e2",
@@ -14,7 +14,7 @@
1414
"nodeType": "rect-node"
1515
},
1616
{
17-
"type": "@ocwg/node/ports",
17+
"type": "@ocif/node/ports",
1818
"ports": ["input-output"]
1919
}
2020
]
@@ -32,7 +32,7 @@
3232
"nodeType": "rect-node"
3333
},
3434
{
35-
"type": "@ocwg/node/ports",
35+
"type": "@ocif/node/ports",
3636
"ports": ["input-output"]
3737
}
3838
]
@@ -62,7 +62,7 @@
6262
"id": "31a62e02-39f9-4a58-9e08-f570336e71ec-edge",
6363
"data": [
6464
{
65-
"type": "@ocwg/rel/edge",
65+
"type": "@ocif/rel/edge",
6666
"from": "112cc79c-6ea0-4438-baf1-9d34bb0660e2",
6767
"to": "01d07003-7347-4a12-8955-a0ecd2b293c9",
6868
"directed": true

apps/vps-web/public/test.with-relation.ocif.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ocif": "https://canvasprotocol.org/ocif/0.2",
2+
"ocif": "https://canvasprotocol.org/ocif/0.4",
33
"nodes": [
44
{
55
"id": "n1",
@@ -28,7 +28,7 @@
2828
],
2929
"relations": [
3030
{
31-
"type": "@ocwg/rel/edge",
31+
"type": "@ocif/rel/edge",
3232
"data": [
3333
{
3434
"from": "n1",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export {
22
FlowAppElement,
33
CodeFlowWebAppCanvas,
4-
OCWGExporter,
4+
OCIFExporter,
55
} from '@devhelpr/app-canvas';

apps/vps-web/src/app/pages/ocwg.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function ocwgPage() {
167167
});
168168

169169
app.onStoreFlow = (_flow, canvasApp, getNodeTaskFactory) => {
170-
const ocwg = new module.OCWGExporter(
170+
const ocif = new module.OCIFExporter(
171171
{
172172
canvasApp: canvasApp,
173173
downloadFile: (_data: any, _name: string, _dataType: string) => {
@@ -176,7 +176,7 @@ export function ocwgPage() {
176176
},
177177
getNodeTaskFactory
178178
);
179-
const file = ocwg.convertToExportFile();
179+
const file = ocif.convertToExportFile();
180180
currentOcwgExport = JSON.stringify(file, null, 2);
181181
ocwgExport.innerHTML = '';
182182
renderElement(

libs/app-canvas/src/app/components/navbar-components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
getIsStopAnimations,
3838
setStopAnimations,
3939
} from '../follow-path/animate-path';
40-
import { OCWGExporter } from '../exporters/export-ocwg';
40+
import { OCIFExporter } from '../exporters/export-ocif';
4141
import { clearOCIF, importOCIF, isValidOCIF } from '../importers/ocif-importer';
4242
import { exportTldraw } from '../exporters/export-tldraw';
4343

@@ -246,7 +246,7 @@ export class NavbarComponent extends Component<
246246
if (!canvasApp) {
247247
return;
248248
}
249-
const exporter = new OCWGExporter(
249+
const exporter = new OCIFExporter(
250250
{
251251
canvasApp: canvasApp,
252252
downloadFile: (
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export const ocifSchema = 'https://canvasprotocol.org/ocif/';
2-
export const ocifVersion = '0.3';
3-
export const ocifRelationEdge = '@ocwg/rel/edge';
4-
export const ocifRelationGroup = '@ocwg/rel/group';
2+
export const ocifVersion = '0.4';
3+
export const ocifRelationEdge = '@ocif/rel/edge';
4+
export const ocifRelationGroup = '@ocif/rel/group';
55

6-
export const ocifArrow = '@ocwg/node/arrow';
6+
export const ocifArrow = '@ocif/node/arrow';
77

88
export const ocifToCodeFlowCanvas: Record<string, string> = {
9-
'@ocwg/node/rect': 'rect-node',
10-
'@ocwg/node/oval': 'oval-node',
9+
'@ocif/node/rect': 'rect-node',
10+
'@ocif/node/oval': 'oval-node',
1111
};

0 commit comments

Comments
 (0)