Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

feat(tutorial): Adding tutorial instruction (#281)

Andy Lu (Lu, Yu-An)afdd02f5b8d9
diff --git a/apps/web/src/app/app.tsx b/apps/web/src/app/app.tsx
index 29a6a34..8c861ae 100644
--- a/apps/web/src/app/app.tsx
+++ b/apps/web/src/app/app.tsx
@@ -1,5 +1,4 @@
import { useState, useEffect } from 'react';
-import { initializeData } from './initialize-data';
import { Drawnix } from '@drawnix/drawnix';
import { PlaitBoard, PlaitElement, PlaitTheme, Viewport } from '@plait/core';
import localforage from 'localforage';
@@ -19,6 +18,8 @@ export function App() {
theme?: PlaitTheme;
}>({ children: [] });
+ const [tutorial, setTutorial] = useState(false);
+
useEffect(() => {
const loadData = async () => {
const storedData = await localforage.getItem(MAIN_BOARD_CONTENT_KEY);
@@ -26,7 +27,7 @@ export function App() {
setValue(storedData as any);
return;
}
- setValue({ children: initializeData });
+ setTutorial(true);
};
loadData();
@@ -40,6 +41,7 @@ export function App() {
localforage.setItem(MAIN_BOARD_CONTENT_KEY, value);
setValue(value);
}}
+ tutorial={tutorial}
afterInit={(board) => {
console.log('board initialized');
/*
diff --git a/apps/web/src/app/initialize-data.ts b/apps/web/src/app/initialize-data.ts
deleted file mode 100644
index 32531ab..0000000
--- a/apps/web/src/app/initialize-data.ts
+++ /dev/null
@@ -1,1710 +0,0 @@
-import type { PlaitElement } from '@plait/core';
-
-export const initializeData: PlaitElement[] = [
- {
- id: 'Sfftf',
- type: 'geometry',
- shape: 'terminal',
- angle: 0,
- opacity: 1,
- textHeight: 20,
- text: {
- children: [
- {
- text: '结束',
- },
- ],
- align: 'center',
- },
- points: [
- [-276.50609579402317, 624.50390625],
- [-156.50609579402317, 684.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'aMJWD',
- type: 'geometry',
- shape: 'process',
- angle: 0,
- opacity: 1,
- textHeight: 20,
- text: {
- children: [
- {
- text: '过程',
- },
- ],
- align: 'center',
- },
- points: [
- [-71.50609579402317, 464.50390625],
- [48.49390420597683, 524.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'FHSxH',
- type: 'geometry',
- shape: 'decision',
- angle: 0,
- opacity: 1,
- textHeight: 20,
- text: {
- children: [
- {
- text: '判断',
- },
- ],
- align: 'center',
- },
- points: [
- [-286.50609579402317, 459.50390625],
- [-146.50609579402317, 529.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'xnnhM',
- type: 'geometry',
- shape: 'process',
- angle: 0,
- opacity: 1,
- textHeight: 20,
- text: {
- children: [
- {
- text: '过程',
- },
- ],
- align: 'center',
- },
- points: [
- [-276.50609579402317, 344.50390625],
- [-156.50609579402317, 404.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'FAkXk',
- type: 'geometry',
- shape: 'terminal',
- angle: 0,
- opacity: 1,
- textHeight: 20,
- text: {
- children: [
- {
- text: '开始',
- },
- ],
- align: 'center',
- },
- points: [
- [-276.50609579402317, 229.50390625],
- [-156.50609579402317, 289.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'mrdfi',
- type: 'line',
- shape: 'elbow',
- source: {
- marker: 'none',
- connection: [0.5, 1],
- boundId: 'aMJWD',
- },
- texts: [],
- target: {
- marker: 'arrow',
- connection: [1, 0.5],
- boundId: 'Sfftf',
- },
- opacity: 1,
- points: [
- [-11.506095794023167, 524.50390625],
- [-156.50609579402317, 654.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'bjjcw',
- type: 'line',
- shape: 'elbow',
- source: {
- marker: 'none',
- connection: [1, 0.5],
- boundId: 'FHSxH',
- },
- texts: [
- {
- text: {
- children: [
- {
- text: '否',
- },
- ],
- },
- position: 0.5,
- width: 14,
- height: 20,
- },
- ],
- target: {
- marker: 'arrow',
- connection: [0, 0.5],
- boundId: 'aMJWD',
- },
- opacity: 1,
- points: [
- [-146.50609579402317, 494.50390625],
- [-71.50609579402317, 494.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'mnzKm',
- type: 'line',
- shape: 'elbow',
- source: {
- marker: 'none',
- connection: [0.5, 1],
- boundId: 'FHSxH',
- },
- texts: [
- {
- text: {
- children: [
- {
- text: '是',
- },
- ],
- },
- position: 0.5,
- width: 14,
- height: 20,
- },
- ],
- target: {
- marker: 'arrow',
- connection: [0.5, 0],
- boundId: 'Sfftf',
- },
- opacity: 1,
- points: [
- [-216.50609579402317, 529.50390625],
- [-216.50609579402317, 624.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'bJmWK',
- type: 'line',
- shape: 'elbow',
- source: {
- marker: 'none',
- connection: [0.5, 1],
- boundId: 'xnnhM',
- },
- texts: [],
- target: {
- marker: 'arrow',
- connection: [0.5, 0],
- boundId: 'FHSxH',
- },
- opacity: 1,
- points: [
- [-216.50609579402317, 404.50390625],
- [-216.50609579402317, 459.50390625],
- ],
- strokeWidth: 2,
- },
- {
- id: 'zZtTs',
- type: 'line',
- shape: 'elbow',
- source: {
- marker: 'none',
- connection: [0.5, 1],
- boundId: 'FAkXk',
- },
- texts: [],
- target: {
- marker: 'arrow',
- connection: [0.5, 0],
- boundId: 'xnnhM',
- },
- opacity: 1,
- points: [
- [-216.50609579402317, 289.50390625],
- [-216.50609579402317, 344.50390625],
- ],
- strokeWidth: 2,
- },
- {
- type: 'mind',
- id: 'rzdDJ',
- rightNodeCount: 4,
- data: {
- topic: {
- children: [
- {
- text: '思维导图',
- },
- ],
- },
- },
- children: [
- {
- id: 'WKQyj',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '观点一',
- },
- ],
- },
- },
- children: [
- {
- id: 'RYSRd',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [
- {
- id: 'nDBRj',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [],
- },
- ],
- },
- ],
- },
- {
- id: 'PWzAD',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '观点二',
- },
- ],
- },
- },
- children: [
- {
- id: 'bTRmh',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [
- {
- id: 'bnZEJ',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [],
- },
- ],
- },
- ],
- },
- {
- id: 'nJTYp',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '观点三',
- },
- ],
- },
- },
- children: [
- {
- id: 'GtyaH',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [
- {
- id: 'JsPEN',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [],
- },
- ],
- },
- ],
- },
- {
- id: 'aCpyY',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '观点四',
- },
- ],
- },
- },
- children: [
- {
- id: 'iHynm',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: [
- {
- id: 'TiZGR',
- type: 'mind_child',
- data: {
- topic: {
- children: [
- {
- text: '',
- },
- ],
- },
- },
- children: []
- },
- ]
- },
- ],
- },
- ],
- points: [[248.24308817248368, 470.83369157012714]],
- },
- {
- id: 'KXysP',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [42.91255547331053, 302.4106436724954],
- [42.91255547331053, 302.4106436724954],
- [42.91255547331053, 302.94303472562143],
- [42.91255547331053, 303.6494630350447],
- [43.30577852049311, 305.2479999310129],
- [43.56933178275932, 307.7310582325393],
- [43.739438069128084, 311.12389489834214],
- [43.855740766990095, 315.8164264100736],
- [43.96492597868843, 322.6297134163672],
- [44.04510428695181, 331.4298388256405],
- [43.800067978237905, 341.65545526338],
- [43.57330869752974, 352.71036640029735],
- [43.07346103637457, 363.90530146670363],
- [42.36826123801535, 373.77911119731317],
- [41.80176985242798, 382.6007917969476],
- [41.050101023702894, 390.22783046821706],
- [40.13474095313774, 396.15692679809973],
- [39.39258212224382, 400.6820450814642],
- [38.54748622256426, 403.7768437354819],
- [37.6139535260923, 405.2185182175875],
- [36.92333546175661, 405.2964726869589],
- [36.131425080979454, 404.20079465502687],
- [35.50071089523186, 401.899151188188],
- [34.73785580109626, 398.6839479717576],
- ],
- strokeWidth: 2,
- },
- {
- id: 'ieFQi',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [25.61158363876399, 370.9967488504811],
- [24.916797897797608, 369.6071773685483],
- [24.67749697208211, 368.6131714048036],
- [24.568808312533577, 367.69766584799555],
- [24.885076423453768, 366.7492749338374],
- [25.814401426806455, 365.80719346179495],
- [27.472139546659776, 364.8344983351174],
- [29.643691195005033, 363.49568318743997],
- [32.693254384731574, 361.9420582621281],
- [36.67141481223808, 360.52686710208155],
- [41.460509155073225, 358.7994936728549],
- [46.363154873429096, 357.5239529722815],
- [51.357258169067165, 356.2862923784672],
- [56.080029524996746, 355.0491584530558],
- [60.609899785114806, 353.4775345173878],
- [64.56194534795014, 352.02103573276264],
- [68.11000361516409, 350.60845154555255],
- [71.0432829003974, 348.88126019241946],
- ],
- strokeWidth: 2,
- },
- {
- id: 'ZjTpX',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [68.86401322513058, 312.91491483450346],
- [68.1735521778042, 310.84353169252546],
- [67.41961422156675, 309.6087095594078],
- [67.00428402343306, 309.3536935515943],
- [66.81450089413721, 310.0550514771515],
- [66.34038086399784, 311.9321737730109],
- [65.99930516212868, 314.9252733774777],
- [65.76493120773563, 319.0075757836469],
- [65.50698001538291, 324.8454447611596],
- [65.02776614620694, 332.64203520547954],
- [64.67902100438306, 341.6264849819357],
- [64.11463195585026, 351.0762550531984],
- [63.657958293810964, 360.48902188913536],
- [63.04473447686752, 368.75232276852813],
- [62.55449492935492, 375.95277981063674],
- [62.18436301867911, 381.56388568202357],
- [61.893086608457736, 386.0039779745096],
- [62.00383585376545, 389.32395830976594],
- [62.44846840613474, 390.88398031753724],
- [63.15060860052046, 391.07489696871954],
- [64.34449034644518, 390.5884944484836],
- [65.64211346916642, 389.4261418477857],
- [67.25944277236914, 387.782242059898],
- [69.23165633563673, 385.76120575866327],
- [71.71743027002805, 383.19494124915974],
- [74.20940897208703, 380.6129718614996],
- [76.77953783638219, 377.6509795241994],
- [79.34979535526082, 374.4745011719527],
- [81.89429223163853, 370.7737675988022],
- [84.10618191487475, 367.04968089075675],
- [86.03563505299923, 363.63088507493677],
- [87.46080352054906, 360.399521388795],
- [88.1056750656117, 357.6989220306362],
- [88.16828991777567, 355.7236120330629],
- [87.48244052706974, 355.00434990648984],
- [86.2333550765257, 355.27069617696844],
- [84.51910378471422, 356.9340997592056],
- [82.51573374887522, 359.32984726594015],
- [80.27308198379643, 362.24551851202096],
- [78.21667296709421, 365.22803860275263],
- [76.35201341247313, 368.5401097166253],
- [74.99308933654112, 371.6932036120464],
- [74.35212759703364, 374.70821482483126],
- [74.60967360095816, 377.26474387207355],
- [75.8849959549687, 379.3530494492573],
- [77.94172322119522, 380.842715697145],
- [80.57299755293872, 381.8430887164298],
- [83.95715202891785, 382.2149938287469],
- [87.7255628157082, 381.7306166114225],
- [91.40530995863634, 380.2991663616734],
- [95.13913472270957, 378.13128514703686],
- [98.92708765115646, 375.7552142431162],
- [102.0579850561092, 372.9253456761065],
- [104.97507141472926, 369.44997213897597],
- ],
- strokeWidth: 2,
- },
- {
- id: 'BcwPw',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [107.17330800162682, 315.3864822394383],
- [107.17330800162682, 314.68788165725556],
- [107.68605557639017, 312.90885394396474],
- [107.96149974513816, 313.2362923673821],
- [108.10703733793963, 315.0497318130668],
- [107.8487479673318, 318.03523127197906],
- [107.32153980175809, 322.12789466339774],
- [106.61305306052401, 327.6496629440474],
- [105.74690506062763, 335.00159663015376],
- [104.73739866196371, 343.78755873208894],
- [103.94267964865736, 352.97766303651343],
- [103.35592288485196, 361.47102300039325],
- [102.91428825429313, 368.76097715745465],
- [102.6058707992234, 374.9056149852507],
- [102.71664913860292, 379.9377566430242],
- [103.17859970557953, 383.6504834901055],
- [103.92926148783505, 386.2850629415473],
- [105.18518596763676, 387.2232908455765],
- [106.47876774090406, 386.58627383548384],
- [108.42878794523818, 384.57530357161824],
- [110.29842036408337, 381.5909146492971],
- [112.34070966123869, 377.28716626469696],
- ],
- strokeWidth: 2,
- },
- {
- id: 'yMmdM',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [128.1816309435763, 331.4516703715174],
- [129.51989239862593, 327.43688600636807],
- [131.005085696143, 323.4655010709533],
- [132.17321403650323, 320.22803619761754],
- [133.24924577177063, 317.90628029633746],
- [134.02975227964959, 316.5798884844974],
- [134.14783424896297, 316.54041718292166],
- [133.8926984321866, 317.4977479623561],
- [133.22287144213902, 318.7988827390612],
- [132.27887681412, 321.3442647147925],
- [130.829808383076, 324.8231649206603],
- [129.27178361773264, 329.3964588424354],
- [127.78393542349028, 334.4312208988461],
- [126.31888454196638, 340.2327386833279],
- [125.22792882378127, 346.5727097657512],
- [124.13664240037093, 353.24911989309595],
- [123.36064559305925, 359.88700063912194],
- [122.81705197935372, 366.0875872230375],
- [122.79462123094964, 371.3624312339792],
- [123.15298153689861, 375.5286555827964],
- [123.81108128708121, 378.64043637310743],
- [124.6839217725904, 380.3996198544631],
- [125.97026539321524, 380.7890049944302],
- [127.99056067292241, 380.19213831837743],
- [130.21153900142696, 378.88476388393275],
- [132.56469019269213, 377.07184390433423],
- [134.71141990522602, 374.91101506003025],
- [136.96790159302333, 372.5508270030653],
- [138.9351434822873, 370.14526674676773],
- [140.72162313101268, 367.6906625775785],
- [142.03572860518085, 365.5229081393748],
- [142.89232465753918, 363.3325348487063],
- [143.47467228900274, 361.3929185298751],
- [143.84497915370986, 359.6507432215033],
- [144.08901675659746, 358.05932667710414],
- [143.8855064656289, 356.820346202075],
- [143.34705522373548, 356.3725972874557],
- [142.5808927595545, 356.7898143492387],
- [141.9800274132959, 357.49246689183866],
- [141.20573421822047, 358.75234451256193],
- [140.60413838294454, 360.40611171229585],
- [140.11465596613886, 362.41982095785744],
- [139.76488822540597, 364.9797643765863],
- [139.54737858625236, 367.56314059669813],
- [139.74002812916643, 370.2232473322459],
- [140.26313308226082, 372.78694339848727],
- [141.0063724813411, 375.06357617497207],
- [142.27660832589373, 376.7366991982256],
- [143.90287253970297, 377.2456393097712],
- [145.77666987749132, 376.86319717881844],
- [147.58367859613742, 375.4638233638746],
- [149.25082847105915, 373.33115185586604],
- [150.50962222932145, 370.61436904767044],
- [151.43056032976693, 367.46666561075864],
- [151.44918900033605, 364.2979858863094],
- [150.68786139509513, 361.64371212257294],
- [148.71372979842073, 359.9930422568298],
- [146.43462336140402, 359.1790375455451],
- ],
- strokeWidth: 2,
- },
- {
- id: 'mGnrA',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [177.499248662022, 358.6389118258051],
- [178.19838756103655, 357.240634027776],
- [178.44740448759654, 357.73951734758367],
- [178.55074397484105, 359.33715074880394],
- [178.61014442712673, 361.4559598986337],
- [178.64812496426435, 364.2721952687746],
- [178.67290254524488, 367.2007471343571],
- [179.01405705257372, 370.25629081582184],
- [179.32285897543971, 373.5847859160079],
- [179.84516425618978, 376.4537648810213],
- [180.89634486087044, 378.84118449524004],
- [182.04776635223294, 380.5504960546162],
- [183.59627761223265, 381.1254591487498],
- [185.41297733632092, 380.38858883018776],
- [187.4644196745192, 378.70642262542907],
- [190.0164112387286, 376.2831107782752],
- [192.61780039149068, 373.0528249699667],
- [195.21903098900867, 369.54518732001935],
- [197.46178243734954, 366.1757458818859],
- [199.45547340950435, 363.28229190347093],
- [201.02062392742647, 361.29363533703264],
- [201.6806297994729, 360.75294306951065],
- [201.77853184386782, 361.7431025372819],
- [201.72497431135622, 363.63138804040074],
- [201.29432857716762, 366.2245554151353],
- [200.87616025463996, 369.3207624083346],
- [200.50422730959127, 372.52586028824345],
- [200.5296583169607, 375.60774436001003],
- [200.89620266978778, 378.2107264732288],
- [201.87814701245662, 380.18178744391145],
- [203.3237210060252, 381.1444162192723],
- [205.0952749780102, 381.0964166703482],
- [207.12816635710493, 380.2710789162705],
- [209.69166653409167, 378.53143858393224],
- [212.3259393904696, 376.11874256230595],
- [214.96944377406982, 373.1964359099332],
- [217.6021329743906, 369.60896619783244],
- [220.1777634274652, 365.88642929980443],
- [222.37298449208703, 362.7935994579123],
- [223.6327261608729, 360.8606551033893],
- [224.5684389548988, 359.7015188824592],
- [224.848266046967, 358.9966931873808],
- [224.61214610266467, 358.909744955666],
- [224.33578711229762, 359.2864283518914],
- [224.33158681173774, 359.7816923132753],
- [224.33524221214162, 359.9371871220031],
- [224.5894090448324, 360.01990397554465],
- ],
- strokeWidth: 2,
- },
- {
- id: 'zZrtc',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [235.5810826780001, 358.6389118258051],
- [234.87964309260298, 358.6389118258051],
- [234.61889445335038, 358.1611628971107],
- [234.12449763453247, 357.8656015196187],
- [233.46096624185958, 357.7287023810416],
- [232.64446222875682, 357.96746526656835],
- [231.76248040139313, 358.80157625025123],
- [231.11962755143333, 360.3701824969706],
- [230.17840909863168, 362.6051131656107],
- [229.4605095880559, 365.37953360092007],
- [228.64780049405414, 368.46029452436534],
- [228.04048779767805, 371.5130428011137],
- [227.9466860371993, 374.48234753046864],
- [228.57108726883013, 376.7707524845849],
- [229.75509474791085, 378.03104531888886],
- [231.33021885632598, 378.2125552146311],
- [233.2322381762786, 377.24153734271596],
- [235.350270710728, 375.3812154051514],
- [237.66842033402082, 372.8432426035336],
- [239.49839693217888, 369.784392518722],
- [241.1186238910853, 366.75311790215375],
- [241.97995651143202, 363.75648976309395],
- [242.20144532604337, 361.4990092726251],
- [241.62986112851473, 359.9686264420855],
- [240.7453803173824, 359.4909918772258],
- [239.70060619713928, 359.61493973409625],
- [238.46628906983943, 359.86025588147396],
- [237.4495263714012, 360.48134818521913],
- [237.32546352205378, 361.03727631242265],
- [237.67287740498483, 361.4655667580785],
- [238.6168285626605, 361.8240157781095],
- [240.09541291123065, 361.7730616971306],
- [241.94515372652637, 361.6449551519184],
- [244.0967417348616, 361.5205918740306],
- [246.47485211045438, 361.7366995224559],
- [248.5281031434509, 362.2144873500386],
- [250.0551312107114, 363.24407262563483],
- [251.141761027491, 365.0075690683382],
- [251.57281377925102, 367.3754897553393],
- [251.47296243247825, 369.8655611461757],
- [250.9934349814344, 372.4362369970025],
- [250.53594587826825, 374.7619348242309],
- [249.76259042304292, 376.65352381560507],
- [249.13345875134888, 377.59033921163],
- [249.01758827576901, 377.5135455035091],
- [249.2624580703403, 376.38359800758855],
- [250.12886115846942, 374.1032174977402],
- [251.49417534682476, 370.9500521532448],
- [253.27634649718476, 367.34397132727764],
- [255.34885490762855, 363.50176547657185],
- [257.57968519334173, 360.0180973881018],
- [259.93922766570523, 357.0787636938888],
- [262.0338021629971, 354.5988338504333],
- ],
- strokeWidth: 2,
- },
- {
- id: 'yrTcA',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [278.8335122643667, 328.9801029665826],
- [278.8335122643667, 327.58830961444465],
- [278.8335122643667, 326.5959858143718],
- [278.8335122643667, 325.2256164828744],
- [279.2202967000033, 324.008793202733],
- [279.4897740257475, 322.8820472857736],
- [279.64959309551983, 322.8548143681749],
- [279.76489652259744, 323.81932610205087],
- [279.55136734276704, 325.7282939759892],
- [279.0469836389587, 328.9265161868364],
- [278.32282063931353, 333.4341849751875],
- [277.10897753909836, 338.967797349744],
- [275.80804316619884, 345.12771157867274],
- [274.17889365103616, 352.1356790585608],
- [272.6178913237164, 358.64921406843797],
- [271.41762031628906, 364.19170052087367],
- [270.54105291047614, 368.60978897979686],
- [270.4934399784657, 372.05877484991225],
- [271.21196242857883, 373.64407770722056],
- [272.48962823800144, 373.91799434599244],
- [274.1945640050822, 372.91718788023474],
- [276.56099368131737, 370.8606177518944],
- [279.05255793107864, 368.16885395093806],
- [281.6954588460365, 365.6147549907885],
- [284.3210051820004, 363.0317168239456],
- [286.5745619365569, 361.06681357824556],
- [287.8386683035131, 359.701713408231],
- [288.41766561788614, 358.71257258676934],
- [288.46219133030223, 357.71887731353246],
- [288.3509886237719, 356.74788405508053],
- [288.21574014326217, 355.81649124761344],
- [287.6921519926746, 355.04123324765834],
- [287.20458811748864, 354.28059387569857],
- [286.5366712370856, 353.67469994964114],
- [286.0639823531331, 353.26353898266126],
- [285.4028205618868, 353.2472010262457],
- [284.89198925774696, 353.6075500359978],
- [284.1754186117499, 354.5654800797532],
- [283.6143451968117, 356.3366877408201],
- [282.89526099457754, 358.744193285432],
- [282.0497432745652, 361.5342572721623],
- [281.42469080018606, 364.6708777838733],
- [280.94234835119533, 368.111457274031],
- [280.6220914499307, 370.98002970199497],
- [280.6919263435569, 373.5788838303336],
- [281.13260414606276, 375.42029417245186],
- [282.1178378200148, 376.3341376652573],
- [283.570040972345, 376.2527794576102],
- [285.391336049941, 374.76440288736677],
- [287.75696108880953, 372.1776960561668],
- [290.2704700021132, 368.7432288511066],
- [292.8572238825105, 364.40833820819563],
- [295.76403028033593, 359.0734292865994],
- [298.614612813743, 352.7127720393922],
- [301.33369432594924, 345.64741876713407],
- [304.31571852994176, 338.29865298186206],
- [306.85002528026104, 331.5874947865453],
- [308.98008917265, 325.9873090464628],
- [310.87505010500837, 321.17110936169894],
- [312.64995449177974, 317.471917041323],
- [313.94677557613323, 314.55913036891735],
- [314.7208301206402, 312.5081990010961],
- [315.2561778603836, 310.8273470804464],
- [315.26904792981105, 309.6496526322556],
- [315.17033200858265, 309.2719821681497],
- [314.7824604408059, 309.7235194802009],
- [314.10816358766994, 310.78949256064817],
- [313.2312029081143, 312.61697650816615],
- [312.22582977048097, 315.36794383162606],
- [310.7534439208212, 319.281782296823],
- [308.9489254373196, 324.35597900703516],
- [306.9755744939469, 330.12329863704446],
- [304.493667287492, 337.11131793098076],
- [302.31011773607935, 344.5789287650153],
- [300.3790682428367, 351.50855019317197],
- [299.22926948805804, 357.7435772931197],
- [298.740627570031, 362.97524129361165],
- [299.09200346723725, 367.2079571723273],
- [300.11060198752654, 370.19497449338206],
- [301.95944004060544, 371.9472792300979],
- [304.48750888277056, 372.2649938952066],
- [307.4720288779993, 371.2380847471798],
- [310.4153822205861, 369.94518305581397],
- ],
- strokeWidth: 2,
- },
- {
- id: 'HbPrm',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [109.79648768166226, 133.37994384765625],
- [109.79648768166226, 133.37994384765625],
- [109.79648768166226, 133.9123349007832],
- [109.35614145739532, 135.0590592685703],
- [107.92467957992176, 136.9081105477071],
- [105.54602400589988, 139.89632636757142],
- [102.22437505814241, 143.97527653826364],
- [98.2323240448261, 148.82873858727453],
- [93.03957175123014, 154.77254023719797],
- [87.82217952377141, 160.22274567033946],
- [82.87207777257095, 164.97604470290207],
- [78.43988043643094, 168.89361830389134],
- [74.92514185628988, 171.65364666951973],
- [73.16273355102089, 172.8008668319053],
- [72.72678674637518, 172.75799013834512],
- [73.56446149572434, 171.5057982144417],
- [75.46011315061105, 169.30611943401436],
- [78.06326495751387, 166.83023687563946],
- [80.89177496218963, 164.1492169154344],
- [83.74302232315267, 161.77609084008327],
- [86.52786623520956, 159.72121594618693],
- [88.92919005742374, 157.88893596626713],
- [90.83737637182617, 156.76316868521644],
- [91.96824066614568, 156.499483152842],
- [92.74501288515603, 157.05151147170636],
- [93.23631882298469, 158.54590251763057],
- [93.21063268077478, 161.10313759670316],
- [93.09991735976064, 164.7555844442213],
- [92.61551771865675, 170.06007640283133],
- [92.19777453728466, 176.64557341439468],
- [91.57947742445594, 184.88165725068666],
- [91.08734598566502, 193.733023773686],
- [90.4100087041877, 203.39437308513607],
- [89.56907229557487, 212.84067133937333],
- [88.94170137486913, 221.55993804135778],
- [88.46988974647365, 228.69696750760158],
- [88.1386715665974, 234.6720730365687],
- [88.18530703949568, 238.60818260499582],
- [88.60912347798967, 240.26579825107638],
- [89.27882089095988, 239.9505076331161],
- [90.1680066995807, 237.32672133212418],
- [91.21010746975185, 233.36227246339604],
- [92.31854092168419, 229.1926961149211],
- ],
- strokeWidth: 2,
- },
- {
- id: 'kMZAM',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [109.79648768166226, 176.01455212283236],
- [110.47730304077572, 173.97210604549218],
- [113.60359420488385, 168.88895139502438],
- [116.55805167600397, 165.32083242489352],
- [119.07015329460933, 162.48903314530617],
- [121.08808758329019, 160.60806238385976],
- [122.59399319206136, 159.5449683533252],
- [123.4383540132701, 159.63081944625537],
- [124.47644899613306, 160.5056192368811],
- [124.68081080472007, 162.58220980128863],
- [123.87039770098863, 166.21483986701696],
- [122.14649040750373, 170.43777706596939],
- [120.04625823383185, 174.81654420157338],
- [117.44861914941498, 179.3449239145848],
- [114.48392604556079, 183.74285710743152],
- [111.55243060776866, 187.37306490617084],
- [108.96531256464687, 190.00587273526708],
- [106.89756953989877, 191.67963897436857],
- [105.63239245311524, 191.61777196173716],
- [105.69073445652862, 190.41486647040438],
- [106.50334253691972, 188.411643983638],
- [108.22396503161735, 185.72552327618723],
- [110.65678013453339, 182.88013718326783],
- [114.00310168570081, 179.88153451767266],
- [117.81528899610657, 177.09553020166823],
- [122.10298304415164, 174.6241675184092],
- [126.67412525685359, 172.54312507943268],
- [131.03259880876362, 171.07496677106155],
- [135.63274730673675, 169.740897555861],
- [139.6485547432594, 168.84001753127814],
- [143.3010582388713, 168.54362376587596],
- [146.24445645689957, 168.73770189413426],
- [148.38372205561677, 169.62494926835734],
- [149.48357508174172, 171.32170048543685],
- [149.4985441387903, 173.66066774159754],
- [148.40464690482418, 176.45576577130305],
- [146.08596713506427, 179.94211424173682],
- [142.90077150256775, 183.28842837446882],
- [139.0435370732214, 186.79938392325766],
- [134.78688485788848, 189.73916435197953],
- [131.24274161566223, 191.86461980618424],
- ],
- strokeWidth: 2,
- },
- {
- id: 'zRYyC',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [125.86167581374139, 185.9008217425735],
- [125.86167581374139, 185.20137187537875],
- [126.33634777264842, 184.93865978775648],
- [127.01205571525793, 184.8452152910486],
- [127.48372706680584, 184.42526521858872],
- [128.0781427591328, 184.10418497309274],
- [128.80083983394275, 184.53177880910607],
- [129.32182407505888, 185.19062012362065],
- [129.8404950950137, 186.62539903127526],
- [130.20600353478062, 188.74760676485766],
- [130.4730519524419, 191.44528758157685],
- [130.64704728480933, 194.91556697310352],
- [130.75964075113166, 198.89369789348075],
- [130.48040536152484, 203.2462307066753],
- [130.2145160211844, 208.09953094585308],
- [129.6979902316143, 213.06423902224196],
- [129.2881101043597, 218.06172587877245],
- [128.6616968845758, 222.41483867346687],
- [128.16900154264022, 225.9684511247442],
- [127.45729599567244, 228.72681328942326],
- [126.89238376667026, 230.21359041232336],
- [126.55329688370807, 230.4423000068282],
- [126.28838884215929, 229.79279292528554],
- [126.11511349518992, 228.49183102940333],
- [125.66272929726551, 226.32730342068862],
- [124.9996570541291, 223.86850546535698],
- [124.15557193372524, 220.9112663852875],
- [122.89575666454198, 218.08398566082815],
- [121.26827359280583, 214.99563295945427],
- [120.02019183115067, 212.38609744841233],
- ],
- strokeWidth: 2,
- },
- {
- id: 'iixpb',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [115.97540619400024, 201.96600987465172],
- [115.97540619400024, 201.96600987465172],
- [115.97540619400024, 203.02985937583708],
- [115.54032758907783, 204.0070671514286],
- [114.88800913723844, 205.33321060054277],
- [113.74972834251412, 206.90973225832658],
- [112.62888170390261, 208.65340637972622],
- [111.52872781486985, 210.5177311502839],
- [110.58280353034593, 212.47644418757773],
- ],
- strokeWidth: 2,
- },
- {
- id: 'xaJii',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [139.455296540885, 200.7302261721843],
- [140.15474640807975, 200.7302261721843],
- [141.43569668226633, 200.7302261721843],
- [142.95263655931922, 200.7302261721843],
- [144.2463899393897, 201.112900216227],
- [145.42172017496, 201.3817113071973],
- [146.54306293509512, 201.88117725575376],
- [147.9361619503029, 202.55635001542396],
- [149.52934565224496, 203.43187635623053],
- [151.03365414805467, 204.425541391327],
- [152.53195236756756, 205.2591203687398],
- [153.91735055263598, 206.18576475125337],
- [155.25118970327185, 206.87342478932715],
- ],
- strokeWidth: 2,
- },
- {
- id: 'nHaGM',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [195.06556315192802, 184.66503804010517],
- [194.36577270567545, 183.96524759385284],
- [194.11966243371353, 183.2156912285518],
- [194.42839689931543, 182.413391420685],
- [195.38255817085064, 181.93059307953172],
- [196.71015574468674, 181.64745291630243],
- [198.9836776168852, 181.45047424326094],
- [202.24180015166553, 181.31342301711902],
- [206.5531121045251, 181.4341227980467],
- [211.55474336330417, 181.5866082480352],
- [217.4207978979657, 181.74723474440088],
- [223.32020948372315, 181.8912387717337],
- [229.06086802732807, 181.99931874442427],
- [234.37513761124728, 182.08183961140458],
- [238.96182670526377, 182.1454340663986],
- [242.6114125480285, 182.19347063517034],
- [245.45635766125383, 182.50532452339849],
- ],
- strokeWidth: 2,
- },
- {
- id: 'EDFJM',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [224.72437201115076, 169.83563361049437],
- [224.72437201115076, 169.13455663361037],
- [225.2079955920576, 169.36076453227815],
- [225.89008018478512, 170.3583013813186],
- [226.31165432393618, 172.1067967876479],
- [226.57572496593116, 174.66616349979358],
- [226.7538355421318, 178.12330470745565],
- [226.87645078870196, 182.52686844185246],
- [226.41127251909484, 188.3322416368237],
- [225.0348371284283, 194.60819591541895],
- [222.95133088796047, 200.9662623094182],
- [220.33316719163213, 207.03685764458442],
- [217.34622210823318, 212.23298829259875],
- [214.0825521121924, 216.69038015615297],
- [210.87450113748218, 219.98009561713116],
- [208.14025566872465, 222.2130275818863],
- [205.77022936942967, 223.71135888882418],
- [203.9556967168569, 224.0171503529582],
- [202.82487976095376, 223.02012038579687],
- ],
- strokeWidth: 2,
- },
- {
- id: 'tPPjW',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [214.83810239140985, 174.77876842036403],
- [215.53557379662493, 174.77876842036403],
- [215.31310253187962, 175.26021256012427],
- [215.14029082245952, 176.34950917375045],
- [214.67482574322503, 178.13835448118243],
- [214.01172808707815, 180.72119891576767],
- [212.8818987570528, 184.53974762699363],
- [211.42967488231852, 188.87145114071245],
- [209.55013469246683, 193.93392264882277],
- [207.4512400567005, 198.69907022289226],
- [205.23306515042214, 202.9184009216524],
- [203.1813185653882, 206.10501297465999],
- [201.54427258160263, 208.21386687290487],
- [200.50406876930015, 208.82949491306226],
- [200.07467236854131, 208.42414579901924],
- [200.48235915331747, 207.2563553075879],
- [201.53793171604798, 205.87624633142332],
- [203.41501919103302, 204.36880053149162],
- [205.651966890802, 202.75698331904277],
- [208.35284358660806, 201.59237753626167],
- [211.10942180954476, 201.38335532602196],
- [214.4799684297409, 201.99610116851727],
- [217.70672589360743, 203.85157615492972],
- [221.0369614966396, 206.68130269487938],
- [224.486754623965, 210.19983154970123],
- [227.3261063084026, 213.56297067303785],
- [229.79142906059064, 216.55482508601926],
- [231.84971094453863, 219.10534193545482],
- [233.75743845898182, 221.09207119329403],
- [235.06137802772287, 221.85164764448928],
- [235.89807799547953, 221.54480701567536],
- [236.4394236685862, 220.17265552988738],
- ],
- strokeWidth: 2,
- },
- {
- id: 'XDkHb',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [243.26112754816495, 179.7219032302346],
- [243.9553454502302, 179.02768532816935],
- [245.73672549383127, 177.75999517274977],
- [247.5136816472534, 176.680809019128],
- [249.3223450780731, 176.05208500486788],
- [251.19330404012317, 176.0175285502355],
- [252.79138229464093, 176.35245384896552],
- [254.2541983529636, 177.5682024874468],
- [255.6123567509444, 179.0794366765167],
- [256.6125158297839, 181.2610535734575],
- [257.2758319461491, 184.02050198639336],
- [257.3698832334496, 186.84793701923445],
- [256.69694657784544, 189.6541390298471],
- [255.43939762442483, 192.38743898242137],
- [253.76668343730717, 194.7846885095114],
- [252.12347143357056, 196.798490382801],
- [250.56091296426553, 198.57701124288815],
- [249.58067663030442, 200.2417691450164],
- [249.5877017085238, 201.33624500092628],
- [250.3188877290031, 202.38617334846367],
- [251.93125810250763, 203.4512825550837],
- [253.92814674970646, 204.84919151460053],
- [256.1573646351769, 206.53192054550072],
- [258.6631790176077, 208.8338036803816],
- [260.5723064903159, 211.21133565093805],
- [261.9397068152184, 213.61976578067242],
- [262.89862021824933, 216.1173477296261],
- [262.93442953438625, 218.41333535572358],
- [262.147722023112, 220.33481639801903],
- [260.79266282845697, 221.7653773917973],
- [258.7018707536306, 222.76865069811447],
- [256.0384345196378, 223.4011301710807],
- [252.9966311789076, 223.48582088860076],
- [249.62805325619365, 222.81743646421182],
- [246.1436457459588, 221.55825801419724],
- [243.16471868710937, 219.55471773904628],
- [240.72762713587053, 217.34651813267374],
- [238.9182240135217, 215.30389314654803],
- [237.67665323034134, 213.45473674811092],
- [236.83616348649457, 211.70325416805554],
- [236.59105858497264, 210.27018170077918],
- [237.20109361257528, 209.07679116086365],
- [238.44405265699902, 208.23692119782845],
- [240.42238456774317, 207.3806517592593],
- [242.93733507957313, 206.47994488699896],
- [246.19814135098704, 205.48644301196146],
- [250.16646687275124, 204.7140316132709],
- [255.08717034644496, 203.8670772531559],
- [260.4572753294242, 202.8944418535366],
- [266.1195053352783, 202.1766410687669],
- [271.6412270226606, 201.3269350051969],
- [276.726360314849, 200.7030789180326],
- [281.4963040134933, 200.26471123997908],
- [285.973613519139, 199.64451363184253],
- [289.62570919265227, 199.15668653786543],
- ],
- strokeWidth: 2,
- },
- {
- id: 'NicwR',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [342.01009336531547, 146.35574326360893],
- [342.01009336531547, 145.65399656252248],
- [342.01009336531547, 144.8934740953964],
- [342.01009336531547, 144.0775657119675],
- [342.01009336531547, 144.41155598738715],
- [342.01009336531547, 145.73307910776293],
- [341.66807622233637, 148.37242924565817],
- [341.0859877072487, 152.55639928089658],
- [339.98185339807173, 158.4461032419722],
- [338.46454493618194, 165.95401097693048],
- [336.34585554829846, 174.63198105936408],
- [334.42287007583946, 182.6932632759399],
- [332.29504882543915, 190.20648056754817],
- [330.63104357555653, 196.8598463814169],
- [329.07316436873043, 202.48321008783387],
- [327.8980925404353, 207.20483149622396],
- [327.08638402232964, 210.8244265314197],
- ],
- strokeWidth: 2,
- },
- {
- id: 'sRRNe',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [325.94490523323634, 229.1532513289394],
- [325.94490523323634, 229.1532513289394],
- [324.3864443272455, 230.1922252662671],
- [323.15511529456035, 231.59301219439112],
- ],
- strokeWidth: 2,
- },
- {
- id: 'fDPmi',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [374.1194388638175, 314.3101386264214],
- [374.1194388638175, 312.90885394396474],
- [374.1194388638175, 312.97706458911836],
- [373.68949949337656, 313.44495624835037],
- [373.41768138077686, 314.4947913296067],
- [372.55584973202275, 315.89797343314586],
- [371.60093397098916, 318.51904651078513],
- [370.2979754680743, 322.01260799246376],
- [368.25803353264854, 326.76344141777537],
- [365.65514993901587, 332.8658419135343],
- [363.0286503468671, 339.0943755060028],
- [360.41589638485283, 345.10017410159327],
- [357.7660572894553, 350.60803775120013],
- [355.4783138672312, 355.3928104359887],
- [353.73843928786, 359.24461585987393],
- [352.145855053867, 362.38485242157304],
- ],
- strokeWidth: 2,
- },
- {
- id: 'PFTyp',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [344.2248463021271, 379.692944476946],
- [343.5242524666848, 378.9923506415037],
- [343.2941655804586, 378.7622637552775],
- ],
- strokeWidth: 2,
- },
- {
- id: 'EeWSd',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [75.57564342783854, 644.5415974683578],
- [75.57564342783854, 643.8385579392179],
- [75.57564342783854, 643.0796575063282],
- [75.57564342783854, 642.2677210400775],
- [75.57564342783854, 641.4019218420626],
- [75.92187667473496, 640.7739867948403],
- [76.16339270042232, 640.4548279256232],
- [76.33722823708473, 640.5516967715471],
- [76.48720382086464, 641.1756645455907],
- [76.60183769043493, 642.3574088920172],
- [76.68840733065946, 644.6293706552124],
- [76.766042817646, 648.165255983994],
- [76.48957632156095, 653.1765765295272],
- [75.9012288867703, 660.2662940903779],
- [75.12093540804568, 668.6402020184591],
- [74.20349433032817, 677.5470422456829],
- [73.50007616539352, 686.1183469659713],
- [72.97053661515503, 693.9103119511383],
- [72.56140253640598, 701.1168091231693],
- [72.24827008271842, 707.1174623470365],
- [72.0410612067165, 711.8584176597974],
- [72.23942893241093, 715.5925951784202],
- [72.44120753341241, 717.90124325235],
- [72.30939807170836, 719.0310647714455],
- [72.19444383556475, 719.0083390676632],
- [71.78945398767411, 718.1506887918395],
- [71.46365766852142, 716.3521167298923],
- [71.22265759186513, 713.9049694119617],
- [71.0432829003974, 711.0279308067707],
- [71.19726333307113, 707.7876489654013],
- [71.3311867843816, 703.9432269024292],
- [71.78736079772085, 699.7587142406205],
- [72.79812225504458, 695.3069314006079],
- [73.95450257060162, 690.3670344007573],
- [75.48078749024995, 685.3830771352232],
- [77.30436958766069, 680.7187710430962],
- [79.36020088762149, 676.2825370064916],
- [81.56615586488243, 672.6448661018771],
- [83.89141064196298, 669.7372465962353],
- [86.33203490054308, 667.6169228234412],
- [88.40979459794318, 666.2005641581095],
- [90.6710824253808, 665.6091077763322],
- [92.61731004875134, 665.6707495795363],
- [94.37219744736382, 666.4917002862089],
- [95.93641683306015, 668.2250799204767],
- [97.07897963098691, 670.9282819438145],
- [98.17249855409005, 674.3511361857209],
- [98.95099797590052, 678.2994353770432],
- [99.49355174953467, 682.6081693638394],
- [99.51166443935796, 687.2097681583327],
- [98.82464199803604, 691.9825938529038],
- [97.59319390291972, 696.8526046861857],
- [95.94344326661104, 701.795611232038],
- [94.02128205500986, 706.4127425773727],
- [91.52891831023527, 711.0984064742734],
- [88.62897918819255, 715.2030995703008],
- [85.76861230191258, 718.4784638926353],
- [82.93096546138514, 720.8615223716733],
- [80.22692780560038, 722.4751272502353],
- [77.89256512259777, 723.5655931920651],
- [75.77664198546137, 723.9401303227578],
- [74.26976340281664, 723.7562186077826],
- [73.30918441983619, 723.145838922595],
- ],
- strokeWidth: 2,
- },
- {
- id: 'Zhdzy',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [100.29131747719094, 695.2087292695301],
- [100.29131747719094, 694.5055751793593],
- [100.76966360387274, 694.2453382857807],
- [101.44995130332501, 694.5516872371127],
- [101.88006659063313, 695.1294102296083],
- [102.48049533703085, 696.5371374217834],
- [102.90193726861031, 698.1937387632697],
- [103.19557285768593, 700.3340639329072],
- [103.52708017741867, 703.4869171366563],
- [103.75641186405397, 706.9112632097472],
- [103.56373869815167, 710.2191386566988],
- [103.03962837531691, 712.9735101830584],
- [102.30819490270375, 715.3400081560421],
- [101.65347929452747, 716.5028074684824],
- [101.22139409427956, 716.1848621701693],
- [101.20565884396257, 714.8319811703609],
- [101.85324497798439, 712.3179577173973],
- [103.0235506191487, 709.2942712077629],
- [104.62955050710258, 705.5929151359351],
- [106.9193778730417, 701.6009741078246],
- [108.96267065634021, 698.3970410314837],
- ],
- strokeWidth: 2,
- },
- {
- id: 'eiKfZ',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [123.7712078240757, 706.3307825917386],
- [123.7712078240757, 706.3307825917386],
- [123.7712078240757, 705.2761926782796],
- [123.7712078240757, 704.3145223805373],
- [123.7712078240757, 703.361119801777],
- [123.7712078240757, 702.3922299898618],
- [123.7712078240757, 701.4002262617037],
- [123.7712078240757, 700.3740223295949],
- [123.45256473406636, 699.3645323308979],
- [122.87729243630889, 698.7251925043042],
- [122.08142705286224, 698.6052768440809],
- [121.18200880254454, 698.9003467090674],
- [120.14043722958701, 699.8221815883121],
- [119.02228785489962, 700.9032457092344],
- [117.77059684842021, 702.4695240391661],
- [116.87486624587615, 703.9928042188853],
- [115.87562064722471, 705.8621946948738],
- [115.17665876841585, 707.8834494653688],
- [114.6905124299729, 710.0338522647708],
- [114.35198111899768, 712.3167261862536],
- [114.13209368364124, 714.319799078909],
- [114.31833288032959, 716.2337395784234],
- [114.8441827110376, 717.5772521582967],
- [115.56389468362732, 718.5009060395896],
- [116.51417361303749, 718.825561403723],
- [117.85101736632947, 718.3212065714847],
- [119.22681798206014, 717.193379976316],
- [120.62346613025335, 715.5916787188812],
- [122.02726211111218, 713.6467621375518],
- [123.37268928277064, 711.8002811976144],
- [124.42097911640127, 709.6694634373398],
- [125.44228335184181, 707.7763729324697],
- [126.20990054952819, 706.0325815234605],
- [126.6777732997769, 704.8590743700711],
- [126.68107075519134, 704.0126922013733],
- [126.62382346323199, 703.6891669665497],
- [126.56920378082356, 703.9004700285918],
- [126.49179692669992, 704.7609961278854],
- [126.42626489748619, 706.1716801772659],
- [126.34705521319535, 707.9482609896295],
- [126.28780600179522, 709.9991347104256],
- [126.24277522901076, 711.9867825757856],
- [126.24277522901076, 713.749379837252],
- [126.55861886728991, 715.1886852703674],
- [127.13054080643411, 716.0617838414232],
- [128.23942704652205, 716.0533200671603],
- [129.41415150286986, 715.2888733173613],
- [130.96459251497714, 713.6448630245213],
- [132.48552656240287, 711.3250076702561],
- [134.38553768932167, 708.4179884935511],
- [136.09588482548207, 705.2591490379841],
- [137.70733913403757, 702.4781889135452],
- [139.20678791887764, 700.0808673095498],
- [140.38844815103613, 698.4736917075488],
- [141.12685659108575, 698.4806535436633],
- [141.61822218414665, 699.2734454319093],
- [141.964634872114, 700.9859742054023],
- [141.83606540321108, 703.4316994171609],
- [141.68160482542618, 706.0440142346438],
- [141.5248487535676, 708.8581312435103],
- [141.3803651589638, 711.2272921503754],
- [141.5713918019713, 713.2027507927687],
- [142.06337546734704, 714.3485894414634],
- [142.77393478656046, 715.1845347937187],
- [143.69072449068204, 715.10178087023],
- [144.7124835254918, 714.5525525267899],
- [145.83016490294705, 713.4074158119874],
- [147.3946291202613, 711.7530728256056],
- [148.87311307890246, 709.8298922747331],
- [150.32152114158504, 708.297920693788],
- [151.68515346665305, 707.1903964815419],
- [153.01652545307394, 706.3640384710961],
- [154.08314721596145, 706.4080548049992],
- [154.76694404962592, 707.5081769011699],
- [155.25250359013245, 709.0986836759794],
- [155.56409486911917, 710.7432590701142],
- [155.74990229361634, 712.7183970414626],
- [156.1770496959296, 714.3318000114018],
- [156.8124886974611, 715.2214242140808],
- [157.58198231593957, 715.1341022023071],
- [158.82137270226605, 714.0070550872638],
- [160.4359008269842, 711.7139538964789],
- [162.3249274886462, 708.8869239636847],
- [164.48413593667334, 705.6287517110131],
- [166.4510487282194, 702.4219371951322],
- [168.22662032946693, 699.670893638618],
- ],
- strokeWidth: 2,
- },
- {
- id: 'cNdFJ',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [175.67412332771556, 698.9160803769328],
- [175.67412332771556, 698.2124853192436],
- [175.67412332771556, 697.45203132511],
- [175.67412332771556, 697.0864144078773],
- [175.67412332771556, 697.2784546087973],
- [175.67412332771556, 697.7723820321603],
- [175.67412332771556, 698.4536754865471],
- [175.67412332771556, 699.602972334973],
- [175.67412332771556, 701.1357568406443],
- [175.67412332771556, 703.0019128042481],
- [175.67412332771556, 705.1179848171382],
- [175.34696232119455, 707.105690608535],
- [175.07753086065082, 709.2010686957301],
- [174.89158432702044, 710.3622730380744],
- [174.7456465345793, 710.5808576651134],
- [174.95867806103826, 709.9992394342198],
- [175.13781713213558, 709.1340835505812],
- [175.59582547094766, 707.7372604208927],
- [176.28543820854298, 706.2659507757471],
- [177.17850474939388, 704.4651633095427],
- [178.18207167431416, 702.705312341066],
- [179.3116231948041, 701.3328972824474],
- [180.49591090668906, 700.0747106136655],
- [181.67539354011234, 699.191145705408],
- [182.861229449811, 698.5925689170481],
- [184.07120417375592, 698.2003113688393],
- [185.30882081421447, 697.9321223728275],
- [186.5709324861744, 697.796244635043],
- [187.60812035820192, 698.0403123877936],
- [188.22663587018957, 698.5724507716759],
- [188.64661417248823, 699.6723755708531],
- [188.93302768940504, 700.8492772485415],
- [189.1169743771489, 702.4170480730345],
- [189.22245781712655, 703.9406610800229],
- [189.2677440548594, 705.8640488128972],
- [188.93956387798477, 707.6280214296535],
- [188.68686388226303, 708.8495533540672],
- ],
- strokeWidth: 2,
- },
- {
- id: 'hmmjc',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [200.38979737706796, 697.6802966744654],
- [200.38979737706796, 697.6802966744654],
- [200.38979737706796, 698.2127217049133],
- [200.38979737706796, 698.9191749464858],
- [200.38979737706796, 700.126494837863],
- [200.38979737706796, 701.2530669607504],
- [200.38979737706796, 702.7082833439104],
- [200.38979737706796, 704.7287249537499],
- [200.0611720047212, 706.7655088549905],
- [199.7908527592445, 708.9542978686154],
- [199.60495599109464, 710.8302703945869],
- [199.46160557782497, 711.9174850129948],
- ],
- strokeWidth: 2,
- },
- {
- id: 'DwBED',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [200.38979737706796, 687.7940270547242],
- [200.38979737706796, 687.7940270547242],
- [200.38979737706796, 687.7940270547242],
- ],
- strokeWidth: 2,
- },
- {
- id: 'fESHQ',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [211.51185069927652, 696.4445129719975],
- [211.51185069927652, 695.7408492696472],
- [211.51185069927652, 696.0430111300902],
- [211.94356769423808, 696.631248017894],
- [212.59242452326345, 697.3596160980187],
- [213.36955171369783, 698.186128465637],
- [214.25164589492357, 699.4427407832541],
- [215.19098614128785, 700.6536521457447],
- [216.31312322507375, 702.3124849862361],
- [217.51837500538323, 703.9751224459233],
- [218.73086971323875, 705.4870107873367],
- [219.97377706426988, 707.2898758447864],
- [221.2361662320414, 708.6833743007328],
- [222.4411979102013, 709.6237118211743],
- [223.4345273460263, 710.6394762180062],
- [224.02886743579262, 710.9955408421006],
- ],
- strokeWidth: 2,
- },
- {
- id: 'NRyaM',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [225.10547142642037, 695.2087292695301],
- [225.10547142642037, 695.2087292695301],
- [224.57601989136793, 695.2087292695301],
- [224.31960697719302, 695.2087292695301],
- [223.77109816870126, 695.2087292695301],
- [223.04278886415506, 695.569422926334],
- [222.23224821092032, 696.1614573792913],
- [221.32022611042754, 697.2461158440669],
- [219.8956423877542, 698.7672849938258],
- [218.47528716045014, 700.5826083915404],
- [216.7761435770022, 702.6313082677298],
- [215.1119546892881, 704.8885346502848],
- [213.59173390328357, 706.8939530772636],
- [212.13929261359345, 708.7119430607377],
- [210.9525657393845, 709.8861957043268],
- ],
- strokeWidth: 2,
- },
- {
- id: 'rExRd',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [233.75595734369364, 711.2739174016092],
- [233.75595734369364, 711.2739174016092],
- ],
- strokeWidth: 2,
- },
- {
- id: 'DkEDR',
- type: 'freehand',
- shape: 'feltTipPen',
- points: [
- [257.2358476905784, 697.6802966744654],
- [257.2358476905784, 696.9765692186488],
- [256.75181966316296, 696.7196201950646],
- [256.4585099754036, 696.2196345087668],
- [255.9580752004436, 695.8734114456884],
- [255.3013204417967, 695.6930926266905],
- [254.50570153748714, 695.5646101490129],
- [253.60874299833432, 695.4718188617626],
- [252.68670632137292, 695.632365188028],
- [251.77532857777584, 696.4514989393547],
- [250.77362453005145, 697.7670939463092],
- [250.0300584423092, 699.4752293716929],
- [249.1851690853162, 701.4397319006457],
- [248.56305062982784, 703.9122799425118],
- [248.10589353799202, 706.5542782011194],
- [247.8133385114341, 708.8282604387946],
- [248.22020914220462, 710.6476112964392],
- [249.24745261635968, 711.818773306853],
- [250.7665336376336, 712.0245498827912],
- [252.88876486685314, 711.0907082736644],
- [255.22413632198396, 709.2895446194834],
- [257.9829703285532, 707.1268850078486],
- [260.84875463165855, 704.3683989684359],
- [263.2457364083787, 701.973143937762],
- [265.11582754869943, 699.7068603754838],
- [266.75836385329154, 697.9521498657923],
- [267.62928373671986, 697.0733963084485],
- [267.7666450311934, 697.2282207827843],
- [267.16919894094195, 698.1055403973269],
- [266.27296963279883, 699.1785208012161],
- [265.14566085794655, 700.8033174222292],
- [263.89597102610725, 702.7927137523502],
- [262.8834622051125, 704.748618602518],
- [262.16337466714987, 706.453081513147],
- [261.9507255131235, 708.1133896960473],
- [262.19072681814197, 709.2759461532896],
- [263.09730044858253, 710.3682679183585],
- [264.16817689879286, 711.164317884557],
- [265.6881335797182, 711.3945772234038],
- [267.5077078606267, 711.1445370371953],
- [269.3128781726501, 710.26103554677],
- [270.9874167183621, 708.8797952501845],
- [272.5528789303708, 707.4365481864288],
- [273.7433710608514, 705.6502709152605],
- [274.517100190574, 703.9787557954728],
- [274.7663367732969, 702.3110958285952],
- [274.5312129826521, 700.8110321573786],
- [273.6073319203272, 699.6629161389606],
- [272.5499333524711, 698.9061048116141],
- [271.0208945519476, 698.3819383748905],
- [269.4511841788238, 698.3530943371661],
- [267.90241153525886, 698.425392058592],
- [266.7007660302514, 698.8367032310325],
- [266.17286141487403, 699.2278455650203],
- [266.21969376101043, 699.501302464203],
- [266.6440558461441, 699.7166495277602],
- [267.655805806131, 699.8951017809977],
- [268.8913360686109, 699.7135757645292],
- [270.55652301070046, 699.5169653679104],
- [272.1769512292106, 699.3653866410045],
- [273.7424130686164, 698.8940396084972],
- [275.1965881429542, 698.5150460502296],
- [276.5369897715644, 698.2511837773582],
- [277.6807403458045, 697.7111667430195],
- [278.7084177008831, 697.2665550776564],
- [279.69573658754604, 697.0160268534032],
- [280.7795642277677, 697.107634521517],
- [281.5979574314097, 697.5251634013739],
- [282.13408413205894, 698.5114150478958],
- [282.5489242517745, 699.9535098080969],
- [282.84098599868395, 701.7743724611605],
- [283.02843058220066, 703.824551042736],
- [282.81477093169957, 706.1243719532199],
- [282.5932251731436, 708.5354121674004],
- [282.40443780365973, 709.9057029739824],
- [282.57959049244283, 710.3036280965493],
- [283.0561392050798, 709.8255664165581],
- [284.08719079904273, 708.3820517353352],
- [285.2144216770599, 706.538897036512],
- [286.74667183779053, 704.370445668344],
- [288.5995133568345, 702.3415936070719],
- [290.6747708704809, 700.4052369256219],
- [292.60660986895465, 698.9584806416424],
- [294.33204007114097, 697.9635298042067],
- [295.7275892125079, 697.8674370064332],
- [296.59204402039296, 698.6214451825181],
- [297.22621987416784, 700.2698855649223],
- [297.30632265946275, 702.2917701375259],
- [297.2821331071837, 704.5431543082382],
- [296.86734136627894, 706.6349140197981],
- [296.48247909275693, 708.6250717523121],
- [296.19332364402413, 709.661928773693],
- [295.9687135065938, 710.0674402872232],
- [296.43070848674466, 709.6661556728818],
- [297.14617165450073, 708.5721617999639],
- [298.3907899502945, 706.9800446569302],
- [300.0154056144643, 705.027825143301],
- [301.9425628813079, 702.8602329312348],
- [304.07903225726096, 700.8345918122459],
- [306.07538837299836, 699.2960896957225],
- [308.2106723128043, 698.2045825756773],
- [310.09784657780943, 697.4534789743966],
- [311.89374000200274, 697.2655471634303],
- [313.15064319795266, 697.8736786678724],
- [314.32468855052895, 699.0788096540709],
- [315.16125243832954, 700.7403544566105],
- [316.02807712281884, 702.700337825207],
- [316.6688935414484, 704.8533911973636],
- [317.0877937625526, 707.1699493962483],
- [317.3669109899077, 709.2712320131618],
- [317.54367468099264, 711.1655915202477],
- ],
- strokeWidth: 2,
- },
-];
diff --git a/packages/drawnix/src/components/tutorial.scss b/packages/drawnix/src/components/tutorial.scss
new file mode 100644
index 0000000..e2ceb8c
--- /dev/null
+++ b/packages/drawnix/src/components/tutorial.scss
@@ -0,0 +1,196 @@
+.drawnix-tutorial {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 9999;
+ pointer-events: none;
+ background-color: transparent;
+}
+
+.tutorial-overlay {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.tutorial-content {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+
+.language-switcher {
+ position: absolute;
+ top: 20px;
+ right: 20px;
+ padding: 8px 15px;
+ background-color: rgba(200, 200, 200, 0.2);
+ border: 1px solid rgba(150, 150, 150, 0.2);
+ border-radius: 20px;
+ color: #666;
+ font-family: 'Times New Roman', serif;
+ font-size: 14px;
+ cursor: pointer;
+ transition: all 0.3s ease;
+}
+
+.language-switcher:hover {
+ background-color: rgba(200, 200, 200, 0.4);
+}
+
+.brand-title {
+ font-family: 'Garamond', 'Times New Roman', serif;
+ font-size: 72px;
+ font-weight: 400;
+ color: #333;
+ margin-bottom: 10px;
+ letter-spacing: 2px;
+}
+
+.brand-description {
+ font-family: 'Garamond', 'Times New Roman', serif;
+ font-size: 18px;
+ color: #777;
+ text-align: center;
+ max-width: 600px;
+ line-height: 1.6;
+ margin-bottom: 60px;
+ font-style: italic;
+}
+
+.feature-pointer {
+ position: absolute;
+ width: 220px;
+}
+
+.top-left {
+ position: absolute;
+ top: 150px;
+ left: 150px;
+}
+
+.top-center {
+ top: 125px;
+ left: 50%;
+ transform: translateX(-50%);
+}
+
+.bottom-right {
+ bottom: 225px;
+ right: 225px;
+}
+
+.bottom-right .pointer-arrow-svg {
+ position: absolute;
+ left: 100%;
+ top: 100%;
+}
+
+.pointer-arrow:after {
+ content: '';
+ position: absolute;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background-color: #888;
+ transform: translate(-4px, -4px);
+}
+
+.pointer-content {
+ margin: 15px;
+ margin-top: -30px;
+}
+
+.top-right .pointer-content,
+.bottom-right .pointer-content {
+ text-align: right;
+ padding-right: 10px;
+ padding-left: 0;
+}
+
+.top-center .pointer-content {
+ position: absolute;
+ left: 25%;
+ width: 200px;
+ top: 60%;
+}
+
+.top-center .pointer-content h3 {
+ text-align: center;
+}
+
+.top-center .pointer-content p {
+ text-align: center;
+}
+
+.pointer-content h3 {
+ font-family: 'Garamond', 'Times New Roman', serif;
+ font-size: 18px;
+ color: #555;
+ margin-bottom: 8px;
+ font-weight: normal;
+}
+
+.pointer-content p {
+ font-family: 'Garamond', 'Times New Roman', serif;
+ font-size: 14px;
+ color: #888;
+ line-height: 1.5;
+ margin-bottom: 5px;
+}
+
+.drawnix--mobile{
+ .pointer-content, .pointer-arrow-svg {
+ display: none;
+ }
+}
+
+@media screen and (max-width: 768px){
+ .tutorial-content {
+ width: 95%;
+ height: 95%;
+ }
+
+ .brand-title {
+ font-size: 42px;
+ margin-top: 20px;
+ }
+
+ .brand-description {
+ font-size: 14px;
+ max-width: 300px;
+ margin-bottom: 30px;
+ }
+
+ .feature-pointer {
+ width: 180px;
+ }
+
+ .feature-pointer.mobile {
+ position: relative;
+ margin: 15px 0;
+ top: auto;
+ left: auto;
+ right: auto;
+ bottom: auto;
+ transform: none;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .pointer-content, .pointer-arrow-svg {
+ display: none;
+ }
+
+}
\ No newline at end of file
diff --git a/packages/drawnix/src/components/tutorial.tsx b/packages/drawnix/src/components/tutorial.tsx
new file mode 100644
index 0000000..bca551b
--- /dev/null
+++ b/packages/drawnix/src/components/tutorial.tsx
@@ -0,0 +1,63 @@
+import React, { useState, useEffect } from "react";
+import { useI18n } from "../i18n";
+import "./tutorial.scss";
+
+export const Tutorial: React.FC = () => {
+ const { t } = useI18n();
+
+ return (
+ <div className="drawnix-tutorial">
+ <div className="tutorial-overlay">
+ <div className="tutorial-content">
+
+ <h1 className="brand-title">{t('tutorial.title')}</h1>
+ <p className="brand-description">{t('tutorial.description')}</p>
+ <p className="brand-tooltip">{t('tutorial.dataDescription')}</p>
+
+ <div className="feature-pointer top-left">
+ <svg className="pointer-arrow-svg" width="130" height="100" viewBox="0 0 130 100">
+ <defs>
+ <marker id="arrow-left" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
+ <path d="M0,0 L0,6 L6,3 z" fill="#888" />
+ </marker>
+ </defs>
+ <path d="M 80,70 Q 35,60 15,15" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-left)" />
+ </svg>
+ <div className="pointer-content">
+ <p>{t('tutorial.appToolbar')}</p>
+ </div>
+ </div>
+
+ <div className="feature-pointer top-center">
+ <svg className="pointer-arrow-svg" width="100" height="130" viewBox="0 0 100 130">
+ <defs>
+ <marker id="arrow-top" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
+ <path d="M0,0 L0,6 L6,3 z" fill="#888" />
+ </marker>
+ </defs>
+ <path d="M 45,90 Q 20,50 45,10" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-top)" />
+ </svg>
+ <div className="pointer-content">
+ <p>{t('tutorial.creationToolbar')}</p>
+ </div>
+ </div>
+
+ <div className="feature-pointer bottom-right">
+ <svg className="pointer-arrow-svg" width="180" height="100" viewBox="0 0 180 100">
+ <defs>
+ <marker id="arrow-right" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
+ <path d="M0,0 L0,6 L6,3 z" fill="#888" />
+ </marker>
+ </defs>
+ <path d="M 20,25 Q 75,20 105,70" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-right)" />
+ </svg>
+ <div className="pointer-content">
+ <p>{t('tutorial.themeDescription')}</p>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/packages/drawnix/src/drawnix.tsx b/packages/drawnix/src/drawnix.tsx
index 5ce83a8..eb48ceb 100644
--- a/packages/drawnix/src/drawnix.tsx
+++ b/packages/drawnix/src/drawnix.tsx
@@ -37,7 +37,8 @@ import { TTDDialog } from './components/ttd-dialog/ttd-dialog';
import { CleanConfirm } from './components/clean-confirm/clean-confirm';
import { buildTextLinkPlugin } from './plugins/with-text-link';
import { LinkPopup } from './components/popup/link-popup/link-popup';
-import { useI18n, I18nProvider } from './i18n';
+import { I18nProvider } from './i18n';
+import { Tutorial } from './components/tutorial';
export type DrawnixProps = {
value: PlaitElement[];
@@ -49,6 +50,7 @@ export type DrawnixProps = {
onViewportChange?: (value: Viewport) => void;
onThemeChange?: (value: ThemeColorMode) => void;
afterInit?: (board: PlaitBoard) => void;
+ tutorial?: boolean;
} & React.HTMLAttributes<HTMLDivElement>;
export const Drawnix: React.FC<DrawnixProps> = ({
@@ -61,6 +63,7 @@ export const Drawnix: React.FC<DrawnixProps> = ({
onThemeChange,
onValueChange,
afterInit,
+ tutorial = false,
}) => {
const options: PlaitBoardOptions = {
readonly: false,
@@ -148,6 +151,7 @@ export const Drawnix: React.FC<DrawnixProps> = ({
<CleanConfirm container={containerRef.current}></CleanConfirm>
</Wrapper>
</div>
+ {tutorial && !value.length && <Tutorial/>}
</DrawnixContext.Provider>
</I18nProvider>
);
diff --git a/packages/drawnix/src/i18n/translations/en.ts b/packages/drawnix/src/i18n/translations/en.ts
index e064902..f133f64 100644
--- a/packages/drawnix/src/i18n/translations/en.ts
+++ b/packages/drawnix/src/i18n/translations/en.ts
@@ -86,12 +86,14 @@ const enTranslations: Translations = {
'dialog.mermaid.flowchart': 'flowcharts',
'dialog.mermaid.sequence': 'sequence diagrams',
'dialog.mermaid.class': 'class diagrams',
- 'dialog.mermaid.otherTypes': ', and other diagram types (rendered as images).',
+ 'dialog.mermaid.otherTypes':
+ ', and other diagram types (rendered as images).',
'dialog.mermaid.syntax': 'Mermaid Syntax',
'dialog.mermaid.placeholder': 'Write your Mermaid chart definition here…',
'dialog.mermaid.preview': 'Preview',
'dialog.mermaid.insert': 'Insert',
- 'dialog.markdown.description': 'Supports automatic conversion of Markdown syntax to mind map.',
+ 'dialog.markdown.description':
+ 'Supports automatic conversion of Markdown syntax to mind map.',
'dialog.markdown.syntax': 'Markdown Syntax',
'dialog.markdown.placeholder': 'Write your Markdown text definition here...',
'dialog.markdown.preview': 'Preview',
@@ -104,7 +106,8 @@ const enTranslations: Translations = {
// Clean confirm dialog
'cleanConfirm.title': 'Clear Board',
- 'cleanConfirm.description': 'This will clear the entire board. Do you want to continue?',
+ 'cleanConfirm.description':
+ 'This will clear the entire board. Do you want to continue?',
'cleanConfirm.cancel': 'Cancel',
'cleanConfirm.ok': 'OK',
@@ -160,7 +163,13 @@ const enTranslations: Translations = {
// Mind map elements text
'mind.centralText': 'Central Topic',
'mind.abstractNodeText': 'Summary',
-
+
+ 'tutorial.title': 'Drawnix',
+ 'tutorial.description': 'All-in-one whiteboard, including mind maps, flowcharts, free drawing, and more',
+ 'tutorial.dataDescription': 'All data is stored locally in your browser',
+ 'tutorial.appToolbar': 'Export, language settings, ...',
+ 'tutorial.creationToolbar': 'Select a tool to start your creation',
+ 'tutorial.themeDescription': 'Switch between light and dark themes',
};
-export default enTranslations;
\ No newline at end of file
+export default enTranslations;
diff --git a/packages/drawnix/src/i18n/translations/zh.ts b/packages/drawnix/src/i18n/translations/zh.ts
index 9d3b593..1c94fef 100644
--- a/packages/drawnix/src/i18n/translations/zh.ts
+++ b/packages/drawnix/src/i18n/translations/zh.ts
@@ -161,6 +161,14 @@ const zhTranslations: Translations = {
### Hello world 👋 🌍 ✨ 💻
#### 哇 是个程序员 🤯 ⌨️ 💡 👩 💻`,
+
+ 'tutorial.title': 'Drawnix',
+ 'tutorial.description': 'All-in-one 白板,包含思维导图、流程图、自由画笔等',
+ 'tutorial.dataDescription': '所有数据被存在你的浏览器本地',
+ 'tutorial.appToolbar': '导出,语言设置,...',
+ 'tutorial.creationToolbar': '选择一个工具开始你的创作',
+ 'tutorial.themeDescription': '在明亮和黑暗主题之间切换',
+
};
export default zhTranslations;
\ No newline at end of file
diff --git a/packages/drawnix/src/i18n/types.ts b/packages/drawnix/src/i18n/types.ts
index e95796a..2d30024 100644
--- a/packages/drawnix/src/i18n/types.ts
+++ b/packages/drawnix/src/i18n/types.ts
@@ -17,18 +17,18 @@ export interface Translations {
'toolbar.pen': string;
'toolbar.eraser': string;
-
- 'toolbar.arrow.straight': string,
- 'toolbar.arrow.elbow': string,
- 'toolbar.arrow.curve': string,
-
- 'toolbar.shape.rectangle': string,
- 'toolbar.shape.ellipse': string,
- 'toolbar.shape.triangle': string,
- 'toolbar.shape.terminal': string,
- 'toolbar.shape.diamond': string,
- 'toolbar.shape.parallelogram': string,
- 'toolbar.shape.roundRectangle': string,
+
+ 'toolbar.arrow.straight': string;
+ 'toolbar.arrow.elbow': string;
+ 'toolbar.arrow.curve': string;
+
+ 'toolbar.shape.rectangle': string;
+ 'toolbar.shape.ellipse': string;
+ 'toolbar.shape.triangle': string;
+ 'toolbar.shape.terminal': string;
+ 'toolbar.shape.diamond': string;
+ 'toolbar.shape.parallelogram': string;
+ 'toolbar.shape.roundRectangle': string;
// Zoom controls
'zoom.in': string;
@@ -45,22 +45,22 @@ export interface Translations {
'theme.starry': string;
// Colors
- 'color.none': string,
- 'color.unknown': string,
- 'color.default': string,
- 'color.white': string,
- 'color.gray': string,
- 'color.deepBlue': string,
- 'color.red': string,
- 'color.green': string,
- 'color.yellow': string,
- 'color.purple': string,
- 'color.orange': string,
- 'color.pastelPink': string,
- 'color.cyan': string,
- 'color.brown': string,
- 'color.forestGreen': string,
- 'color.lightGray': string,
+ 'color.none': string;
+ 'color.unknown': string;
+ 'color.default': string;
+ 'color.white': string;
+ 'color.gray': string;
+ 'color.deepBlue': string;
+ 'color.red': string;
+ 'color.green': string;
+ 'color.yellow': string;
+ 'color.purple': string;
+ 'color.orange': string;
+ 'color.pastelPink': string;
+ 'color.cyan': string;
+ 'color.brown': string;
+ 'color.forestGreen': string;
+ 'color.lightGray': string;
// General
'general.undo': string;
@@ -75,7 +75,6 @@ export interface Translations {
'language.english': string;
'language.russian': string;
'language.arabic': string;
-
// Menu items
'menu.open': string;
@@ -115,7 +114,7 @@ export interface Translations {
'cleanConfirm.ok': string;
// Link popup items
- 'popupLink.delLink': string,
+ 'popupLink.delLink': string;
// Tool popup items
'popupToolbar.fillColor': string;
@@ -124,8 +123,8 @@ export interface Translations {
'popupToolbar.stroke': string;
// Text placeholders
- 'textPlaceholders.link': string,
- 'textPlaceholders.text': string,
+ 'textPlaceholders.link': string;
+ 'textPlaceholders.text': string;
// Line tool
'line.source': string;
@@ -144,10 +143,17 @@ export interface Translations {
// Draw elements text
'draw.lineText': string;
'draw.geometryText': string;
-
+
// Mind map elements text
'mind.centralText': string;
'mind.abstractNodeText': string;
+
+ 'tutorial.title': string;
+ 'tutorial.description': string;
+ 'tutorial.dataDescription': string;
+ 'tutorial.appToolbar': string;
+ 'tutorial.creationToolbar': string;
+ 'tutorial.themeDescription': string;
}
// I18n context interface
@@ -161,4 +167,4 @@ export interface I18nContextType {
export interface I18nProviderProps {
children: ReactNode;
defaultLanguage?: Language;
-}
\ No newline at end of file
+}