Skip to content

Commit 9775ab3

Browse files
show message that annotations will not show in the editor
1 parent ee6584d commit 9775ab3

File tree

10 files changed

+180
-4057
lines changed

10 files changed

+180
-4057
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function enqueue_gutenberg_scripts() {
7575
$handsontableCSS = VISUALIZER_ABSURL . 'classes/Visualizer/Gutenberg/build/handsontable.css';
7676

7777
if ( VISUALIZER_TEST_JS_CUSTOMIZATION ) {
78-
$version = filemtime( VISUALIZER_ABSPATH . 'classes/Visualizer/Gutenberg/build/block.js' );
78+
$version = filemtime( VISUALIZER_ABSPATH . '/classes/Visualizer/Gutenberg/build/block.js' );
7979
} else {
8080
$version = $this->version;
8181
}
@@ -341,9 +341,6 @@ public function get_visualizer_data( $post ) {
341341
}
342342
if ( ! empty( $annotations ) ) {
343343
$exploded_data = array();
344-
error_log(print_r($settings['series'],true));
345-
error_log(print_r($series,true));
346-
error_log(print_r($data['visualizer-data'],true));
347344
$series_names = array();
348345
foreach ( $series as $index => $serie ) {
349346
// skip X axis data.
@@ -361,9 +358,8 @@ public function get_visualizer_data( $post ) {
361358
foreach( $data['visualizer-data'] as $datum ) {
362359
// skip X axis data.
363360
unset( $datum[0] );
364-
$exploded_data[] = array(1,2,3);//$datum;
361+
$exploded_data[] = $datum;
365362
}
366-
error_log("finally " . print_r($exploded_data,true));
367363
$data['visualizer-data-exploded'] = array( $exploded_data );
368364
}
369365
}

classes/Visualizer/Gutenberg/build/block.css

Lines changed: 1 addition & 237 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Visualizer/Gutenberg/build/block.js

Lines changed: 69 additions & 2479 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)